requirements.txt 925 B

12345678910111213141516171819202122232425262728293031
  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. transformers @ git+https://github.com/huggingface/transformers.git
  17. peft>=0.13.0
  18. trl>=0.12.0
  19. datasets>=3.0.0
  20. # accelerate>=1.0.0 # 随 GPU 环境一起安装
  21. # bitsandbytes>=0.44.0 # 仅 NVIDIA GPU 需要,沐曦环境可能不兼容
  22. scipy>=1.14.0
  23. scikit-learn>=1.5.0
  24. pillow>=10.4.0
  25. huggingface_hub>=0.25.0
  26. modelscope>=1.15.0
  27. addict>=2.4.0
  28. pandas>=2.2.0
  29. pyarrow>=17.0.0
  30. sentencepiece>=0.2.0
  31. protobuf>=4.25.0