Skip to content

[Bug] 256k context selected, loads only 4k #9653

Closed

Description

@black-snow

Environment

Where are you using Unsloth?

  • Studio desktop application
  • Studio web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:
macOS 26.6.2 (25G83)

GPU model(s) and accelerator backend:
MBP M3 36GB, gguf

Versions:
Unsloth Version
v0.1.801-beta
Package Version
2026.8.19
llama.cpp Version
b10472-mix-4b653db

What happened?

I select 256k context window in model settings:

Image

But when I load the model it only has 4k context and the slider complains that nothing else will fit.
models endpoint also yields:

{
            "context_length": 4096,
            "created": 1787607044,
            "id": "unsloth/Qwen3.6-35B-A3B-MTP-GGUF",
            "loaded": true,
            "max_context_length": 4096,
            "native_context_length": 262144,
            "object": "model",
            "owned_by": "unsloth-studio",
            "quant": "UD-Q4_K_XL"
}

Steps to reproduce:

see above

Expected behavior:

Should either recommend applicable settings before loading the models or not load it with wrong settings.
I can load it with decen context with llama.cpp directly - I don't see why US thinks it can only handle 4k context.

Actual behavior:
see above

Model and operation involved:
see above

Diagnostics and logs

0.10.233.804 I srv    load_model: loaded multimodal model, '/Users/flake/.cache/huggingface/hub/models--unsloth--Qwen3.6-35B-A3B-MTP-GGUF/snapshots/5bc3e238d916f48a861bac2f8a1990a0e9b7e98d/mmproj-F16.gguf'
0.10.304.679 I srv    load_model: initializing, n_slots = 4, n_ctx_slot = 4096, kv_unified = 'true'
{"timestamp": "2026-08-24T21:30:27.104346Z", "level": "info", "event": "Starting llama-server: /Users/flake/.unsloth/llama.cpp/build/bin/llama-server -m /Users/flake/.cache/huggingface/hub/models--unsloth--Qwen3.6-35B-A3B-MTP-GGUF/snapshots/5bc3e238d
916f48a861bac2f8a1990a0e9b7e98d/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf --port 49868 --parallel 4 --flash-attn on --no-context-shift -c 4096 --alias unsloth/Qwen3.6-35B-A3B-MTP-GGUF --fit on --metrics --slot-save-path /Users/flake/.unsloth/studio/cache/llama
-slots --kv-unified --jinja --cache-type-k q8_0 --cache-type-v q8_0 --spec-type ngram-mod,draft-mtp --spec-draft-n-max 3 --spec-ngram-mod-n-match 24 --spec-ngram-mod-n-min 48 --spec-ngram-mod-n-max 64 --chat-template-kwargs {\"enable_thinking\": true
, \"preserve_thinking\": false} --mmproj /Users/flake/.cache/huggingface/hub/models--unsloth--Qwen3.6-35B-A3B-MTP-GGUF/snapshots/5bc3e238d916f48a861bac2f8a1990a0e9b7e98d/mmproj-F16.gguf"}

Activity

  1. added
    feature request
    on Aug 24, 2026
  2. waltcf commented on Aug 25, 2026

    @waltcf

    I have observed this several times as well (macOS 15.7.9). I have also seen it go progressively lower on multiple unload-load cycles of the same model (with nothing else changed on the system) as well as instances of the slider bars for both Context Length and Max Tokens not allowing user adjustment up or down.

  3. shimmyshimmer commented on Aug 25, 2026

    @shimmyshimmer
    Member

    This is due to the model not loading on RAM, we will be issuing a 'fix' for this today. The entire backend of unsloth was reworked

  4. danielhanchen commented on Aug 28, 2026

    @danielhanchen
    Member

    Your case is the branch where the KV size cannot be measured, so the context is silently floored and published rather than refused; the guard that does refuse covers a different case.

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

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions