Archived
- The n-gram embedding table (Qwen3.8-Flash-Next's per-layer embedding) can be gathered on the card. libr4d gains a row for embed_lookup_q whose output is the host gather's to the bit, and --ngram-placement uses it: ram keeps a pinned copy in RAM that the cards read in place over the link, so a step has no host work in it; vram puts the whole table on every card that holds it; disk reads it from the container on the host, as before. auto takes the first of the three that holds the table and prints why it passed over the others. Without a device kernel for the gather, ram is the locked copy the host gather reads and vram is refused, as in 1.0.10. - The pinned copy is not charged to RLIMIT_MEMLOCK; the host gather's locked copy still is, so --ulimit memlock=-1 matters only on a run without the cards. - The idea and a first kernel for the device gather came from Code000.
19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
radiance
|
|
Copyright 2026 Deadcode and the radiance contributors
|
|
|
|
Written by Deadcode, with contributions from tcclaviger (the N-rank all-reduce kernels), ggz14
|
|
(the MXFP4 GEMM and the GDN kernels' overflow guards), goodman-b (four-rank tensor parallelism
|
|
for Qwen3.8-Flash-Next), keptn42 (the four-rank all-reduce served in place, the fused four-rank
|
|
writes, the n-gram table in RAM and the four-class expert split), mechkbfan (the token
|
|
embedding in the pinned host pool) and Code000 (the n-gram gather on the card).
|
|
|
|
This product includes software from the following projects, each under the MIT License. The
|
|
license text is in the file named beside each.
|
|
|
|
llama.cpp Copyright (c) 2023-2026 The ggml authors vendor/llama/LICENSE
|
|
vendor/llama/, and the code lifted or ported from it: core/sample/gbnf.*, the
|
|
host samplers in core/sample/host_ref.*, the tokenisers in core/text/, and
|
|
libquant/lq_ggml_*
|
|
nlohmann/json Copyright (c) 2013-2025 Niels Lohmann vendor/nlohmann/LICENSE.MIT
|
|
cpp-httplib Copyright (c) 2017 yhirose vendor/cpp-httplib/LICENSE
|