hyperNix.4-nano-core
A 3.48M-parameter base language model, trained from scratch on a 1.90B-token streamed mix of educational web text, fan fiction, Python/Shell code and instruction-style data, using the experimental HyperNix0xV3 architecture (Tidepool attention + Keel state layers) in plain fp32 on a single GTX 1080.
This is the base checkpoint. For the chat/instruction-tuned version see ray0rf1re/hyperNix.4-nano.
| 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.230 (perplexity 68.7) 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 |
|---|---|---|
fineweb-edu (sample-10BT) |
1.23B | educational web text |
AO3-2020 (tokens_2_5M) |
35.0M | fan fiction, text column plus extra cleaning (HTML/URL/whitespace) |
| Stack v3: Python | 457.5M | parquet shards only (no loading script); vendored, minified and duplicate files dropped |
| Stack v3: Shell | 152.5M | same filters |
| Nemotron-Pretraining-SFT-v1 | 25.0M | General + Code + Math folders, interleaved |
Total: 1.90B tokens (stage core).
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 | 8,920 |
| Peak LR | 0.0003, warmup -> plateau -> cosine cooldown to 3e-05 (PressureCookerV7 schedule) |
| Weight decay | 0.1 on matrices (not on embeddings, norms, gates); grad-norm clip 0.65 |
| Loss | next-token cross-entropy over every token |
| Seed | 1337 |
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-core")
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")
ids = torch.tensor([tok.encode("def fibonacci(n):").ids])
out = model.generate(ids, max_new_tokens=80, temperature=0.7)
print(tok.decode(out[0].tolist(), skip_special_tokens=False))
This is a base model: it continues text and code, it does not follow instructions.
Unedited samples
Generated at temperature 0.7 right after training (not cherry-picked)
Prompt
The water cycle begins when
Output
the first flow of water is passed through the sea water to the current and in the water we receive the water. The water is often used as a refrigerator to the water.
However, the water cycle begins with a balcony that is present on the water, causing irrigation and detox
Prompt
def fibonacci(n):
Output
#-------------------------------------------------------------------------------------
#n_delta = n
#-------------------------
#---------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------
#
#---------------------------------------------------------------------------------------------------------------------
###
#-------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------
Prompt
#!/bin/bash
# backup the home directory
Output
# ################################
Prompt
Once upon a time, in a quiet village by the sea,
Output
help the village to settle their waters.
In the beginning of the fall of the Roman Empire, Rir PiP was so granted to an old man, and he was rebelled by the Armooth in his family, who was the Mahabee, who founded the land of the
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. 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 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
- -