#6579 reworded these comments to attribute the failure to a half-resolved install and claimed a clean 4.14 is fine on 3.13. That is wrong: #6483 is a genuine anyio 4.14 + Python 3.13 regression. 4.14 added a per-task cancel scope in its asyncio backend (TaskHandle/_run_coro) that gets exited in the wrong task under starlette's collapsing task group, raising the cancel-scope RuntimeError on streaming; 4.13 has no such code and is unaffected (the reporter confirmed 4.13.0 fixes it). The TaskHandle ImportError is only the secondary macOS-arm symptom from the mlx-vs-cap version fight. Comments only.
76 lines
2.5 KiB
Text
76 lines
2.5 KiB
Text
# Runtime dependencies for no-torch (GGUF-only) mode.
|
|
# Installed with --no-deps to prevent transitive torch resolution
|
|
# from packages like accelerate, peft, trl, sentence-transformers.
|
|
#
|
|
# Includes unsloth's own direct deps (typer, pydantic, pyyaml,
|
|
# nest-asyncio) since unsloth is also installed with --no-deps
|
|
# (current PyPI metadata still declares torch as a hard dep).
|
|
|
|
# unsloth direct deps (from pyproject.toml [project].dependencies)
|
|
typer
|
|
# typer's full runtime dep tree. Required explicitly because this
|
|
# file is installed with --no-deps. On Linux/Mac CI runners these
|
|
# are often cached transitively; on a fresh windows-latest venv they
|
|
# are not, and `unsloth studio setup` crashes with
|
|
# `ModuleNotFoundError: No module named 'click'`, then 'annotated_doc',
|
|
# then 'rich', etc. as each is hit. Pin the full chain so the
|
|
# no-torch path works cleanly on every fresh venv.
|
|
click>=8.0
|
|
shellingham>=1.5
|
|
annotated-doc>=0.0.3
|
|
rich>=13.0
|
|
markdown-it-py>=3.0
|
|
mdurl>=0.1
|
|
pygments>=2.0
|
|
# pydantic is intentionally NOT pinned here. install.sh / install.ps1
|
|
# / install_python_stack.py run `pip install pydantic` WITH deps just
|
|
# before this --no-deps file is applied, so pip resolves pydantic-core
|
|
# to the exact version pydantic's _ensure_pydantic_core_version check
|
|
# expects. Pinning both under --no-deps used to drift them apart.
|
|
pyyaml
|
|
nest-asyncio
|
|
|
|
# HF ecosystem (from [huggingfacenotorch] extras in pyproject.toml)
|
|
wheel>=0.42.0
|
|
packaging
|
|
numpy
|
|
tqdm
|
|
psutil
|
|
tyro
|
|
protobuf
|
|
sentencepiece>=0.2.0
|
|
safetensors>=0.4.3
|
|
datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0
|
|
accelerate>=0.34.1
|
|
peft>=0.18.0,!=0.11.0
|
|
huggingface_hub>=0.34.0
|
|
hf_transfer
|
|
diffusers
|
|
|
|
# Transitive deps required because this file is installed with --no-deps.
|
|
# Without these, `from transformers import AutoConfig` fails at import time.
|
|
regex
|
|
typing_extensions
|
|
filelock
|
|
httpx
|
|
httpcore
|
|
certifi
|
|
idna
|
|
anyio>=3.0,<4.14.0 # 4.14 asyncio cancel-scope RuntimeError on Py3.13 streaming (#6483); 4.13 unaffected
|
|
sniffio
|
|
h11
|
|
|
|
# Unpinned resolves to 0.23.1+ which breaks `from transformers import
|
|
# AutoConfig`; transformers 4.56..5.3 declares tokenizers<=0.23.0.
|
|
tokenizers<=0.23.0
|
|
transformers>=4.51.3,!=4.52.0,!=4.52.1,!=4.52.2,!=4.52.3,!=4.53.0,!=4.54.0,!=4.55.0,!=4.55.1,!=4.57.0,!=4.57.4,!=4.57.5,!=5.0.0,!=5.1.0,<=5.3.0
|
|
trl>=0.18.2,!=0.19.0,<=0.24.0
|
|
sentence-transformers
|
|
cut_cross_entropy
|
|
pillow
|
|
|
|
# RAG store + document parsing, mirroring studio.txt. Pinned here because
|
|
# this file installs --no-deps; without them Studio runs with RAG disabled.
|
|
sqlite-vec==0.1.9
|
|
pymupdf==1.27.2.3
|
|
python-docx==1.2.0
|