hyperNix.4-nano
The chat-tuned 3.48M-parameter HyperNix0xV3 model. It is ray0rf1re/hyperNix.4-nano-core finetuned for 100.0M tokens on smoltalk2 conversations (assistant-only loss) mixed with a replay of the pretraining data to limit forgetting.
| Parameters | 3,481,172 (3.48M, tied embeddings) |
| Architecture | HyperNix0xV3 (experimental): 4 blocks of Tidepool -> Keel -> SwiGLU |
| Context length | 1664 tokens |
| Width / FFN | d_model 192, d_ff 512 |
| Heads | 4 query / 2 KV (head_dim 48), RoPE theta 10000 |
| Tidepool | exact window 128, summary chunk 64 |
| Keel | 8 slots x 64 dims, rewritten once per chunk |
| Vocabulary | 8,192 byte-level BPE (tokenizer.json), specials <|endoftext|> <|im_start|> <|im_end|> |
| Precision | fp32 weights and fp32 training (no mixed precision) |
| Optimizer | hypernix PressureCookerV7 (balanced preset, fp32 momentum) |
| Final held-out loss | 4.172 (perplexity 64.8) on blocks held out from the training mix |
Architecture
HyperNix0xV3 swaps ordinary full attention for two layers that split its job:
- Tidepool attention - every query attends, in a single softmax, to the last 128 tokens exactly (RoPE keys) and to one salience-pooled summary per completed 64-token chunk further back. Cost per query grows with
window + T/chunkinstead ofT. - Keel state - 8 latent slots persist across the sequence. Tokens read them by cross-attention; at the end of each chunk the slots are rewritten through a learned gate. The recurrence runs once per chunk, so training is parallel inside a chunk.
Each block is RMSNorm -> Tidepool -> RMSNorm -> Keel -> RMSNorm -> SwiGLU with gated residuals. Training here routes Tidepool through a fused scaled_dot_product_attention call that was checked numerically against the reference implementation (identical outputs, same weights). The architecture is explicitly experimental: its upstream documentation makes no claim that it beats the V2 design, and this model does not test that claim.
Training data
All sources were streamed; each had a hard token budget.
| Source | Tokens | Notes |
|---|---|---|
smoltalk2 SFT (English no_think subsets) |
60.0M | ChatML-style, loss on assistant tokens only |
fineweb-edu (sample-10BT) |
25.9M | educational web text |
AO3-2020 (tokens_2_5M) |
0.7M | fan fiction, text column plus extra cleaning (HTML/URL/whitespace) |
| Stack v3: Python | 9.6M | parquet shards only (no loading script); vendored, minified and duplicate files dropped |
| Stack v3: Shell | 3.2M | same filters |
| Nemotron-Pretraining-SFT-v1 | 0.5M | General + Code + Math folders, interleaved |
Total: 100.0M tokens (stage sft). The replay rows reuse the pretraining sources at their original proportions, reshuffled.
Training procedure
| Hardware | one NVIDIA GTX 1080 (8 GB, Pascal) |
| Sequence length | 1664; documents packed back to back, separated by <|endoftext|> |
| Tokens per optimizer step | 212,992 |
| Steps | 438 |
| Peak LR | 0.0006, warmup -> plateau -> cosine cooldown to 6e-05 (PressureCookerV7 schedule) |
| Weight decay | 0.1 on matrices (not on embeddings, norms, gates); grad-norm clip 0.65 |
| Loss | next-token cross-entropy, assistant tokens only |
| Seed | 1338 |
How to use
The model is a hypernix architecture, not a transformers one:
import torch
from tokenizers import Tokenizer
from safetensors.torch import load_model
from huggingface_hub import snapshot_download
from hypernix.models.hnx0xv3 import HyperNix0xV3Config, HyperNix0xV3Model
path = snapshot_download("ray0rf1re/hyperNix.4-nano")
cfg = HyperNix0xV3Config.load(f"{path}/config.json")
model = HyperNix0xV3Model(cfg).eval()
load_model(model, f"{path}/model.safetensors")
tok = Tokenizer.from_file(f"{path}/tokenizer.json")
prompt = "<|im_start|>user\nGive me three tips for learning Python.<|im_end|>\n<|im_start|>assistant\n"
ids = torch.tensor([tok.encode(prompt).ids])
out = model.generate(ids, max_new_tokens=80, temperature=0.7)
print(tok.decode(out[0].tolist(), skip_special_tokens=False))
Chat format: <|im_start|>{system|user|assistant}\n{content}<|im_end|>\n. Stop at <|im_end|>. generate recomputes the whole sequence each step (no KV cache yet), which is fine at this size.
Unedited samples
Generated at temperature 0.7 right after training (not cherry-picked)
Prompt
<|im_start|>user
Write a haiku about autumn.<|im_end|>
<|im_start|>assistant
Output
Additionally, you can use the system to calculate the terms, which can be used to calculate the terms, which can be used to calculate the terms and terms. This is when you use the system to calculate the term's terms, which can be used to describe the terms and terms.
Maintaining
Prompt
<|im_start|>user
Explain what a function is in Python.<|im_end|>
<|im_start|>assistant
Output
To execute your function as a function, it's crucial to read the function, consider the function, or the function. Here's a possible implementation of the function:
```python
def function(self, args, args):
args = args.args
args = args.args
args = args
Prompt
<|im_start|>user
Summarize: The cat sat on the mat and watched the rain.<|im_end|>
<|im_start|>assistant
Output
Summarizing: The cat sat on the mat and scatter, which he found was a good choice for his friends and family. He was a friendly friend, an old boy, who had spent his past, and was a great place for his friends and family.
"Everyone had been in
Prompt
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Hi! Who are you?<|im_end|>
<|im_start|>assistant
Output
The broadest assistant is to start with. If you've been walking in the park or your legs, then the middle of the park is to start and showcase the park. This often comes with a cattle, and it's a promise of lush flow.
Once you've participated,
Intended use and limitations
- A research and tinkering model: studying the HyperNix0xV3 design, tiny-model training on consumer hardware, small-scale experiments. It is not meant for production use.
- 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 benchmark has been run; the loss above is measured on the training distribution and says little about downstream quality.
- The training data includes web text and fan fiction. The model has had 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.
Family
| Model | Stage | Purpose |
|---|---|---|
hyperNix.4-nano-core |
pretrain | base model, text and code continuation |
hyperNix.4-nano |
SFT | chat / instruction following |
- Downloads last month
- -
Model tree for ray0rf1re/hyperNix.4-nano
Base model
ray0rf1re/hyperNix.4-nano-core