Skip to main content

HwPilot — Hardware-aware ML Environment Setup & Compatibility Manager

PyPI Python PyTorch CUDA Hardware License: MIT Author LinkedIn HuggingFace

HwPilot — Hardware-aware ML environment setup and compatibility manager.

Detect my hardware. Resolve the correct ML environment. Ask me once. Install it safely. Verify that it actually works.

HwPilot Banner

👨‍💻 Created & Maintained By

Rudraksh Rakesh Zodage
Open Source AI Engineer


🔄 End-to-End Architecture & Workflow

Step Layer / Component Action Result / Output
1 💻 User Terminal Run hwpilot setup -y Triggers automated pipeline
2 🔍 Hardware Detector Probes CPU, GPU, Driver via nvidia-smi, OS & Python System specs: RTX 4060, Driver 610.74, Python 3.13
3 ⚖️ Compatibility Engine Matches NVIDIA Driver vs CUDA Matrix (defaults.json) Resolves PyTorch 2.6.0 + CUDA 12.4 (cu124)
4 📦 Environment Manager Creates isolated virtual environment (./hwpilot-env) Clean virtual environment seeded with pip & wheel
5 🌐 PyTorch CDN Index Streams package download & uncompress ~2.53 GB PyTorch CUDA wheels extracted to disk
6 🧪 GPU Tensor Verifier Executes real matrix multiplication on GPU Verified GPU runtime acceleration
7 📄 Manifest Writer Generates audit records manifest.json, hardware.json, environment.json
HwPilot Architecture Sequence Diagram

🔥 What is HwPilot?

No cap, setting up PyTorch and CUDA across different GPUs and laptops is a major headache. Broken drivers, incompatible wheels, and CUDA errors ruin the vibe.

HwPilot solves this automatically:

  • 🤖 Auto-detects your rig: Scans your CPU, GPU, VRAM, NVIDIA drivers, and OS.
  • ⚡ Smart Resolution: Finds the exact PyTorch + CUDA build tailored for your machine.
  • 🛡️ Clean & Safe: Creates an isolated ./hwpilot-env without touching system drivers.
  • ✅ Real GPU Verification: Runs actual GPU tensor math before saying it's ready. No fake green checks.

⚡ Quick Start

Installation

pip install hwpilot

Note for Windows Users: If running global pip install hwpilot, you can run via python -m hwpilot <command> OR add Python Scripts to your PowerShell PATH for the current session:

$env:Path += ";$env:APPDATA\Python\Python313\Scripts"

Quick Setup

Auto-detect your hardware, resolve compatible PyTorch/CUDA wheels, create an isolated virtual environment, and verify GPU compute in one command:

hwpilot setup -y

(or via python module):

python -m hwpilot setup -y

Flags:

  • -y, --yes: Automatically accept and proceed without prompt.
  • -p, --path <DIR>: Custom environment path (default: ./hwpilot-env).

🚀 Key Commands & CLI Reference

Command Description
hwpilot detect Inspect hardware (CPU, GPU, VRAM, Compute Capability, Driver, OS, Python).
hwpilot check Evaluate whether the machine meets requirements for ML workloads.
hwpilot plan Preview compatibility resolution and package specs without modifying system.
hwpilot setup Complete end-to-end setup workflow (detect → resolve → confirm → venv → install → verify → manifest).
hwpilot verify Perform real GPU matrix multiplication tensor test in an existing environment.
hwpilot doctor Generate a comprehensive diagnostic and troubleshooting report.
hwpilot update Refresh cached compatibility metadata from remote index.
hwpilot info Display HwPilot version, author profiles, and metadata information.

Command Flags

  • --pytorch <VER> / --torch <VER>: Suggest specific PyTorch framework version (e.g. 2.4.1, 2.3.1).
  • --cuda <VER>: Suggest specific CUDA runtime build version (e.g. 12.4, 12.1, 11.8, cpu).
  • --json: Output machine-readable JSON format for programmatic use.
  • -y, --yes: Bypass interactive confirmation prompt.
  • -p, --path <DIR>: Custom target environment path (default: ./hwpilot-env).
  • --global: Install directly into current Python environment (requires explicit opt-in).
  • -v, --verbose: Enable debug logging.

🛡️ Safety & Security Principles

  1. Driver Integrity: HwPilot never modifies or replaces system graphics drivers.
  2. Environment Isolation: Prefers isolated project environments (./hwpilot-env).
  3. No Guessing: Uses strict declarative compatibility matrices.
  4. Empirical Verification: Verifies GPU runtime with actual tensor operations.

📁 Environment Manifest Structure

Upon successful setup, HwPilot generates an environment audit manifest:

hwpilot-env/
├── config/
│   ├── hardware.json      # Hardware specs (CPU, GPU, Driver)
│   └── environment.json   # Resolved backend, CUDA runtime, framework versions
├── logs/
│   └── install.log        # Package installation transcript
└── manifest.json          # Environment state & verification results

🧪 Testing & Development

git clone https://github.com/RudrakshRakeshZodage/hwpilot.git
cd hwpilot
pip install -e .[dev]
pytest

🤝 Contributing

Contributions to HwPilot are welcome! Whether you are reporting a bug, adding hardware compatibility rules, or improving documentation, please read our CONTRIBUTING.md guide.

Quick Workflow for Contributors

  1. Fork and clone the repository: git clone https://github.com/RudrakshRakeshZodage/hwpilot.git
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Install development dependencies: pip install -e .[dev]
  4. Ensure test suite passes: pytest
  5. Open a Pull Request on GitHub.

📜 License & Copyright

This project is licensed under the terms of the MIT License.

Copyright (c) 2026 Rudraksh Rakesh Zodage

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

For full license details, see the LICENSE file.

Metadata

Release files for hwpilot 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hwpilot 0.1.3
File Size Uploaded
hwpilot-0.1.3.tar.gz 31.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hwpilot 0.1.3
File Interpreter ABI Platform
hwpilot-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 65.3 kB

Release files / hwpilot-0.1.3.tar.gz

Download URL hwpilot-0.1.3.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5f41a1242e01ff26449979ac8d46f5ab99062a43fb8844129afa0540c6c5c6a9
BLAKE2b-256 checksum
How to use checksums
0a34c005501c90f9fe77db4b79ee47cc72464c4846de1a6adb8233f421e963db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / hwpilot-0.1.3-py3-none-any.whl

Download URL hwpilot-0.1.3-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
645e39c48eb61dc2ae74fb6756b5c3ad3ef04decebcff0dde85522743e7a9bcf
BLAKE2b-256 checksum
How to use checksums
ba804bd82c25c05e8e7aacb3c5cc36c565f77594ab3dbb14bd8873219da9fe7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page