It’s a technique first published by DeepSeek in a paper, also called per-layer-embeddings.
Essentially, its a kind of trained parameters specifically to store semantics of multi-token constructs (e.g. “New York”). The idea is that this gives the model more space in its “regular” parameters for “intelligence”. Without it, the meaning of “New York” would have to be encoded in the regular parameters somewhere. Because it’s kind of a lookup table, it’s very inexpensive at inference, allowing to offload it to RAM or even SSD.
Rather than doing tokens one at a time it has a list of a few billion common 2 or 3 token sequences (n-grams) that it can use. These use up a good few gigabytes but they can be streamed from storage as you only need a handful for each generation, and they add more “knowledge” baked into the model.
Whoa, an official Qwen 35B-A3B model that appears to beat 3.8 27B at coding. 😲
It’s got ngrams ☠️
Means?
It’s a technique first published by DeepSeek in a paper, also called per-layer-embeddings.
Essentially, its a kind of trained parameters specifically to store semantics of multi-token constructs (e.g. “New York”). The idea is that this gives the model more space in its “regular” parameters for “intelligence”. Without it, the meaning of “New York” would have to be encoded in the regular parameters somewhere. Because it’s kind of a lookup table, it’s very inexpensive at inference, allowing to offload it to RAM or even SSD.
Thanks for the explanation!
Rather than doing tokens one at a time it has a list of a few billion common 2 or 3 token sequences (n-grams) that it can use. These use up a good few gigabytes but they can be streamed from storage as you only need a handful for each generation, and they add more “knowledge” baked into the model.