Skip to content

Memory explosion / leak when serving Qwen3.6-27B-ConfigI-MLX with TurboQuant kv_scheme=turbo4 #21

Description

@heykb

Environment

  • Hardware: Apple MacBook Pro (M4 Pro, 48GB unified memory)
  • vllm-swift version: vllm-swift 0.6.2
    • dylib: /opt/homebrew/Cellar/vllm-swift/0.6.2/lib/libVLLMBridge.dylib
    • vLLM: 0.19.1
  • Model: Qwen3.6-27B-ConfigI-MLX (local path: ~/models/Qwen3.6-27B-ConfigI-MLX)
  • Command:
vllm-swift serve ~/models/Qwen3.6-27B-ConfigI-MLX \
  --served-model-name qwen3.6-27b \
  --max-model-len 40960 \
  --enable-auto-tool-choice \
  --tool-call-parser hermes \
  --additional-config '{"kv_scheme": "turbo4", "kv_bits": 4}'

Problem Description

After the server starts successfully and I send a chat completion request, the response begins streaming — exactly 2 characters are emitted immediately — then the stream hangs. Within seconds, memory usage explodes and the system becomes unresponsive (48GB unified memory saturated).

This behavior is 100% reproducible on my machine.

Observed Behavior

  1. Server starts without error.
  2. First request arrives.
  3. 2 tokens/characters are returned instantly.
  4. Stream freezes.
  5. Memory usage spikes rapidly until the OS kills the process or the machine swaps heavily.

Expected Behavior

The request should stream to completion without unbounded memory growth.

Questions / Hypotheses

Logs

No explicit crash log is produced — the process is killed by the OS due to memory pressure. Happy to provide any diagnostics if instructed.

Related Issues


Please let me know what additional information (traces, memory profiling, model config) would help diagnose this.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions