san-digital/tokspur
Acerca de
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.
IA y aprendizaje automáticoCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +4
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalPrivate 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 131072for 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_tokensormax_completion_tokensfrom 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 withreasoning_effort(low,medium,highorxhigh), or cap it withthinking_budgetfrom 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-presetparks 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 sameseed, if you set one.--parked-lanes-mibchanges the budget, and--parked-lanes-mib 0turns parking off. - DFlash2 parking is experimental. It needs an explicit
--parked-lanes-mib,--shared-prefix-cacheand--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-v3refuses 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.
Explorar proyectos relacionados
Cargando…

