Repository navigation
Closed
Labels
Description
Hi,
I am running in this issue since I upgrade to the new Unsloth version via the CLI.
- Did you update? pip install --upgrade unsloth unsloth_zoo → Used Unsloth Studio built-in updater instead of pip. Output:
curl -fsSL https://unsloth.ai/install.sh | sh
🦥 Unsloth Studio Installer
────────────────────────────────────────────────────
platform macos
deps all system dependencies found
venv creating Python 3.13 virtual environment
/Users/echo/.unsloth/studio/unsloth_studio
venv using environment
/Users/echo/.unsloth/studio/unsloth_studio
installing PyTorch (https://download.pytorch.org/whl/cpu)...
installing unsloth (this may take a few minutes)...
setup running unsloth studio update...
🦥 Unsloth Studio Setup
────────────────────────────────────────────────────
frontend up to date
deps [====================] 9/9 finalizing
deps installed
transformers 5.3.0 pre-installed
transformers 5.5.0 pre-installed
installing prebuilt llama.cpp...
existing install detected -- validating update
llama.cpp prebuilt installed and validated
installed release: ggml-org/llama.cpp@b8860
- Colab or Kaggle or local / cloud → Local (macOS aarch64 / Apple Silicon)
- Number GPUs used, use nvidia-smi → N/A — macOS aarch64, likely Apple Silicon MPS or CPU only
- Which notebook? N/A
- Which Unsloth version, TRL version, transformers version, PyTorch version? → Unsloth 2026.4.6
- Which trainer? SFTTrainer, GRPOTrainer etc → N/A — error occurs during GGUF inference / tool streaming in Unsloth Studio
Error:
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/chat", "status_code": 200, "process_time_ms": 5.31}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/health", "status_code": 200, "process_time_ms": 0.83}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/auth/status", "status_code": 200, "process_time_ms": 3.65}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/models/list", "status_code": 200, "process_time_ms": 8.2}
{"timestamp": "", "level": "info", "event": "Loaded default model defaults from /Users/echo/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/studio/backend/assets/configs/model_defaults/default.yaml"}
{"timestamp": "", "level": "info", "event": "Found 0 trained models in /Users/echo/.unsloth/studio/outputs"}
{"timestamp": "", "level": "info", "event": "Found 0 exported models in /Users/echo/.unsloth/studio/exports"}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/status", "status_code": 200, "process_time_ms": 33.12}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/models/loras", "status_code": 200, "process_time_ms": 33.13}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/models/local", "status_code": 200, "process_time_ms": 33.3}
{"timestamp": "", "level": "info", "event": "request_completed", "method": "POST", "path": "/v1/chat/completions", "status_code": 200, "process_time_ms": 1.79}
{"timestamp": "", "level": "error", "event": "Error during GGUF tool streaming: llama-server returned 500: {\"error\":{\"code\":500,\"message\":\"Compute error.\",\"type\":\"server_error\"}}\nTraceback (most recent call last):\n File \"/Users/echo/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/studio/backend/routes/inference.py\", line 1317, in gguf_tool_stream\n event = await asyncio.to_thread(next, gen, _tool_sentinel)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/echo/.local/share/uv/python/cpython-3.13.12-macos-aarch64-none/lib/python3.13/asyncio/threads.py\", line 25, in to_thread\n return await loop.run_in_executor(None, func_call)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/echo/.local/share/uv/python/cpython-3.13.12-macos-aarch64-none/lib/python3.13/asyncio/futures.py\", line 286, in __await__\n yield self # This tells Task to wait for completion.\n ^^^^^^^^^^\n File \"/Users/echo/.local/share/uv/python/cpython-3.13.12-macos-aarch64-none/lib/python3.13/asyncio/tasks.py\", line 375, in __wakeup\n future.result()\n ~~~~~~~~~~~~~^^\n File \"/Users/echo/.local/share/uv/python/cpython-3.13.12-macos-aarch64-none/lib/python3.13/asyncio/futures.py\", line 199, in result\n raise self._exception.with_traceback(self._exception_tb)\n File \"/Users/echo/.local/share/uv/python/cpython-3.13.12-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py\", line 59, in run\n result = self.fn(*self.args, **self.kwargs)\n File \"/Users/echo/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/studio/backend/core/inference/llama_cpp.py\", line 2604, in generate_chat_completion_with_tools\n raise RuntimeError(\n ...<2 lines>...\n )\nRuntimeError: llama-server returned 500: {\"error\":{\"code\":500,\"message\":\"Compute error.\",\"type\":\"server_error\"}}\n"}
Any ideas?
Thanks!
Reacted by Andy Beaumont, Mahdi Shiri and Ronald
Activity
Datta0 commentedon Apr 21, 2026
Hey @Hax0rG1rl this is very likely because you are almost running out of Memory on your mac.
Which model are you running and what specs do you have on your machine
Hax0rG1rl commentedon Apr 21, 2026
Apple M3 Pro - 36Gb - unsloth/Qwen3.6-35B-A3B-GGUF UD_Q4_K_XL
rolandtannous commentedon Apr 21, 2026
Hello ,
Can you share a screenshot of your activity monitor when you're on the memory tab? with everything open including studio but no model loaded?
Hax0rG1rl commentedon Apr 21, 2026
O-Q commentedon May 23, 2026
@Hax0rG1rl By default, Unsloth Studio sets the context length to its maximum. I believe that reducing it works.
@rolandtannous I think it would be highly beneficial if Studio could adjust the context length based on the available memory.
Another thing I noticed is that if I reduce the context length and enable Speculative Decoding, after reloading the model, Speculative Decoding will be turned off! should I open a new issue for that?
black-snow commentedon Jun 20, 2026
M3 Pro 36GB here too getting just "compute error" from unsloth/Qwen3.6-35B-A3B-MTP-GGUF:UD-Q4_K_XL
The web UI (chat) yields nothing, pi gives me "Error: Compute error.".
Studio: budget the Metal context fit from free memory, not total (#8706)
Studio: never start llama-server at native context on Metal (#8709)
Studio: hold the Auto-layers context exemption only while --fit runs (#…