Skip to content

Build as C++26 - #59

Merged
bong-water-water-bong merged 3 commits into
mainfrom
cxx26
Sep 25, 2026
Merged

bong-water-water-bong merged 3 commits into
mainfrom
cxx26

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

CMAKE_CXX_STANDARD 23 → 26.

  • Builds clean on Strix Halo with GCC 15.2 / CMake 4.2: the whole engine including the NPU lane (-DONEBIT_NPU=ON), no errors, 21 s. CI checks the other platforms.
  • Why: C++26 features we want to use next. Available in GCC 15 today: #embed (compile the NPU kernel ELFs/PDI, tokenizer data and web UI into the binary — one self-contained 1bit, ideal for 1bit OS), pack indexing, = delete("reason"), the _ placeholder. With GCC 16: static reflection (P2996, for JSON/config and API structs) and contracts.
  • No code changes yet; each feature lands in its own PR as it's used.

🤖 Generated with Claude Code

GCC 15.2 builds the whole engine (NPU lane included) with -std=c++26, no errors. C++26
brings what we want next: #embed (kernels, tokenizer and UI inside one binary), pack
indexing, deleted-with-reason; static reflection and contracts arrive with GCC 16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@context7

context7 Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Docs7 for 1bit-monster/engine

Result Status Action
Deployment ➖ Not used —
Content review ➖ Did not run. This site has no agent runs available this month. Wait for the monthly reset or check your Docs7 plan. —

Commit d1c8981

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) September 25, 2026 03:42
@bong-water-water-bong
bong-water-water-bong merged commit 44b18e9 into main Sep 25, 2026
2 checks passed
bong-water-water-bong added a commit that referenced this pull request Oct 2, 2026
…mat SwiGLU, Hadamard Q4_0 (#278)

* Pin llama.cpp bd5b297: HRX remainder prefill, 32K+ prompts, mixed-format SwiGLU, Hadamard Q4_0

llama.cpp fork commits since 6e42b51 (figures from each PR, Qwen3.8-27B on HRX0, balanced mode):
- #61: q8_1 x4 prefill takes the 256-aligned head of a Q5_K/IQ4_XS remainder chunk.
  UD-Q4_K_XL pp400 67.4 -> 103.4, pp1862 172.1 -> 234.6 tok/s; KLD vs 6e42b51 0.00215,
  same top token 97.19%; MUL_MAT HRX0 287/287.
- #59: V stays row-major past copy_transpose_f16's 32768-row range. pp512 @ d32768 failed
  before, 227.4 tok/s now; a 34,816-token wikitext chunk gives PPL 6.2150.
- #60: K-quant SwiGLU decode stages separate gate/up codebooks. UD-IQ2_S tg128 3.12 -> 8.32;
  UD-Q4_K_XL unchanged; KLD 0.00013; test-backend-ops HRX0 996/996.
- #58: llama loads onebit.hadamard_q4_0 files through llama-hadamard (needed by #277).
  Q4_0-H32 vs BF16: PPL 6.021, KLD 0.0292, same top token 92.5%.

Docs: docs/hrx.md #55 section (remainders now covered for Q5_K/IQ4_XS) and "Our patches".
Registry regenerated (tools/registry_build.py; no mapping changes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs/hrx.md: the #61 figures were measured on 6e42b51 + #61 (a36d547) (review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: bong-water-water-bong <bong-water-water-bong@1bit.gg>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
bong-water-water-bong added a commit that referenced this pull request Oct 2, 2026
The engine's GPU route is HRX only since 2026-10-01. Long documents went to
the lean ROCm build while HRX prefilled Qwen3.8-27B at 97-99 tok/s; since the
HRX prompt-matmul routing (fork #55, engine #273) it prefills 335 tok/s pp512
and a 14,435-token prompt through serve at 265 tok/s. Every Laya class now
routes to HRX. Past 32K of context HRX needs fork #59 (pinned separately).

Co-authored-by: bong-water-water-bong <bong-water-water-bong@1bit.gg>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant