You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mainly to allow reuse component objects across multiple [`Coordinator.run()`][openg2g.coordinator.Coordinator.run] calls with different configurations without having to re-instantiate all of them all the time:
Copy file name to clipboardExpand all lines: docs/guide/building-simulators.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,43 +26,46 @@ The sections below show how to set up each component.
26
26
### Datacenter
27
27
28
28
The [`OfflineDatacenter`][openg2g.datacenter.offline.OfflineDatacenter] replays GPU power traces built from the [data pipeline](data-pipeline.md).
29
-
Load traces from the generated manifest, build templates for the simulation config, then create the datacenter with a [`DatacenterConfig`][openg2g.datacenter.config.DatacenterConfig] and [`WorkloadConfig`][openg2g.datacenter.config.WorkloadConfig]:
29
+
Load traces from the generated manifest, build templates for the simulation config, then create the datacenter with a [`DatacenterConfig`][openg2g.datacenter.config.DatacenterConfig] and [`OfflineWorkload`][openg2g.datacenter.offline.OfflineWorkload]:
30
30
31
31
```python
32
32
from fractions import Fraction
33
33
34
-
from openg2g.datacenter.config import DatacenterConfig, WorkloadConfig
35
-
from openg2g.datacenter.offline import OfflineDatacenter, PowerTraceStore
34
+
from openg2g.datacenter.config import DatacenterConfig, PowerAugmentationConfig, ServerRamp, TrainingRun
35
+
from openg2g.datacenter.offline import OfflineDatacenter, OfflineInferenceData, OfflineWorkload, PowerTraceStore
36
36
from openg2g.datacenter.training_overlay import TrainingTrace
37
37
from openg2g.models.spec import LLMInferenceModelSpec, LLMInferenceWorkload
38
-
from openg2g.types import ServerRamp, TrainingRun
39
38
40
39
store = PowerTraceStore.load("data/generated/traces_summary.csv")
0 commit comments