You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a streaming chat completion request is sent to Unsloth Studio's OpenAI-compatible endpoint (POST /v1/chat/completions) on macOS with Python 3.13, the server crashes with:
RuntimeError: Attempted to exit a cancel scope that isn't the current tasks's current cancel scope
Note: Please do not remove the questions. Answer beside them.
Did you update? pip install --upgrade unsloth unsloth_zoo - No
Colab or Kaggle or local / cloud - Local
Number GPUs used, use nvidia-smi - Macbook Pro M5 Pro
Which notebook? Please link! - None
Which Unsloth version, TRL version, transformers version, PyTorch version? Unsloth version v0.1.47-beta
Which trainer? SFTTrainer, GRPOTrainer etc - None
Environment
Python 3.13
GPU - Apple Silicon
Model - unsloth/Qwen3.5-4B-MTP-GGUF
Transformers - 5.10.2
llama.cpp - unslothai/llama.cpp@b9704-mix-2d6bd50
anyio - 4.14.0
Steps to Reproduce
Launch unsloth studio
Load a GGUF model (e.g., unsloth/Qwen3.5-4B-MTP-GGUF)
Configure copilot in VS Code to point to the local OpenAI endpoint: http://127.0.0.1:8888/v1/chat/completions
Activity
wuyuanyi135 commentedon Jun 19, 2026
confirm downgrade fixes the exception spamming
fix: pin anyio to <4.14.0 to fix RuntimeError on Python 3.13 (#6546)
Studio macOS: force anyio<4.14.0 via uv override (#6575)
Studio: correct anyio<4.14 comments to the real #6483 cause (#6581)
Studio: self-heal a pre-#6483-fix anyio>=4.14 stuck in existing insta…
Studio: notice a quarantined payload before trusting the update fast …