Archived
radiance 1.0.11
- 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.
This commit is contained in:
1 parent
e466fa07e2
commit
469441d90f
24 files changed
+848
-247
No files matched your search
+5
-3
@@ -109,9 +109,11 @@ struct Band {
|
||||
* beside the mapping that already holds one. A sparse Zipfian gather of a dozen rows out of
|
||||
* hundreds of millions is exactly what a page cache is good at.
|
||||
*
|
||||
* Only a HOST kernel can read one -- the bytes are pageable and at no device address -- so the
|
||||
* planner assigns this tier where, and only where, no device kernel for the op exists at all
|
||||
* (embed_lookup_q, libavx/avx_ngram.cpp, is the one such op in this tree). */
|
||||
* Only a HOST kernel can read the mapping -- the bytes are pageable and at no device address -- so
|
||||
* the planner assigns this tier where no device kernel for the op exists at all, and where
|
||||
* --ngram-placement keeps an n-gram table off the card (embed_lookup_q, libavx/avx_ngram.cpp).
|
||||
* Under `ram` the load phase publishes a copy in place of the mapping: locked memory for the host
|
||||
* gather, or pinned memory a device kernel reads over the link (the zero-copy site). */
|
||||
enum class Tier { VRAM = 0, HostPinned = 1, HostPageable = 2, SSD = 3, Mapped = 4 };
|
||||
|
||||
/* WHERE A LOOKUP TABLE LIVES: the token embedding (--embedding-placement) and an n-gram embedding
|
||||
|
||||
Reference in new issue
Block a user