Skip to main content

GPU compatibility toolkit for AI frameworks

Project description

ai-compat

AI GPU compatibility toolkit that inspects, tests, and auto-fixes CUDA/driver mismatches for major AI frameworks.

Features

  • GPU + CUDA detection (nvidia-smi, CUDA paths, cuDNN)
  • Framework scanner for PyTorch, TensorFlow, ONNX Runtime, diffusers, transformers
  • Compatibility checker with JSON rules
  • Auto-fix suggestions + optional pip installs
  • GPU diagnostics (PyTorch/TensorFlow/ONNX/VRAM tests)
  • Environment file exporter (gpu-env.txt)
  • CLI entry point: ai-compat

Quickstart

pip install ai-compat
ai-compat scan
ai-compat check
ai-compat fix --apply
ai-compat test
ai-compat export --output gpu-env.txt

Example Output

ai-compat check
{
  "issues": [
    {
      "framework": "PyTorch",
      "message": "PyTorch 2.2.1 requires CUDA ['12.1', '12.2'] but system has 11.8",
      "severity": "error",
      "suggestion": "Install CUDA 12.1/12.2 or install PyTorch wheel matching CUDA 11.8"
    }
  ],
  "summary": "Detected 1 issue(s)",
  "metadata": {
    "gpu_count": 1,
    "cuda_version": "11.8",
    "driver_version": "535.104"
  }
}

Architecture

ai_compat/
  cli.py        # command-line interface
  scanner.py    # system + framework inspection
  gpu.py        # low-level GPU detection
  checker.py    # rules-based compatibility engine
  fixer.py      # auto-fix planner
  tester.py     # GPU diagnostics
  exporter.py   # environment generator
  rules/
    cuda_rules.json
    pytorch_rules.json
    tensorflow_rules.json

Limitations

  • Requires nvidia-smi for NVIDIA detection
  • Auto-fix commands run via pip; --apply executes them (use with caution)
  • VRAM stress test relies on PyTorch
  • Rules JSON provides conservative reference mappings; update as needed

Contributions welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_compat-0.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_compat-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file ai_compat-0.1.0.tar.gz.

File metadata

  • Download URL: ai_compat-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ai_compat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c31c632138abd92f8fba70926a80575f26c0582cc60f2d945043e5d3e5015af7
MD5 b959c6a28d0918f563eedf0eddf19061
BLAKE2b-256 ca27530c2bf6be80e6e4989f73c011fd149ae70d75f8031b843e9668515fa5a4

See more details on using hashes here.

File details

Details for the file ai_compat-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ai_compat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ai_compat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d449245114bcb01f5f985ec20ab9562af1c8eebdb0ba5f2e8552fe0b5e20fd62
MD5 24cbc1d5d1ea4b4444081d1b9c14378f
BLAKE2b-256 d78254d4921545759daecf9d342200e02172f831abb3ea695c3a02f4e40ab0c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page