hyperNix.4-nano (Transformers)
ray0rf1re/hyperNix.4-nano for the Transformers
HyperNix0xV3ForCausalLM (model_type: hypernix0x_v3): the same weights, untouched, with a Transformers config,
tokenizer config (ChatML template) and generation config. Transformers renames HyperNix's tensor names as it loads
them. The model gives the same logits as HyperNix's own implementation.
The chat-tuned 3.48M-parameter HyperNix0xV3 model: 4 blocks of Tidepool → Keel → SwiGLU, d_model 192, 4 query / 2 KV heads (head_dim 48), Tidepool window 128 and summary chunk 64, Keel 8 slots × 64, an 8,192-token byte-level BPE vocabulary, a 1,664-token context. See the original card for the architecture, training data and procedure.
How to use
HyperNix0xV3 support for Transformers is proposed upstream; until it is released, install the branch that adds it:
pip install "git+https://github.com/trail-b1az3r/transformers@add-hypernix0x-models"
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ray0rf1re/hyperNix.4-nano-hf")
tokenizer = AutoTokenizer.from_pretrained("ray0rf1re/hyperNix.4-nano-hf")
messages = [{"role": "user", "content": "Give me three tips for learning Python."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
out = model.generate(inputs, max_new_tokens=80, do_sample=True, temperature=0.7)
print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
Generation stops at <|im_end|> or <|endoftext|>. HyperNix0xV3 keeps no KV cache: each step recomputes the
sequence, which is fine at this size. Batches must not be padded (the chunk summaries would pool the padding).
Intended use and limitations
- A research and tinkering model: studying the HyperNix0xV3 design and tiny-model training. Not for production.
- At 3.5M parameters it writes fluent-looking but frequently wrong or incoherent text. Do not rely on facts, code or arithmetic it produces.
- No safety or alignment training beyond whatever is present in smoltalk2. It can produce mature, biased or offensive text.
- Context is trained at 1664 tokens; behaviour beyond that is untested.
Licensing and data notes
The weights are derived from several datasets with different terms, so this repo is tagged license: other. Check
each before reuse:
- AO3-2020 (
ray0rf1re/AO3-2020) is CC BY-NC 4.0: non-commercial only. - Stack v3 is released under ODC-By, and individual files keep their original licences.
- Nemotron-Pretraining-SFT-v1 is under the NVIDIA Open Data License and is gated; it contains synthetic data generated by Qwen and DeepSeek models, whose licence terms may also apply to models trained on it.
- fineweb-edu and smoltalk2 follow their own dataset cards.