Skip to content
Projekte

Über uns

Private chat and code with Qwen3.8 Flash-Next (177B) on a 128 GB M5 Max. v0.5.0 peaks of 254.89 tok/s after the first token and 236.69 tok/s end to end. Native Metal with MTP or DFlash2, up to 131,072 tokens of context and an OpenAI-compatible API. Apache 2.0.

KI und maschinelles Lernen

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
+4
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

tokspur tokspur

Private chat and code on your Mac.

Website | Get started | Docs | Engine | GitHub

Tokspur runs Qwen3.8 Flash-Next locally on a Mac. It uses a native Metal worker and serves an OpenAI-compatible chat API.

Install

You need an Apple M5 Max with a 40-core GPU, 128 GB of unified memory and macOS 27 or later.

curl -fsSL https://tokspur.com/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

The setup guide covers checking the install and connecting a client.

Add the model

tokspur pull
tokspur serve --speed-preset

tokspur pull downloads the pinned model from san-digital/Qwen3.8-Flash-Next-Q4_K-Tokspur-GGUF, checks every file by SHA-256 and sets up local state with no extra adopt, configure or pack build step. See the model guide for details.

If you already downloaded that repository, serve it directly:

tokspur serve /path/to/Qwen3.8-Flash-Next-Q4_K-Tokspur-GGUF --speed-preset

Connect to http://127.0.0.1:18081/v1 with model tokspur and the generated API key.

Faster decoding with DFlash2

The optional DFlash2 drafter speeds up code, <think> reasoning and multilingual output.

tokspur pull --dflash2
tokspur serve --speed-preset --drafter dflash2 --shared-prefix-cache

For multilingual or CJK prompts with reasoning, add --dflash2-vocab-gather cjk64k --dflash2-lookup hybrid --ple-ram-resident.

Context and output

  • The default context is 64K (65,536 tokens). Start the server with --context-length 131072 for 128K, which needs more memory.
  • The prompt, chat history and tool declarations share the context with the output. Set your client's context size to match the server.
  • Output defaults to 8,192 tokens, including thinking. Set max_tokens or max_completion_tokens from 1 to 32,768. The server lowers the limit to fit the space left and refuses prompts that leave none.
  • Thinking is on by default. Turn it off with enable_thinking: false, guide it with reasoning_effort (low, medium, high or xhigh), or cap it with thinking_budget from 0 to 32,768, where 0 turns it off.

The API guide lists every request setting.

Memory and parked chats

  • With the MTP drafter, --speed-preset parks up to 4 GiB of conversation state in RAM once a chat reaches 2,048 tokens. To resume, resend the previous messages with the same sampling settings and the same seed, if you set one. --parked-lanes-mib changes the budget, and --parked-lanes-mib 0 turns parking off.
  • DFlash2 parking is experimental. It needs an explicit --parked-lanes-mib, --shared-prefix-cache and --native-dflash2-defer-context off.
  • The worker maps the 85.9 GB Pack v3 read-only as Metal buffers of up to 4 GiB each. --pack-v3 refuses to fall back to an older pack layout.
  • With MTP or DFlash2 and the checkpoint broker off, the worker stops a request when macOS reports memory pressure. The client gets HTTP 503, or an error in the stream if it has started. Once pressure clears, the next request can use the same worker.

Build from source

Install Xcode with the Metal toolchain, Git, Python 3.12 and Rust 1.99.1, then run these from the checkout root.

python3.12 scripts/bootstrap.py
.venv/bin/tokspur doctor

Licences

Apache 2.0. See NOTICE for third-party credits and model licences for the weights. Report vulnerabilities through the Security page.

Ähnliche Projekte entdecken

Wird geladen…