Browse Source

新增 macOS/Apple Silicon 兼容的依赖项列表

zhch158_admin 3 months ago
parent
commit
827960a999
1 changed files with 35 additions and 0 deletions
  1. 35 0
      requirements-macos.txt

+ 35 - 0
requirements-macos.txt

@@ -0,0 +1,35 @@
+# macOS/Apple Silicon compatible requirements
+# Excludes flash-attn which is CUDA-only
+
+# Core ML libraries
+torch>=2.1.0
+torchvision
+torchaudio
+transformers==4.51.3
+accelerate
+
+# Vision and multimodal processing
+qwen_vl_utils
+huggingface_hub
+modelscope
+
+# UI frameworks
+gradio
+gradio_image_annotation
+streamlit
+
+# Document processing
+PyMuPDF
+
+# API clients
+openai
+
+# Optional: Model quantization for better performance on Apple Silicon
+# bitsandbytes  # Note: May need Apple Silicon compatible version
+
+# Development tools
+jupyter
+ipython
+
+# Note: flash-attn is NOT included as it requires CUDA
+# The model will automatically fall back to standard attention mechanisms