Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The repositories this engine is built on, in order of importance:
| 8 | [huggingface/tokenizers](https://github.com/huggingface/tokenizers) | Every model's `tokenizer.json`, byte-exact, behind our C ABI | Apache-2.0 |
| 9 | [NandhaKishorM/laya](https://github.com/NandhaKishorM/laya) | The router that decides where each request runs | Apache-2.0 |
| 10 | [ROCm/FastFlowLM](https://github.com/ROCm/FastFlowLM) | The Q4NX NPU model format and its models on Hugging Face (`FastFlowLM/*-NPU2`), which the engine's NPU route runs on its own kernels | MIT |
| 11 | [antirez/ds4](https://github.com/antirez/ds4) (DwarfStar) | DeepSeek V4 Flash, GLM 5.x and Qwen3.8-Flash-Next on its own kernels (ROCm on Strix Halo, CUDA, Metal) | MIT |
| 11 | [antirez/ds4](https://github.com/antirez/ds4) (DwarfStar) | **reference only, not in the shipped build** since v2026.44: antirez's CUDA kernels through a HIP shim plus hipBLAS are not our HIP kernels. The fork [1bit-MONSTER/ds4](https://github.com/1bit-MONSTER/ds4) stays as the reference for the work ([dwarfstar.md](docs/dwarfstar.md)) | MIT |

Also built on [nlohmann/json](https://github.com/nlohmann/json) (MIT)
and [yhirose/cpp-httplib](https://github.com/yhirose/cpp-httplib) (MIT).
Expand Down
11 changes: 7 additions & 4 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ the README is the short version.
stream is recorded there.
- **ONNX Runtime**, linked in-process behind `-DONEBIT_ORT`, with our own execution provider that
claims MatMul and runs it on the NPU runtime ([onnx.md](onnx.md), [onnx-pack.md](onnx-pack.md)).
- **DwarfStar**, for DeepSeek V4 Flash, GLM 5.x and Qwen3.8-Flash-Next in its own GGUFs, with SSD
expert streaming ([dwarfstar.md](dwarfstar.md)).
- ~~**DwarfStar**~~ — **out of the shipped build** since v2026.44 (owner decision, 2026-11-01): its DeepSeek V4
Flash / GLM 5.x / Qwen3.8-Flash-Next route is antirez's CUDA kernels through a HIP shim plus hipBLAS, not our HIP
kernels, and the release ships HIP kernels only. Those models run on **HRX**. The measurements and the SSD
streaming design stay on [dwarfstar.md](dwarfstar.md) as reference, and the fork
[1bit-MONSTER/ds4](https://github.com/1bit-MONSTER/ds4) is kept for it.
- **Laya**, opt-in, which picks where each request runs ([laya.md](laya.md)), and **the Project
Manager**, ZAYA1-8B delegating to expert models ([pm.md](pm.md)).
- **Every Hugging Face model architecture**, mapped to a backend by a registry and kept current by
Expand Down Expand Up @@ -75,8 +78,8 @@ a written step list ([kernel.md](kernel.md)).
## Pinned sources

HRX is pinned to AMD's hrx-system and ggml-hrx with our commits on top, kept current by `bump-hrx`
([hrx.md](hrx.md#pinned-sources-kept-current)); Lemonade, Laya, the tokenizers library and
DwarfStar each have their own bump workflow ([releases.md](releases.md#bumps)). A hand-raised bump
([hrx.md](hrx.md#pinned-sources-kept-current)); Lemonade, Laya and the tokenizers library
each have their own bump workflow ([releases.md](releases.md#bumps)); DwarfStar's is kept for the reference fork only. A hand-raised bump
carries the branch name and the derived data the checks expect ([releases.md](releases.md)).

## Direction
Expand Down
7 changes: 7 additions & 0 deletions docs/dwarfstar.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ limitations under the License.
-->
# DwarfStar

> **Status: not part of the shipped 1bit builds since v2026.44** (owner decision, 2026-11-01: the release ships
> **HIP kernels only**). The `ds4` route is antirez's CUDA kernels through a HIP shim plus hipBLAS — not our HIP
> kernels — so the engine is built with `ONEBIT_DS4=OFF`, `1bit serve --device ds4` is not offered, and the shipped
> Lemonade catalogue no longer lists a `ds4` recipe. DeepSeek V4 Flash, GLM 5.x and Qwen3.8-Flash-Next run on
> **HRX**. This page is kept as the reference for that work, and the fork
> [1bit-MONSTER/ds4](https://github.com/1bit-MONSTER/ds4) stays as its home.

[DwarfStar](https://github.com/antirez/ds4) (`antirez/ds4`, MIT) is a native
inference engine written for a few large MoE models: DeepSeek V4 Flash (and V4.1
Flash and PRO on bigger machines), GLM 5.2/5.3 Flash and Qwen3.8-Flash-Next. It has
Expand Down
10 changes: 5 additions & 5 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Release sha and pins (the submodules this candidate is built from):
| private NPU runtime | `ce9fa59adf95` |
| Laya | source `6f0496f797dc`, model `7b928d828b7b` |
| amdxdna (out-of-tree NPU driver) | `526c608197` |
| DwarfStar / tokenizers | `5b013dc1bb` / `3012770722` |
| DwarfStar (reference fork only, not shipped since v2026.44) / tokenizers | `5b013dc1bb` / `3012770722` |

| artifact | status |
|---|---|
Expand Down Expand Up @@ -179,7 +179,7 @@ rehearsal at `v7.3` and linux-next `next-20261022` (`#525`).

| file | what |
|---|---|
| `lemonade-onebit-<tag>-linux-x86_64.tar.zst` | Lemonade (`lemond`, `lemonade`, its web app) from our fork with the onebit recipe, and the engine in `1bit/`: `1bit` and every backend: HRX (and the CPU, from the same llama-server), DwarfStar, and the NPU engine's runtime (the NPU route is in progress, [below](#the-npu-engine)). No Vulkan or ROCm llama.cpp since RFC #213 stage 3 |
| `lemonade-onebit-<tag>-linux-x86_64.tar.zst` | Lemonade (`lemond`, `lemonade`, its web app) from our fork with the onebit recipe, and the engine in `1bit/`: `1bit` and every backend it ships: **HRX** (and the CPU, from the same llama-server) and the NPU engine's runtime. DwarfStar is out of the shipped build since v2026.44 (HIP kernels only, owner decision 2026-11-01; [dwarfstar.md](dwarfstar.md)); no Vulkan or ROCm llama.cpp since RFC #213 stage 3. No Vulkan or ROCm llama.cpp since RFC #213 stage 3 |
| `1bit-os-<tag>.img.zst`, `1bit-os-<tag>.efi` | 1bit OS, a Lemonade appliance with the engine as a bootable USB image ([os/README.md](../os/README.md)) |
| `changes.json`, `SHA256SUMS` | what moved upstream since the last release, as data; checksums |

Expand Down Expand Up @@ -308,7 +308,7 @@ amdclang builds them; credited in `NOTICE-BINARY`) packed in `hrx/llama/bin`. Af
- **Licensed:** `LICENSE`, `NOTICE`, `LICENSE-BINARY` and `NOTICE-BINARY` are in the tarball.
- **Libraries found:** `ldd` (with `ROCR_VISIBLE_DEVICES=-1`) finds every library each packed
program and library needs, except the TheRock runtime the package documents (HIP, hipBLAS(Lt),
rocBLAS, HSA, which DwarfStar links).
rocBLAS, HSA - the same libraries the reference DwarfStar build linked).
- **Links inside:** every symlink in the engine tarball and in the Lemonade + onebit tarball is
relative and resolves inside the package (`pack_outside_links`); the `libggml*.so` ->
`.so.0` links stay links. Lemonade's build links its web app's KaTeX fonts to the build
Expand Down Expand Up @@ -347,7 +347,7 @@ Before the first stage runs, `weekly.sh` checks what the machine must have (the
rehearsal found these only after the build) and stops with a message naming what is missing:

- **bumps, build:** TheRock in `/opt/rocm-therock`, or `-DONEBIT_HRX_TOOLCHAIN=<dir>` in
`WEEKLY_CMAKE_ARGS`; `hipcc` for DwarfStar, in TheRock or `/opt/rocm`, or `ROCM_PATH`.
`WEEKLY_CMAKE_ARGS`; `hipcc` only for the optional DwarfStar build (`ONEBIT_DS4=ON`, off since v2026.44), in TheRock or `/opt/rocm`, or `ROCM_PATH`.
- **package:** `patchelf` (`scripts/package-linux.sh`); `node` and `npm` for Lemonade's web app
(`LEMONADE_WEB_APP=1 scripts/build-lemonade.sh`; its `npm ci` needs the network); a readable kernel image for 1bit OS,
`/boot/vmlinuz-$(uname -r)` or `VMLINUZ=<copy>` (Ubuntu's `/boot/vmlinuz-*` is root-only).
Expand All @@ -363,7 +363,7 @@ rehearsal found these only after the build) and stops with a message naming what
|---|---|
| `bump-lemonade/*` | Lemonade's LLM suite through the onebit recipe on HRX ([lemonade.md](lemonade.md)) |
| `bump-laya/*` | `tests/laya_route_e2e.sh` on the pinned checkpoint |
| `bump-ds4/*` | DwarfStar's routed-MoE test (`DS4_TEST=1 scripts/build-ds4.sh`) |
| `bump-ds4/*` | DwarfStar's routed-MoE test (`DS4_TEST=1 scripts/build-ds4.sh`) — kept for the reference fork; the backend is not shipped since v2026.44 |
| `bump-hrx/*` | every `hrx` row of `registry/check_models.tsv` through `tools/registry_check.py` (serve end to end per architecture, ZAYA1 and the Qwen MoE models included); any FAIL holds the bump |
| `bump-xdna/*`, `bump-tokenizers/*` | covered by build + ctest (serve end to end on each device); the xdna-driver pin is the `amdxdna` kernel driver, which the release does not build: check it on Strix Halo with the module loaded ([npu.md](npu.md), "The XDNA driver") |

Expand Down
Loading