Skip to content

Fix: Enhance out-of-the-box compatibility and resolve example path issues#255

Open
Shadowell wants to merge 6 commits intoshiyu-coder:masterfrom
Shadowell:fix/compatibility-and-dependencies
Open

Fix: Enhance out-of-the-box compatibility and resolve example path issues#255
Shadowell wants to merge 6 commits intoshiyu-coder:masterfrom
Shadowell:fix/compatibility-and-dependencies

Conversation

@Shadowell
Copy link
Copy Markdown

This PR improves the initial setup experience for new users by fixing hardware compatibility, dependency deadlocks, and local file path errors in the examples:

  • Hardware Compatibility : Replaced hardcoded device="cuda:0" with automatic fallback to CUDA, MPS (Apple Silicon), or CPU across all example scripts and README.md .
  • Dependency Fixes : Relaxed huggingface_hub ( >=1.5.0 ) and pinned numpy<2.0.0 in requirements.txt to prevent pip installation deadlocks and C-API runtime crashes.
  • Example Scripts Fixes :
    • Updated prediction_batch_example.py to fetch models directly from the Hugging Face Hub instead of relying on hardcoded local machine paths.
    • Corrected relative data paths in prediction examples ( ./data/... -> ../data/... ) to prevent FileNotFoundError when executing from the examples directory.
  • Git Configuration : Added data/ and temporary data generation scripts to .gitignore to keep the repository clean from local test artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant