Skip to content

[Bug] RuntimeError: llama-server returned 500 Compute Error during GGUF tool streaming on macOS aarch64 #5118

Closed

Description

@Hax0rG1rl

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!

Activity

  1. Datta0 commented on Apr 21, 2026

    @Datta0
    Contributor

    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

  2. Hax0rG1rl commented on Apr 21, 2026

    @Hax0rG1rl
    Author

    Apple M3 Pro - 36Gb - unsloth/Qwen3.6-35B-A3B-GGUF UD_Q4_K_XL

  3. rolandtannous commented on Apr 21, 2026

    @rolandtannous
    Contributor

    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?

  4. Hax0rG1rl commented on Apr 21, 2026

    @Hax0rG1rl
    Author
    Image
  5. O-Q commented on May 23, 2026

    @O-Q

    @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?

  6. black-snow commented on Jun 20, 2026

    @black-snow

    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.".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions