requirements.txt 842 B

1234567891011121314151617181920212223242526272829
  1. fastapi>=0.115.0
  2. uvicorn[standard]>=0.30.0
  3. pydantic>=2.0
  4. pydantic-settings>=2.0
  5. python-dotenv>=1.0
  6. sqlalchemy[asyncio]>=2.0
  7. aiosqlite>=0.20.0
  8. alembic>=1.13.0
  9. python-multipart>=0.0.9
  10. websockets>=12.0
  11. # GPU 相关依赖需要根据实际显卡手动安装:
  12. # NVIDIA GPU: pip install torch --index-url https://download.pytorch.org/whl/cu121
  13. # 沐曦 GPU: pip install torch_musa --index-url https://release.mthreads.com/repo/pypi/simple
  14. # 以下为框架和工具库依赖
  15. transformers>=4.45.0
  16. peft>=0.13.0
  17. trl>=0.12.0
  18. datasets>=3.0.0
  19. # accelerate>=1.0.0 # 随 GPU 环境一起安装
  20. # bitsandbytes>=0.44.0 # 仅 NVIDIA GPU 需要,沐曦环境可能不兼容
  21. scipy>=1.14.0
  22. scikit-learn>=1.5.0
  23. pillow>=10.4.0
  24. huggingface_hub>=0.25.0
  25. modelscope>=1.15.0
  26. pandas>=2.2.0
  27. pyarrow>=17.0.0
  28. sentencepiece>=0.2.0
  29. protobuf>=4.25.0