git clone https://github.com/Khaeldur/overflowml.git
cd overflowml
pip install -e ".[dev,all]"python -m pytest tests/ -vTests mock hardware detection and don't require a GPU.
- Line length: 100 (enforced by ruff)
- Follow existing patterns in the codebase
- No unnecessary comments or docstrings
- Keep it simple
ruff check overflowml/- Add the strategy logic to
strategy.pyinpick_strategy() - Add corresponding tests in
tests/test_strategy.py - If it requires new hardware detection, update
detect.py - Update the benchmark models in
cli.pyif relevant
- Add detection logic in
detect.py(ROCm is detected viatorch.version.hipinside_detect_cuda()— not all accelerators need a separate function) - Add the accelerator to the
Acceleratorenum - Update
detect_hardware()priority order - Add device placement in
optimize.py(_pick_device()) - Add strategy handling in
strategy.py(dtype selection, offload paths) - Add
_max_memory_map()support intransformers_ext.py - Add tests in
test_detect.py,test_strategy.py, andtest_optimize.py
Include:
- GPU model and VRAM
- System RAM
- OS (Windows/Linux/macOS)
- Python version
overflowml detectoutput- The model you're trying to load
- One logical change per PR
- Include tests for new functionality
- Run
pytestandruff checkbefore submitting - Describe what and why in the PR description