python -m venv "your path"
"your path"\Scripts\Activate.ps1
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install -r requirements.txt
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .
Officially recommended "modular calling" LLM local editing solution : use modular_.py and configuration_.py generate modeling_*.py (this is qwen official editing method)
Put file "auto/configuration_auto.py" in transformers/src/transformers/models/auto replace original file
cd transformers
python utils/modular_model_converter.py --files_to_parse src/transformers/models/qwen_light/modular_qwenlight.py
python inference.py