Thanks, and yeah, that makes sense, you do need to actually check out the repository :)
1 Like
I’ve created a pull request to the official AI Toolkit repo to add support for DGX Spark and other DGX OS devices (since we need to keep in mind, it’s not just the Spark that uses DGX OS). If anyone is interested, this is the PR:
main ← raziel2001au:main
opened 01:22PM - 04 Dec 25 UTC
Adds support for devices running DGX OS (including DGX Spark). I **had to remove… the _dw_pose_ dependency**, as there is no version that works with DGX OS (likely due to the lack of an ARM64 build of onnxruntime). Looking at the code, it seems like it will simply error out if the dependency is not found and prompt you to install it manually, from my discussion with Ostris it sounded like he'd be okay with this approach.
From toolkit/control_generator.py:
```python
elif control_type == 'pose':
self.debug_print("Generating pose control")
if self.control_pose_model is None:
try:
import onnxruntime
onnxruntime.set_default_logger_severity(3)
except ImportError:
raise ImportError(
"onnxruntime is not installed. Please install it with pip install onnxruntime or onnxruntime-gpu")
try:
from easy_dwpose import DWposeDetector
self.control_pose_model = DWposeDetector(
device=str(device))
except ImportError:
raise ImportError(
"easy-dwpose is not installed. Please install it with pip install easy-dwpose")
```
There are also some issues where DGX OS can't identify which versions of various dependencies it needs, so I've created a separate dgx_requirements.txt to include the exact versions of those dependencies, it then includes the normal requirements.txt to install the rest of the dependencies. They could be merged into the existing requirements.txt, but I thought it would be cleaner to handle it this way, and isolate anything that is DGX OS specific to its own requirements file.
The instructions I've added advise to install the latest PyTorch version, which officially supports the DGX Spark, as the older version recommended on the main setup page is quite old, and is about three times slower than the current release of PyTorch, which likely has optimisations for Grace Blackwell systems.
Finally, I've added a separate readme with installation instructions for DGX OS, as it is a little more involved than it is on other systems.
It’s mostly just taking all my findings into consideration and making them official within the repo, rather than having some random instructions sitting on a forum.
1 Like
system
Closed
December 19, 2025, 2:27am
24
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.