/v1/chat/completions on the CUDA and HIP engine accepted logprobs and returned an empty choices[0].logprobs.content. Now "logprobs": true with "top_logprobs" 0 to 20 (and the legacy "logprobs": N) returns one entry per token with its alternatives, streamed or not, and "allowed_token_ids" returns a distribution renormalised over exactly the ids the caller named. Engine (src/program/generate.cpp): the GEN line takes logprobs=K and allowed=a,b,c. After each "T id" the engine writes one "LP <logprob> [id:logprob ...]" line from the verify window's head logits before sampling, penalties and temperature. The SYCL engine already wrote LP lines for logprobs=K; it now reads allowed= as well, with the same line format. A request without logprobs reaches none of this: both call sites are behind "req_logprobs >= 0", a local int of the request, so the default path prints what it printed before and does no extra work per token. Changes from the PR: the call sites are guarded instead of calling the function for every token, the function is static, the token index is checked against the row, and the Chinese comment is in English. Server (serve/server.py): LP lines are read before the token is yielded and belong to the request that asked (tagged with its cancel Event), the entries spell the reply, json_schema replies return no logprobs rather than a mismatching set, an allowed id past the vocabulary is a 400, and logprobs on a --parallel server is answered for max_tokens 1 only (a slot's BT lines carry no LP line). serve/structured.py: _extract_json is now extract_json (the logprobs alignment uses it); the two uses added by the #2893 retry follow the rename. Left out: the PR's bench and result files (none in the diff). #3332 (/v1/completions) and #4056 (logprobs on it) build on this change; this one needs nothing from them. Tests: serve.test_logprobs and serve.test_logprobs_parallel (30 tests with the PR's), serve.test_structured, serve.test_responses: 94 tests OK. Not covered: no model ran here. The PR author reports 28 of 28 on an RTX 5080 with MTP and on a GTX 1080 Ti; the layer-split pipelined decode path (the first call site) was not run by anyone, and the LP values were not compared with a CPU softmax of dumped logits. Co-authored-by: Leonardo Murillo <4869242+leonardomurillo@users.noreply.github.com>
Strata guides
New here? Start with Install Strata. Download the one installer for your system (Windows, Linux or Mac), or install the Terminal with one line. Both use released engine packages. This documentation is for version 0.2.5.
Use Strata
| I want to… | Guide |
|---|---|
| Install or update | Desktop app and Terminal |
| Choose a model and check memory | Models and quantizations |
| Run DeepSeek V4.1-Flash (app and Terminal) | DeepSeek V4.1-Flash |
| Start from the command line | Terminal launch |
| Connect a coding tool | Tool connections |
| Fix an install or startup problem | Troubleshooting |
| Check privacy, downloads and network access | Safety and privacy |
Hardware
Use the guide for your GPU and operating system. Model and feature support can differ between backends.
| Hardware | Guide |
|---|---|
| NVIDIA RTX 20 / 30 / 40 / 50 | Install |
| AMD Radeon (RX and AI PRO R9700) | AMD / HIP |
| AMD Ryzen AI Max / Strix Halo | Strix Halo |
| Intel Arc on Linux | Intel Arc |
| Apple Silicon | Mac / Metal |
| More than one GPU | Multiple GPUs |
| Older GPUs | Experimental hardware |
Developers and contributors
- Build or run from a source checkout
- Docker
- Contribution rules
- Community benchmarks and the standard benchmark protocol
- How the engine works, technical reference and Terminal reference
- KVA: approximate prompt processing for the late layers (experimental, opt-in)
- App development and packaging
AI tools and media
- Install for a user
- Verified facts, model availability and API reference
- Articles and videos
- Repository instructions for agents
Which instructions apply?
strata launch belongs to the installed Terminal. START-HERE.bat, SETUP.bat, UPDATE.bat and setup.sh
belong to a source checkout. Raw engine commands are a third interface. Their flags are not interchangeable:
Terminal launch uses --gpu and --vision on|off; source setup uses --gpus and --vision yes|no.
Release notes, design proposals and benchmark reports describe their named versions and machines. They remain available as historical evidence; use the guides above for a new installation. A published result on one GPU does not establish support or speed on every GPU.
Writing a guide page
- Installation steps live in INSTALL.md, source steps in SOURCE_INSTALL.md. The public READMEs stay short.
- Check command examples against the parser and filenames against the release assets.
- A guide describes the current release. Version history, fixed bugs and superseded settings go in a closing
History / older measurements section, in
bench/results, or in the release notes. Do not mix them into instructions.
Every guide page has this shape:
| Part | Content |
|---|---|
| Title | # Name of the task or topic |
| Purpose | One to three lines: what the page is for and who it is for |
| Quick start or Steps | The shortest working path, commands in code blocks |
| Details | ## sections; option and flag lists as tables; short paragraphs |
| History / older measurements | Optional, last. Dated numbers only |
Label every measurement the same way, directly above the number or table:
Measured on: hardware (GPU, CPU, RAM), model or set, Strata version, workload.