Skip to content

nn-0.8.0

Choose a tag to compare

@sonic182 sonic182 released this 30 Nov 23:35
· 2 commits to main since this release
38de454
  • Breaking: nn asks for Agentica 0.40.0 and keeps its modules in src/; pkg/nn/NAME imports are unchanged (ml#302).
  • Delta.GatedDeltaNet takes sigmoid_gate, the output_gate_type: sigmoid of Qwen4-Exp (ml#436).
  • NGram (pkg/nn/ngram) computes the hashed n-gram ids of Qwen4-Exp (Qwen3.8-Flash-Next) and embeds them, with the ids of Hugging Face's Qwen4ExpTextNGramEmbedding (ml#436).
  • Nn.Rope with inv_freq takes neox: false, which turns the columns 2i and 2i + 1 together (ml#303).
  • Paged (pkg/nn/paged) keeps the blocks of a paged KV cache: a pool of blocks with ref counts, a table of blocks per sequence, copy-on-write of a shared block, and the pool rows a step writes and reads; no tensors yet (ml#92).
  • Hyper (pkg/nn/hyper) and Ple (pkg/nn/ple) are the hyper-connections and the per-layer embedding of Qwen4-Exp (Qwen3.8-Flash-Next), and Nn.LayerNorm takes a group, the grouped RMS norm they use, as Hugging Face's Qwen4ExpTextGatedResidual, Qwen4ExpTextPLELayer and Qwen4ExpTextRMSNorm compute them (ml#436).
  • Paged.publish names the full blocks of a table by a hash of their tokens and Paged.reuse gives a new prompt the named blocks it starts with; a named block no table holds stays idle until a block is needed, the least recently idle first, and is copied before a write (ml#92).
  • Qsa.mask takes query_at, the position of each query over a padded cache, and Ple.ple takes a Delta.padding (Ple.span) for a padded prompt (ml#436).
  • Qsa (pkg/nn/qsa) is the token selection of the indexed attention of Qwen4-Exp (Qwen3.8-Flash-Next): the mask of the keys each query reads, as Hugging Face's Qwen4ExpTextQSAIndexer selects them (ml#436).