2
0
Просмотр исходного кода

fix(mcp): Comment out torch dependency to use system-installed version

- Commented out torch>=2.0.0 from [ml] extras
- Torch is ~915MB and should be installed separately when needed
- MCP server itself does not require torch (only provides API)
- Users can install ML dependencies separately with: pip install -e ".[ml]"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d8dfun 2 дней назад
Родитель
Сommit
2051d80dfe
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      setup.py

+ 3 - 1
setup.py

@@ -35,8 +35,10 @@ setup(
             "pytest-cov>=4.1.0",
             "pytest-cov>=4.1.0",
             "pytest-asyncio>=0.23.0",
             "pytest-asyncio>=0.23.0",
         ],
         ],
+        # ML dependencies for translation service (optional)
+        # Note: torch is large (~915MB). If already installed, skip via: pip install -e ".[mcp,dev]"
         "ml": [
         "ml": [
-            "torch>=2.0.0",
+            # "torch>=2.0.0",  # Comment out to avoid large download, install separately if needed
             "transformers>=4.30.0",
             "transformers>=4.30.0",
             "sentencepiece>=0.1.99",
             "sentencepiece>=0.1.99",
         ],
         ],