Skip to content

Commit 04a01ef

Browse files
pcusticDouweM
andauthored
Skip installing outlines dependencies mlx, vllm, torch on Intel Macs (pydantic#3312)
Co-authored-by: Douwe Maan <[email protected]>
1 parent 63f6942 commit 04a01ef

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

pydantic_ai_slim/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ groq = ["groq>=0.25.0"]
7676
mistral = ["mistralai>=1.9.10"]
7777
bedrock = ["boto3>=1.39.0"]
7878
huggingface = ["huggingface-hub[inference]>=0.33.5"]
79-
outlines-transformers = ["outlines[transformers]>=1.0.0, <1.3.0", "transformers>=4.0.0", "pillow"]
79+
outlines-transformers = ["outlines[transformers]>=1.0.0, <1.3.0; (sys_platform != 'darwin' or platform_machine != 'x86_64')", "transformers>=4.0.0", "pillow", "torch; (sys_platform != 'darwin' or platform_machine != 'x86_64')"]
8080
outlines-llamacpp = ["outlines[llamacpp]>=1.0.0, <1.3.0"]
81-
outlines-mlxlm = ["outlines[mlxlm]>=1.0.0, <1.3.0"]
81+
outlines-mlxlm = ["outlines[mlxlm]>=1.0.0, <1.3.0; (sys_platform != 'darwin' or platform_machine != 'x86_64')"]
8282
outlines-sglang = ["outlines[sglang]>=1.0.0, <1.3.0", "pillow"]
83-
outlines-vllm-offline = ["vllm; python_version < '3.12'", "outlines>=1.0.0, <1.3.0"]
83+
outlines-vllm-offline = ["vllm; python_version < '3.12' and (sys_platform != 'darwin' or platform_machine != 'x86_64')", "torch; (sys_platform != 'darwin' or platform_machine != 'x86_64')", "outlines>=1.0.0, <1.3.0"]
8484
# Tools
8585
duckduckgo = ["ddgs>=9.0.0"]
8686
tavily = ["tavily-python>=0.5.0"]

uv.lock

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)