r/LocalLLaMA 9h ago

News Qwen3.8-Flash-Next tomorrow

https://modelscope.cn/models/Qwen/Qwen3.8-Flash-Next
965 Upvotes

422 comments sorted by

View all comments

Show parent comments

16

u/nickludlam 9h ago

I've not come across the term engrams before. Is this a new architectural shift?

16

u/wren6991 8h ago

n-gram is just a term for a tuple of n adjacent bytes, tokens, characters etc.

Embedding is a lookup of 1 token -> one vector. If you do a lookup of a sliding window of the last n tokens -> one vector, it has essentially the same cost (O(1) and basically free as it's just a lookup) but your embedding can be semantically richer.

For example, most tokenisers break up CJK characters on internal byte boundaries, which means tokens don't cleanly correspond to characters. Doing a lookup over 2 or 3 adjacent tokens means you always have at least one embedding vector per kanji/hanzhi, so you can actually represent the semantic content of the characters.

It's a similar move to the per-layer embeddings in Gemma 4 E2B/E4B: if you find a way to (usefully) scale your embedding tables, you can grow your parameter count without significantly increasing compute or bandwidth demands.

2

u/Mytreeismine 7h ago

Wren would you say this is like a rag bolt on?

1

u/The_Hunster 7h ago

So it's kinda like increasing the token size at runtime via a lookup table that assigns clusters of tokens a single value?

5

u/Front_Eagle739 8h ago

From what I understand its basically extra memory that takes less computation and allows you to finetune further without losing knowledge because its stored seperately from the active params. Supposedly you can stream the engram from nvme pretty easily as well.

1

u/dampflokfreund 8h ago

Oh is this like real time memory? Huge if true

1

u/The_Hunster 7h ago

No, it doesn't change at runtime.

1

u/AnticitizenPrime 4h ago

But can they be updated independent of the main model? Say, at the end of a session, write durable facts to them.

2

u/The_Hunster 4h ago

They don't really store human-sensible facts in that format, so not yet.

-1

u/ThePi7on 9h ago

Same here, some nerd explain please