requirements.txt 941 B

1234567891011121314151617181920212223242526272829303132
  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. asyncpg>=0.29.0
  9. alembic>=1.13.0
  10. python-multipart>=0.0.9
  11. websockets>=12.0
  12. # GPU 相关依赖需要根据实际显卡手动安装:
  13. # NVIDIA GPU: pip install torch --index-url https://download.pytorch.org/whl/cu121
  14. # 沐曦 GPU: pip install torch_musa --index-url https://release.mthreads.com/repo/pypi/simple
  15. # 以下为框架和工具库依赖
  16. # transformers>=4.45.0
  17. transformers @ git+https://github.com/huggingface/transformers.git
  18. peft>=0.13.0
  19. trl>=0.12.0
  20. datasets>=3.0.0
  21. # accelerate>=1.0.0 # 随 GPU 环境一起安装
  22. # bitsandbytes>=0.44.0 # 仅 NVIDIA GPU 需要,沐曦环境可能不兼容
  23. scipy>=1.14.0
  24. scikit-learn>=1.5.0
  25. pillow>=10.4.0
  26. huggingface_hub>=0.25.0
  27. modelscope>=1.15.0
  28. addict>=2.4.0
  29. pandas>=2.2.0
  30. pyarrow>=17.0.0
  31. sentencepiece>=0.2.0
  32. protobuf>=4.25.0