Observed since 21 Oct, 11:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Diagnose PyTorch, CUDA, NVIDIA GPU, and NCCL environment problems with evidence-based checks.
Diagnose broken PyTorch, CUDA, NVIDIA GPU, and NCCL environments with evidence instead of guesswork.
pip install ai-infradr
ai-infradr
Example output:
AI InfraDr
Area Detected Status
System Linux 6.8 ✓
GPU 8 × NVIDIA A800 ✓
Driver 570.86 ✓
Driver CUDA 12.8 ✓
PyTorch 2.7.1+cu126 ✓
Torch CUDA 12.6 ✓
NCCL 2.26.2 ✓
Detected issues
LOW CUDA_TOOLKIT_DIFFERS_FROM_TORCH_RUNTIME
System CUDA toolkit differs from PyTorch CUDA runtime
Evidence:
• nvcc toolkit: 12.8
• torch CUDA runtime: 12.6
AI InfraDr is not a version printer. It normalizes environment facts, applies deterministic compatibility checks, shows the evidence behind each finding, and gives cautious next steps.
AI environments fail in ways that are hard to diagnose:
torch.cuda.is_available() is false.nvidia-smi, nvcc, and torch.version.cuda show different CUDA versions.The project treats these as compatibility/debugging problems, not as a request to blindly reinstall everything.
nvidia-sminvccai-infradr
ai-infradr --json
ai-infradr --fail-on high
or:
ai-infradr --fail-on medium
ai-infradr --verbose
You can also run it as a Python module:
python -m ai_infradr
AI InfraDr keeps these concepts separate:
nvidia-smi.nvcc --version.torch.version.cuda.Different Toolkit and PyTorch runtime versions are not automatically a bug. PyTorch wheels commonly ship with their own CUDA runtime. The difference becomes more relevant when compiling/loading CUDA extensions.
Probes
↓
Structured EnvironmentSnapshot
↓
Deterministic Diagnosis Engine
↓
Evidence-backed Issues
↓
Console / JSON reports
The core does not require an LLM or API key. Future AI explanations should remain an optional layer above deterministic evidence.
from ai_infradr import InfraDr
snapshot, issues = InfraDr().diagnose()
for issue in issues:
print(issue.code, issue.severity.value)
git clone https://github.com/xxPcy/ai-infradr.git
cd ai-infradr
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
ruff check src tests
pytest
Contributions are welcome, especially reproducible compatibility cases and additional probes. See CONTRIBUTING.md.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 27 Sept 2026 | 6 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bc3f7f38476f11133d82592f5f5b4c15ffa04bf81d446e4f8880c421162e0ae7