hyperNix.4-nano as HyperNix0xV3-3 (Transformers)
This is not a separately trained model. It is the trained weights of
ray0rf1re/hyperNix.4-nano (a 3.48M-parameter HyperNix0xV3,
also published for Transformers as ray0rf1re/hyperNix.4-nano-hf),
re-laid out as a HyperNix0xV3-3 model so the HyperNix0xV33ForCausalLM architecture has a real checkpoint to load. It computes the same
function as the V3 model: its logits match V3's to within about 2e-4 (fp32).
How it was made
The four trained V3 blocks are placed, in order, as HyperNix0xV3-3's prelude, core and coda, with the core run once:
| HyperNix0xV3-3 | from V3 |
|---|---|
prelude.0 | blocks.0 |
core.0, core.1 (n_loops=1) | blocks.1, blocks.2 |
coda.0 | blocks.3 |
tool_layer=False and layer_drop=0. The tensors HyperNix0xV3-3 adds and V3 lacks are set so that they change nothing:
each block's skip gate is held open (skip.weight = 0, skip.bias = 30, so the gate is sigmoid(30) ≈ 1), and with
one pass the loop re-injection is off (inject_scale = 0, loop_embed = 0, inject_norm = 1).
Everything else (tokenizer, ChatML chat template, generation config, training data) is that of hyperNix.4-nano.
How to use
HyperNix0xV3-3 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-v3-3-hf")
tokenizer = AutoTokenizer.from_pretrained("ray0rf1re/hyperNix.4-nano-v3-3-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-3 decodes with HyperNix0xV33Cache, which keeps recent keys and values exact and stores older ones TurboQuant-compressed at kv_bits=3. Set model.config.kv_bits = 0 for a full-precision (lossless) cache. 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.