Installation Issues
Flash Attention Installation Fails
Symptoms:- Compilation errors when installing flash-attention
- CUDA version mismatch errors
- Missing CUDA development files
Verify GPU compatibility
- Turing architecture: T4, RTX 2080, etc.
- Ampere architecture: A100, RTX 3090, etc.
- Ada architecture: RTX 4090, etc.
- Hopper architecture: H100, etc.
Verify CUDA version
Install from source
Alternative: Skip Flash Attention
Package Dependency Conflicts
Error: Version conflicts between transformers, peft, optimum, auto-gptq Recommended versions:Git LFS Files Not Downloaded
Symptoms:qwen.tiktokenis only a few bytes (text pointer)- Model files are text pointers instead of actual binaries
- “File not found” errors for model checkpoints
Model Loading Issues
Model Won’t Load Locally
Checklist:1. Verify all files are present
1. Verify all files are present
2. Check code version
2. Check code version
3. Set trust_remote_code=True
3. Set trust_remote_code=True
4. Verify checkpoint integrity
4. Verify checkpoint integrity
Out of Memory (OOM) When Loading
Symptoms:RuntimeError: CUDA out of memory- System freezes when loading model
- Model loads but crashes during inference
Use quantized models
Enable device_map='auto'
Use CPU offloading
Switch to smaller model
- Qwen-7B → Qwen-1.8B
- Qwen-14B → Qwen-7B
- Qwen-72B → Qwen-14B or Qwen-7B
Inference Issues
Gibberish or Garbled Output
Problem 1: Using base model instead of chat modelModel Not Following Instructions
Check 1: Using correct model typechat() method:
Slow Inference Speed
Diagnosis:Enable Flash Attention
Enable Flash Attention
Use quantized models
Use quantized models
Update to latest code
Update to latest code
Use vLLM for deployment
Use vLLM for deployment
Poor Performance on Long Context
Enable NTK and LogN attention:Fine-tuning Issues
OOM During Training
Solutions in order of effectiveness:Use Q-LoRA instead of LoRA
Reduce batch size, increase gradient accumulation
Enable gradient checkpointing
Use DeepSpeed ZeRO
Reduce sequence length
Training Loss Not Decreasing
Checklist:1. Verify data format
1. Verify data format
2. Check learning rate
2. Check learning rate
3. Verify model is in training mode
3. Verify model is in training mode
4. Check if parameters are frozen
4. Check if parameters are frozen
Quantized Model Finetuning Issues
Problem: Can’t load LoRA adapter after Q-LoRA trainingcache_autogptq_cuda_256.cppcache_autogptq_cuda_kernel_256.cu- Other
.cppand.cufiles
Quantization Issues
AutoGPTQ Installation Fails
Check PyTorch and CUDA compatibility:Quantized Model Slower Than Expected
Note: Loading withAutoModelForCausalLM.from_pretrained() is ~20% slower than the autogptq library directly.
This is a known issue reported to HuggingFace team.
Workaround: Use the autogptq library directly for maximum speed.
Tool Usage and ReAct Issues
Plugin Not Being Called
Check prompt format:HuggingFace Agent Issues
Verify Qwen-Chat is being used:Docker Issues
Container Fails to Start
Check GPU availability:Slow Image Download
Use a Docker registry mirror (especially for users in China):Platform-Specific Issues
Windows
Long path issues:macOS
Metal/MPS not officially supported. Use CPU or cloud deployment.Getting Help
If issues persist after trying these solutions:- Search existing issues: GitHub Issues
- Check the FAQ: FAQ
-
Open a new issue with:
- Full error traceback
- Environment details (
python --version,pip list,nvidia-smi) - Minimal reproducible code
- Steps already tried
-
Join the community:
- Discord
- WeChat (see main README)