Infrastructure as a Graph
Project description
InfraGraph (INFRAstructure GRAPH)
InfraGraph defines a model-driven, vendor-neutral API for capturing a system of systems suitable for use in co-designing AI/HPC solutions.
The model and API allows for defining physical infrastructure using a standardized graph like terminology.
In addition to the base graph definition, user provided annotations can extend the graph allowing for an unlimited number of different physical and/or logical characteristics/view.
Additional information such as background, schema and examples can be found in the online documentation.
Using InfraGraph CLI
InfraGraph ships with a CLI that lets you convert existing system descriptions into InfraGraph format and visualize infrastructure topologies.
Install using pip:
pip install infragraph
Or clone the repo and run make clean && make install, or download the .whl from releases and install it with pip install infragraph-<version>.whl.
Convert system formats to InfraGraph — translate output from tools like lstopo directly into an InfraGraph YAML/JSON definition:
# Convert lstopo XML output to an InfraGraph YAML file
infragraph translate lstopo -i lstopo_output.xml -o my_device.yaml --dump yaml
Visualize infrastructure topologies — generate an interactive, drillable HTML visualization from any InfraGraph definition:
# Generate a visualization with host and switch hints
infragraph visualize -i my_infrastructure.yaml -o ./viz --hosts "dgx_a100" --switches "leaf_switch,spine_switch"
# Then open ./viz/index.html in a browser
The visualizer produces a multi-level view: a top-level graph of instances and inter-device connectivity, with drill-down into each device's internal components (xPUs, NICs, CPUs, memory, PCIe topology, etc.).
Note: More converters and tools are work-in-progress. See the Ecosystem documentation for the full roadmap and we invite contributions from the community.
Chakra + InfraGraph Ecosystem
MLCommons Chakra captures AI workload details as Execution Traces — graphs of operators, tensors, dependencies, and timing. InfraGraph complements Chakra by representing the underlying infrastructure — hosts, NICs, xPUs/accelerators, interconnects, and topologies. Together, Chakra + InfraGraph let you pair workload traces with infrastructure blueprints to analyze current systems and co-design future ones, while safely sharing artifacts across teams and partners.
For more details, see the Ecosystem documentation.
Versioning Rules
Infragraph follows a structured versioning scheme to maintain consistency across releases and ensure clear dependency management. Each version reflects compatibility, schema evolution, and API stability expectations.
For versioning rules, refer this readme.
Contributing
Contributions can be made in the following ways:
- open an issue in the repository
- fork the models repository and submit a PR
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infragraph-1.0.0.tar.gz.
File metadata
- Download URL: infragraph-1.0.0.tar.gz
- Upload date:
- Size: 267.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84964125190925a28d8596cbc9ef9ac9b696fb44add531d98ec3f8d8c16bfd9f
|
|
| MD5 |
e175286162a54888b733b4ab149fd21c
|
|
| BLAKE2b-256 |
2b40038aa0f9e161976c5fc0ac4f2eff8ca41c689a903df17f478549bd6819f6
|
File details
Details for the file infragraph-1.0.0-py3-none-any.whl.
File metadata
- Download URL: infragraph-1.0.0-py3-none-any.whl
- Upload date:
- Size: 290.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fcbb40d786c58c86e122fb40fbec9c724a134f4b5c04a2d8c4225ac21c9dc01
|
|
| MD5 |
9c6ea917c8920afd6cbbff9338aebced
|
|
| BLAKE2b-256 |
a0ab524f552a0e89bc74c9ac38628ba0da9f8bf6deef7be70dc65c747fece4f5
|