hypernix
End-to-end toolkit for training ai models on modern or old devices, originaly for converting hypernix.1 into gguf, now for all around training
What's fixed in this update
See Changelog.md for most updates
Table of contents
- What's fixed in this update
- Package layout
- Module reference
- What's new in v0.70.5
- What's new in v0.70.4
- Install
- Quickstart
- Python API tour
- CLI reference
- Supported model families
- Examples
- Wiki / deep dives
- How the GGUF pipeline works
- Platform notes
- CI autofix
- Build / release
- Usage & Documentation
- License
Cross-platform: Linux, macOS, Windows. Python 3.10 - 3.14.
Package layout
Modules are grouped by what they do rather than sitting in one flat directory:
| Directory | Modules | Contents |
|---|---|---|
hypernix/chat/ |
5 | Chat templating, prompt presets and multi-turn session state. |
hypernix/data/ |
15 | Datasets: collection, cleaning, splitting, packing and augmentation. |
hypernix/evaluation/ |
6 | Scoring, rubric labelling, judging and module verification. |
hypernix/interfaces/ |
11 | Human-facing front ends: CLIs, TUIs, GUIs and launchers. |
hypernix/models/ |
11 | Architectures, snapshot loading, generation and model utilities. |
hypernix/monitoring/ |
9 | Live dashboards, logging, telemetry and hardware sampling. |
hypernix/optimizers/ |
8 | The Pressure Cooker optimizer family and optimizer plumbing. |
hypernix/quant/ |
4 | The GGUF pipeline: convert, quantize, fetch tooling and upload. |
hypernix/security/ |
3 | API keys, quotas and request gating. |
hypernix/system/ |
14 | Environment, dependencies, hardware and housekeeping. |
hypernix/timing/ |
5 | Timers, alarms, cadence control and progress animation. |
hypernix/training/ |
14 | Training entry points, schedules and weight perturbation. |
hypernix/t1api/ |
— | The T1 API server: registry, routing, quota, billing, audit, rate limiting, mTLS, deployment. |
hypernix/t1sdk/ |
— | The T1 API client SDK — typed, stdlib-only, no server extra needed. |
hypernix/waiter/ |
— | waiter, the official T1 API TUI/CLI. |
Every module keeps its old import path. hypernix.timer and
hypernix.timing.timer return the same module object, so nothing that
imported a module before the move needs to change:
from hypernix.timer import KitchenTimer # always worked, still works
from hypernix.timing.timer import KitchenTimer # where the file actually is
import hypernix; hypernix.timer is hypernix.timing.timer # True
hypernix.MODULE_CATEGORIES (and its reverse, hypernix.CATEGORY_OF) is the
one place the layout is written down — the lazy loader, the alias finder, the
hnx wiki browser and the scripts/autofix-* tooling all read it, so moving a
module between categories is a one-line change.
Module reference
Click a category below to expand it.
Models & Training (12 modules)
| Subsystem | What it does |
|---|---|
hypernix.download |
Pull snapshots from the Hub (short-name resolution, gated repos, offline cache). |
hypernix.train |
HyperNixConfig, HyperNixModel, init_from_scratch, expand_checkpoint, train. Non-HyperNix archs route through AutoModelForCausalLM. |
hypernix.brewer |
hyperNix0x-v2 architecture preset family — Brewer(config).build() for a from-scratch BrewerModel. GPU-oriented presets 33m / micro / small / medium / large (33.6M-3.5B params), plus cpu-nano / cpu-tiny / cpu-small (2.1M/9.2M/26.5M params) sized for CPU-only training and inference. custom_arch(**kwargs) for a fully bespoke config. Also available as hypernix brew new --preset <name>. |
hypernix.instant_pot |
brew(recipe) — one-shot end-to-end pipeline. Also available as hypernix brew recipe.json. |
hypernix.coffee_maker |
3 tiers (drip / french-press / percolator) + cold_brew type for long checkpointed runs. |
hypernix.deep_fryer |
2-tier model-weight perturbation: LightFry (regulariser) / HeavyFry (severe, for bad-model negatives). In-place, reversible via snapshot. |
hypernix.abbicus |
Automatic token regulation and curriculum tuning. Abbicus (linear) dynamically modifies max sequence length based on model size (0.5B-72B), global step, and dataset type. TurboAbbicus (exponential) adds sine-wave oscillation and a hard VRAM safeguard. |
hypernix.compute_framework |
Hardware-agnostic multi-device training. Abstracts CUDA, MPS, CPU, TPU backends with automatic DDP/ZeRO wrapping. ComputeFramework handles PyTorch DDP initialization, device placement, and gradient sync without manual torch.distributed boilerplate. |
hypernix.workshop |
Model frameworks and TTS/ASR pipelines. WorkshopFramework base class with FrameworkConfig for TTS, ASR, LLM, Vision models. Pre-built templates for the ray0rf1re/nano-nano collection plus 30+ third-party architectures. |
hypernix.whisk |
Checkpoint averaging — swa_average (uniform mean), ema (exponential), geometric_mean. Accepts state dicts or paths to .pt / .safetensors. whisk_to_snapshot writes the merged weights back out as a loadable HyperNix snapshot. |
hypernix.recipe_book |
Named-config registry. RecipeBook with add / get / save / load / cook(name, **overrides). cook dispatches by kind (instant_pot / cold_brew / espresso) so a saved recipe runs the matching pipeline directly. |
hypernix.mtp |
(v0.70.5) Multi-Token Prediction — predict multiple future tokens for 1.5-3x training efficiency + speculative decoding. MTPConfig, MTPHead, MTPTrainer. |
Optimizers (3 modules)
| Subsystem | What it does |
|---|---|
hypernix.pressure_cooker |
Custom AdamW optimizer in 5 tiers: base PressureCooker + CPU (StovetopCooker, ElectricCooker) + GPU (InductionCooker, ProCooker) + universal_cooker selector that picks a tier automatically from the detected device. |
hypernix.pressure_cooker_v3 |
ZeRO-optimized V3 optimizer with FP8 support. QuantDtype enum (FP8/FP16/FP32/FP64/Q8/Q6/Q5_5/Q4M) and QuantConfig dataclass. PressureCookerV3 / PressureCookerV3Plus classes with ZeRO-1/2 sharding, plus StovetopV3Cooker / StovetopV3CookerPlus CPU-tuned variants. |
hypernix.pressure_cooker_v5 |
(v0.70.5 / v0.70.6) ORCP optimizer family with int8-quantized momentum, factored curvature, QAT (Q4/Q5/Q6/Q8), Multi-Token Prediction, and EMA shadowing. PressureCookerV5 + PressureCookerV5Plus, plus the ground-up 3D-ORCP PressureCookerV5S. Pascal-safe variants: Agedcookerv5, ULTRAagedcookerv5, Agedcookerv5s. See the efficiency paper. |
Memory / VRAM (4 modules)
| Subsystem | What it does |
|---|---|
hypernix.old_fridge |
Memory housekeeping: freeze, unfreeze, parameter_stats, offload_to_cpu, chill_cache. |
hypernix.freezer |
VRAM manager: OldFreezer (8-10 GB, conservative batches, bf16/fp16), NewFreezer (11 GB+, fp32-preferred), FlashFreezer (OOM-safe retry wrapper around either). Pascal (sm_61 / CUDA 6.1) helpers + 60 CPU presets (Intel i5/i7/i9 7th-14th gen, Core Ultra Series 1/2, AMD Ryzen 5000/7000/9000 series) via auto_freezer(). |
hypernix.cake_pan |
Hybrid CPU + GPU training guard with NaN/Inf detection, wall-time watchdog, memory-pressure offload, and pristine-state rollback via BakeOff. |
hypernix.stml |
(v0.70.4) Short Term Memory Loss — two tools. calculate_vram_context(vram_gb, params, batch_size, precision) estimates the max safe trained context given your hardware. The STML context manager folds long sequences into batch segments to keep the untrained context length bounded during training. |
Data Pipeline (9 modules)
| Subsystem | What it does |
|---|---|
hypernix.pans |
5-tier data preprocessing: FryingPan → SaucePan → Skillet → GrillPan → Wok. Pair with sink.Sink.pour to write the output to disk. |
hypernix.blender |
4-tier multi-source mixing: HandBlender / PersonalBlender / CountertopBlender / HighPowerBlender. |
hypernix.toaster |
4-tier per-line formatting: TwoSliceToaster / FourSliceToaster / ConveyorToaster / ToasterOven. |
hypernix.food_processor |
4-tier bulk chunking: ChopBlade / SliceBlade / ShredBlade / PureeBlade. |
hypernix.salt_shaker |
3-tier gentle data augmentation: FromTheBag / HandCrusher / PoshSaltDish. |
hypernix.pepper_shaker |
3-tier sharp perturbations: SmallShaker (MLM-style mask) / Dish (typos) / TallHandmade (negation). |
hypernix.qa |
(v0.70.4) QAProcessor — turns structured datasets (JSONL, list[dict], plain text) into causal LM training strings. Two modes: question_answer (Question: {q}\nAnswer: {a}) and plain completion, with optional integrated salt_shaker / pepper_shaker seasoning. |
hypernix.cutting_board |
Train / val / test splitting. CuttingBoard (deterministic random) + StratifiedBoard (preserves class distribution on labelled records). Renormalises ratios that don't sum to 1; writes per-split files or returns in-memory lists. |
hypernix.lunchbox |
Consistent-schema dataset packager. Lunchbox.for_eval() pre-loads the recommended eval-results columns; pack(path) / push_to_hub(repo_id) routes through datasets.Dataset so column-schema mismatches fail fast instead of at upload time. |
Inference & Chat (7 modules)
| Subsystem | What it does |
|---|---|
hypernix.old_oven |
CodeOven — ready-to-use wrapper around a snapshot: .complete(), .chat(), .fill(), .save_pt(). new_oven() spins a fresh one from the ARCH_PRESETS seed list instead of downloading a snapshot. |
hypernix.microwave |
5-tier throwaway inference: defrost → low_zap → zap → high_zap → chat_zap, plus reheat for continuing a prior output. |
hypernix.cookbook |
Chat-template registry. Built-in templates for chatml / hyper-nix.2 / llama3 / llama2 / alpaca / vicuna / plain. for_model(repo_id) picks the right one automatically from the repo's config; wired into old_oven and countertop by default. |
hypernix.countertop |
Multi-turn chat session. Countertop(oven, system=…) with say(user) / reset() / save(path) / load(path). Auto-trims long histories; optional bell= for token-by-token streaming, flour= for output cleanup, t1_key= for HNX1/T1-backed remote models. |
hypernix.menu |
Named system-prompt registry: default / concise / code-helper / judge / creative / chef / hyper-nix. Pair with countertop(oven, persona="…") to pick a system prompt by name instead of writing one out each time. |
hypernix.bell |
Streaming-token + done-notification primitive. Bell.iter_chat(oven, messages) yields tokens; stream_chat collects and fires callbacks. stdout_bell() / file_bell(path) ship as ready-made done-callbacks; silent_bell() disables notifications. |
hypernix.flour |
Chat-quality logits processor — repetition penalty, frequency / presence penalty, no-repeat n-gram, bad-word suppression, role-leak suppression (cuts hallucinated user:-style follow-on turns a base-model-flavoured checkpoint sometimes emits). |
Monitoring & CLI (5 modules)
| Subsystem | What it does |
|---|---|
hypernix.smoke_alarm |
Training-step planner & monitor. RadsAlarm (constants, lightest), GasAlarm (CPU/GPU presets), ModernAlarm (warmup-measured), AutoAlarm (selector). Plus storage_warning() for disk-space checks before a long run. |
hypernix.table |
Dead-simple tabular viewer: from_training_log, from_judge_corpus, filter, select, show. |
hypernix.tvtop |
Backwards-compatibility shim — all functionality moved to hypernix.tv. Re-exports everything so import hypernix.tvtop continues to work. Console script tvtop now launches the tvtop_plus_plus dashboard by default; use tvtop-old for the classic view. |
hypernix.wiki_cli |
(v0.70.5) hnx / hypenix command — auto-generating wiki from source docstrings. hnx, hnx -q, hnx -b. |
hypernix.vera |
(v0.70.5) Module verification — syntax, docstrings, types, smoke tests. hnx vera <file> / hnx vera --all. |
Datasets & Judging (6 modules)
| Subsystem | What it does |
|---|---|
hypernix.mediocre_fridge |
Judge-training dataset generation — synthesize_judge_corpus, collect_responses_from. |
hypernix.new_fridge |
Training-curve graphing — parse_training_log, plot_loss_curve, plot_score_distribution. Matplotlib installed lazily. |
hypernix.new_range / old_range / industrial_range |
Labeling rubrics for mediocre_fridge.collect_responses_from: new_range is a zero-dep first-fail rubric, old_range is a scored rubric with per-rule weights and explainable [0, 1] scores, and industrial_range uses any CodeOven-compatible model as an LLM judge (including pairwise comparison for preference pairs). |
hypernix.espresso_maker |
4-tier evaluation: Ristretto / SingleShot / DoubleShot / Lungo — run a prompt battery, score, return shots. |
hypernix.smoker |
4-tier training quality: UseableSmoker / GoodSmoker / CommercialSmoker / HighQualitySmoker. |
hypernix.scavenger |
(v0.70.5) HuggingFace dataset discovery engine. Keyword search, storage budgets, quality filtering, relevance scoring. ScavengerCriteria + Scavenger.hunt(). |
Quantize & Export (3 modules)
| Subsystem | What it does |
|---|---|
hypernix.convert |
Safetensors → GGUF at fp32/fp16. Architecture-agnostic tensor naming. |
hypernix.quantize |
llama-quantize driver. v0.51.3 ships a 30-type QUANT_CATALOG (QuantSpec dataclass per type with bits-per-weight, category, recommendation) covering floats (F32 / F16 / BF16), legacy k-quants (Q4_0…Q5_1), K-quants (Q2_K…Q6_K), and importance-matrix quants (IQ1_S…IQ4_XS); see the alias table below. |
hypernix.upload |
Push the produced artifacts back to a HuggingFace repo. |
Utilities (3 modules)
| Subsystem | What it does |
|---|---|
hypernix.sink |
Append-only file sink with optional rotation + dedupe. |
hypernix.apron |
RNG-state guard. apron(seed=…) context manager snapshots Python random, NumPy (if installed), torch CPU and every CUDA device's RNG, optionally seeds all of them, and restores the original state on exit. |
hypernix.torch_compat |
Portability shim (RMSNorm + SDPA) for running on old Intel Macs with torch 1.13. See wiki/macOS-legacy.md. |
What's new in v0.70.5
Eleven major additions:
hnx/hypenixWiki CLI — Auto-generating documentation browser.hnxshows all modules;hnx <module>shows docs;hnx -q <module>streams quick mode;hnx -bopens in browser. Docs regenerate from source docstrings, so they can't drift out of sync with the code.hnx vera— Module verification: syntax check, docstring coverage, type annotations, smoke test.hnx vera <file>orhnx vera --all.pressure_cooker_v5— ORCP optimizer family with int8-quantized momentum (~75% smaller than fp32, ~87% smaller total optimizer state than AdamW -- see the efficiency paper), QAT (Q4/Q5/Q6/Q8), Multi-Token Prediction, EMA shadowing, and the ground-up 3D-ORCPPressureCookerV5Svariant (v0.70.6).mtp— Multi-Token Prediction for 1.5-3x training efficiency. Sequential/independent modes, shared/independent heads, native workshop integration.scavenger— HuggingFace dataset discovery with keyword search, storage budgets, quality filtering (likes/downloads/age), and relevance scoring.- Freezer QAT support —
suggest_qat_batch_size(),prepare_for_qat(), per-bit-width VRAM multiplier profiles. - Workshop native MTP —
attach_mtp_head()andcompute_mtp_loss()built into WorkshopFramework. - tvtop++ fixes — Eliminated border flicker (layout built once), added
_block_history_barre-export, implementedsmall_mode, fixed self-process filtering. - New wiki pages — Pressure-Cooker-V5, MTP, Scavenger
- Kitchen.md updated — Added scavenger, MTP, and QAT sections
- Training benefits chart — See below
Training Benefits vs Complexity
Key insight: MTP + Speculative Decoding offer the highest benefit-to-cost ratio. Int8-quantized momentum cuts the momentum buffer's own memory by 75% versus fp32, and PressureCookerV5/V5S's factored curvature keeps the rest of the optimizer state small too -- measured optimizer-state memory lands around 12-13% of AdamW's (see the efficiency paper for the exact numbers and methodology). The trade-offs -- including step-time overhead on some hardware -- are real and are covered in the paper rather than summarized as a single percentage here.
What's new in v0.70.4
Seven additions in the 0.70.4 series:
qa—QAProcessorformats Q&A datasets into causal LM training strings with optional salt/pepper seasoningstml— Short Term Memory Loss:STMLcontext manager (segment folding, untrained hard cap) +calculate_vram_contextVRAM calculator with CLITurboAbbicus— exponential curriculum regulator with configurable hard cap, sine-wave oscillation (CPU-adjusted, never GPU), and VRAM safeguardtvtop++fixes — layout tree bug (border shifting on refresh), colors matching original tvtop (CPU=green, RAM=magenta, GPU=red), dynamic console resizing, dynamic graph/log widthshypernix stmlCLI subcommand — VRAM context calculator from the shellhypernix train runnew flags —--use-abbicus,--use-turbo-abbicus,--use-stml,--untrained-max-context,--segment-lengthCodeOven.train()new kwargs —use_turbo_abbicus,use_stml,untrained_max_context,segment_length
Earlier: v0.70.0
Five new modules + major optimizer rewrites:
abbicus— Automatic token regulation and curriculum tuning for model sizes 0.5B–72Bcompute_framework— Hardware-agnostic multi-device training with auto DDP/ZeRO wrapping (CUDA/MPS/CPU/TPU)pressure_cookerV2 — Quantization-aware training with fp16/bf16/fp64 mixed-precision, QAT hooks for Q8/Q6/Q5.5/Q4M, plus 10 upgrades (mixed-precision autodetect, QAT hooks, gradient-checkpointing integration, adaptive per-layer gradient clipping, EMA weight shadowing, DDP/FSDP-aware distributed training, dynamic loss scaling with overflow backoff, parameter freeze/unfreeze callbacks, an LR finder, and metrics streaming to tvtop)pressure_cooker_v3— ZeRO-1/2 optimizations, FP8 support,QuantDtypeenum +QuantConfigdataclassworkshop— Model frameworks for TTS/ASR/LLM/Vision with pre-built templates, nano-nano collection support, 30+ architectures (LiquidAI LFM2.5, MiniCPM5, Gemma 4, Qwen3.5, Phi-4, DeepSeek-V2.x, and others)tvtop— Now launches the premiumtvtop_plus_plusdashboard by default; usetvtop-oldfor the classic view
Install
From PyPI:
pip install "hypernix[llama-cpp]" # + bundled llama-cpp-python
pip install "hypernix[train]" # + transformers, accelerate
pip install hypernix # core only
Need a specific torch build? Install torch first; pip will reuse it rather than replace it:
# CUDA 11.8 — old drivers, Pascal GPUs (GTX 1080 et al.)
pip install --index-url https://download.pytorch.org/whl/cu118 torch
pip install hypernix
# CUDA 12.x — modern default
pip install --index-url https://download.pytorch.org/whl/cu124 torch
pip install hypernix
# CPU-only
pip install --index-url https://download.pytorch.org/whl/cpu torch
pip install hypernix
# Old Intel Mac / torch 1.13 — the compat shim takes over.
pip install --index-url https://download.pytorch.org/whl/cpu 'torch==1.13.1'
pip install 'hypernix[legacy-torch]'
hypernix: command not found
The console scripts land in your interpreter's scripts directory, which on
a lot of systems isn't on PATH — pip install --user puts them in
~/.local/bin, and Debian/Ubuntu only add that at login if it already
existed. HyperNix fixes this itself the first time you run it, printing
what it changed. To do it explicitly:
python -m hypernix path # what would change (writes nothing)
python -m hypernix path --apply # write the block into your shell profile
python -m hypernix path --undo # take it back out
It writes one marked, reversible block into the startup file your shell
actually reads, and refuses to do anything inside a virtualenv or conda
env — that directory belongs to the environment and is only meant to be on
PATH while it's activated. Set HYPERNIX_NO_PATH_SETUP=1 to turn the
automatic version off entirely.
The main install_requires is torch>=1.13,<3 — 2.7+ is the
recommended version (native nn.RMSNorm, fused SDPA), but 1.13+
works via hypernix.torch_compat. See
wiki/macOS-legacy.md for the full story.
Sanity-check the environment:
hypernix doctor # report
hypernix doctor --fix # install missing runtime deps
Automatic dependency management can be disabled with
HYPERNIX_AUTO_INSTALL=0.
Quickstart
Chat with any supported model
hypernix chat --repo-id nix2.5 --message "hello"
hypernix chat --repo-id qwen3.5-4b --message "explain rotary embeddings"
hypernix chat --repo-id gemma-4-e4b --message "write a haiku"
Short names resolve via KNOWN_MODELS; see
Supported model families.
Convert a snapshot to GGUF
# Default: fp32 + fp16
hypernix --repo-id ray0rf1re/hyper-nix.1 --output-dir ./out
# Opt in to k-quants (needs llama-quantize)
hypernix --repo-id ray0rf1re/hyper-nix.1 --output-dir ./out \
--quants fp32 fp16 q8_0 q6_k q4_k_m
Train HyperNix 1.5 (~92.1 M params) on a GTX 1080
python examples/train_hypernix_1_5_gtx1080.py \
--dataset corpus.txt \
--tokenizer-source ./hyper-nix-v1 \
--out-dir ./hypernix-1.5 \
--steps 2000 --batch-size 1 --context-length 1024
Auto-detects compute capability 6.x, forces fp16 (Pascal has no native
bf16), disables TF32 / SDPA / torch.compile, and wraps the training
loop in a FlashFreezer so OOMs pause-and-halve rather than crash. See
wiki/Pascal.md for the full Pascal playbook.
Build a HyperNix 0.1.5 evaluator
python examples/train_hypernix_0_1_5_evaluator.py --out-dir ./eval
Synthesizes a judge-training corpus with mediocre_fridge, freezes
embeddings with old_fridge, trains via oven.train, reloads with the
other oven, plots the loss curve with new_fridge. Self-contained
smoke test for every subsystem.
Python API tour
import hypernix
from hypernix import freezer, old_oven, old_fridge, mediocre_fridge, new_fridge
# 1) Auto-pick a VRAM strategy. On a GTX 1080 this returns OldFreezer(fp16);
# on a 3090 it returns NewFreezer(fp32 / bf16 on Ampere).
fz = freezer.flash_freezer(base=freezer.auto_freezer(), slow=True)
# 2) Preheat an oven from a short name (downloads on first call).
oven = old_oven.preheat(repo_id="nix2.5", device="cuda", dtype="float16")
# 3) Memory hygiene.
old_fridge.freeze(oven.model, patterns=("embed_tokens",))
print(old_fridge.parameter_stats(oven.model))
# 4) Training data.
dataset = mediocre_fridge.synthesize_judge_corpus(n=1024, out_path="judge.txt")
# 5) Train inside a FlashFreezer so OOMs don't blow up the run.
fz.guard(lambda: oven.train(dataset, "./trained", steps=500, batch_size=1))
# 6) Graph.
import pathlib
log = pathlib.Path("./trained/train.log").read_text()
new_fridge.plot_loss_curve(new_fridge.parse_training_log(log), "loss.png")
CLI reference
hypernix <subcommand> [options]
all download -> convert -> [quantize] (default)
download fetch a HuggingFace snapshot
convert produce fp32 / fp16 GGUF from a snapshot
quantize run llama-quantize on an fp16 / fp32 GGUF
verify read-validate a GGUF and print headers
info package + optional GGUF header summary
upload push files to a HuggingFace repo
doctor environment diagnostic (pass --fix to install deps)
path put the console scripts on your PATH (--apply / --undo)
fetch-llama-quantize pre-seed the llama-quantize cache
train init create a fresh HyperNix snapshot
train expand warm-start a bigger model from a smaller one
train run minimal causal-LM training loop
generate sample text from a local snapshot
oven code-generation wrapper (preheat + complete / fill)
chat interactive chat REPL against any supported model
hyped+ / hyped-pro Node.js TUI agent CLI w/ real cloud+local model dispatch, /gui desktop mode
(/t1api routes through a local or remote HyperNix T1 API server)
stml VRAM trained context length calculator
train run accepts curriculum / context management flags:
hypernix train run --model-dir ./snap --dataset data.txt --out-dir ./out \
--use-turbo-abbicus \ # exponential curriculum (--use-abbicus for linear)
--use-stml \ # fold long sequences into batch segments
--untrained-max-context 16384 \
--segment-length 512
Quant aliases accepted by --quants and hypernix quantize (v0.51.3
ships 49 aliases mapping to 30 distinct quant types — the table below
shows the headline subset; hypernix.quant_list_types() returns the
full list at runtime, and hypernix.QUANT_CATALOG[name] gives you the
full QuantSpec for any one):
| Alias | llama.cpp enum | bpw | Recommended? |
|---|---|---|---|
fp32, f32 |
F32 | 32.0 | reference |
fp16, f16 |
F16 | 16.0 | ✓ baseline |
bf16 |
BF16 | 16.0 | |
q4_0, q4_1, q5_0, q5_1 |
Q4_0 / Q4_1 / Q5_0 / Q5_1 | 4.5 – 6.0 | legacy |
q8, q8_0 |
Q8_0 | 8.5 | ✓ near-lossless |
q2_k, q2_k_s, q3_k_s, q3_k_m, q3_k_l |
Q2_K … Q3_K_L | 2.5 – 4.0 | |
q4_k_s, q4km, q4_k_m |
Q4_K_S, Q4_K_M | 4.5, 4.83 | ✓ chat sweet spot |
q5_k_s, q5km, q5_k_m |
Q5_K_S, Q5_K_M | 5.5, 5.83 | ✓ |
q6, q6_k |
Q6_K | 6.56 | ✓ near-fp16 |
iq1_s, iq1_m, iq2_*, iq3_*, iq4_nl, iq4_xs |
IQ1_S … IQ4_XS | 1.56 – 4.5 | imatrix-friendly |
Supported model families
Short names (CLI & Python)
Pass any of these to hypernix chat --repo-id, old_oven.preheat,
download_model, etc.
| Family | Short names |
|---|---|
| HyperNix | hyper-nix.1, hyper-nix, hypernix, nano-nano-v4, nano-mini-6.99-v2, nano-nano-927-v3 |
| Nix (ray0rf1re/nix collection) | nix, nix2.5, nix2.6-m, nix2.6-mm, nix-2.7a, nix2.7, nix2.6 |
| Llama 3.x | llama-3.1-8b, llama-3.1-8b-instruct, llama-3.2-1b, llama-3.2-3b, llama-3.3-70b-instruct |
| Qwen 2.5 / 3 / 3.5 / 3.6 | qwen2.5-*, qwen3-0.6b, qwen3-8b, qwen3.5-{0.8b,2b,4b,9b,27b,35b-a3b,122b-a10b,397b-a17b}, qwen3.6-35b-a3b |
| Gemma 2 / 3 / 4 | gemma-2-{2b,9b,27b}, gemma-3-{1b,4b}, gemma-4-{e2b,e4b,26b-a4b,31b} |
| Phi 3 / 3.5 / 4 | phi-3-mini, phi-3.5-mini, phi-4 |
| DeepSeek | deepseek-r1-distill-llama-8b, deepseek-r1-distill-qwen-7b, deepseek-v2-lite, deepseek-v3 |
| GLM 4 / 5 / 5.1 | glm-4-9b-chat, glm-4.1v, glm-5, glm-5.1, glm-5.1-fp8 |
| Mistral / Mixtral | mistral-7b-instruct, mixtral-8x7b-instruct |
| NVIDIA | nemotron-4-15b, llama-3.1-nemotron-70b-instruct, mistral-nemo-12b |
| OpenAI gpt-oss | gpt-oss-20b, gpt-oss-120b |
The full registry lives in hypernix.KNOWN_MODELS.
ARCH_PRESETS (seeds for new_oven)
new_oven(arch="...", ...) spins a fresh, parametric model in the
shape of any of these families:
hypernix,llama,llama3,llama3.1,llama3.2,llama3.3,llama4qwen2,qwen2.5,qwen3,qwen3.5,qwen3.6gemma,gemma2,gemma3,gemma4mistral,phi3,phi4glm4,glm5,glm5.1deepseek,deepseek-r1,nemotron,gpt-oss/gptossnix,nix2
Presets are seeds for brand-new parametric models. Loading a
pretrained checkpoint for any of these families works without a matching
preset because non-HyperNix model_type values route through
transformers.AutoModelForCausalLM.
Examples
examples/quickstart.py— 5-line Python API demo.examples/custom_arch.py— arbitrary-size HyperNix.examples/upload_to_hub.py— publish to the Hub.examples/train_hypernix_0_1_5_evaluator.py— tiny evaluator demo wiring ovens + all three fridges.examples/train_hypernix_1_5_gtx1080.py— production-shape 92.1 M model trained on an 8 GB Pascal card.
Wiki / deep dives
Topic-focused reference guides live in the wiki/ directory:
wiki/Home.md— indexwiki/Ovens.md—old_oven/new_ovenreferencewiki/Fridges.md—old_fridge/mediocre_fridge/new_fridgewiki/Ranges.md—new_range/old_range/industrial_range(labeling rubrics)wiki/Freezer.md— VRAM manager (OldFreezer / NewFreezer / FlashFreezer)wiki/Alarms.md— smoke alarms (Rads / Gas / Modern / Auto) + CPU / GPU preset tableswiki/Kitchen.md— pans / microwave / table / sink / instant pot / coffee maker / pressure cooker / qawiki/Abbicus.md— Abbicus (linear) and TurboAbbicus (exponential + sine oscillation)wiki/STML.md— Short Term Memory Loss context manager and VRAM calculatorwiki/Pascal.md— CUDA 6.1 / GTX 1080 playbookwiki/Architectures.md— ARCH_PRESETS and KNOWN_MODELSwiki/Training.md— scratch training, expansion, and fine-tuning flowswiki/CLI.md— full CLI cheat sheetwiki/Quantization.md— GGUF conversion + k-quant pipelinewiki/Changelog.md— full per-release version historywiki/Pressure-Cooker-V5.md— Pressure Cooker V5 / V5+ / V5S with QAT and MTPwiki/MTP.md— Multi-Token Prediction guidewiki/Scavenger.md— HuggingFace dataset discovery
How the GGUF pipeline works
huggingface_hub.snapshot_downloadpulls weights + tokenizer files.- The converter loads the state dict, infers dimensions from tensor shapes (so any HyperNix size works), and maps tensor names onto llama.cpp's canonical GGUF layout when a recognizable pattern matches (Llama, GPT-NeoX, GPT-2, nanoGPT). Unknown names round-trip verbatim.
llama-quantizeconsumes the fp16 GGUF to produce each k-quant.
The CLI emits exactly one fp16 intermediate and reuses it for every k-quant in the plan.
Platform notes
- Linux: full support, every distro tested on: (Ubuntu, Debian, Arch.)
- macOS: Metal for inference, Homebrew for
llama-quantize. (untested) - Windows: native support; doctor accepts Windows;
llama-quantizeauto-downloads Windows binaries; use scoop / chocolatey for system deps. (untested) - Pascal (GTX 1080 / 1080 Ti / Titan Xp): install torch from the CUDA 11.8 index first (see above). Use
OldFreezerorauto_freezer();pascal_safe_dtype()picks fp16.hypernix.freezer.pascal_mode_hints()returns a dict of recommended settings (batch size, dtype, TF32/SDPA toggles) for the detected card.
CI autofix
Three scripts in scripts/, each owning one failure class, plus a router
that reads a CI log and runs the right one:
| Script | Owns |
|---|---|
autofix-B |
ruff diagnostics |
autofix-E |
imports, syntax, anything that stops collection |
autofix-F |
failing tests for a module category (timing by default) |
scripts/autofix # reproduce the failure, classify, fix
scripts/autofix --log ci-output.txt # classify an existing CI log
scripts/autofix-F --dry-run # timer-test repair, without writing
autofix-F engages only when some but not all of the timing tests fail —
the signature of a wall-clock assertion that lost a race, which is the one
thing it can fix. It widens the margins in those tests by scaling every time
constant in them uniformly, re-runs only what it changed, and commits with an
Autofix-Scope: trailer. CI reads that trailer and verifies just those tests
instead of re-running the 4-OS x 4-Python matrix. Failures it can't honestly
fix — a renamed symbol, a changed signature, a real regression — are reported
and left alone.
See scripts/README.md for the full picture.
Build / release
pip install build twine
python -m build
twine check --strict dist/*
Release tags (vX.Y.Z) fire .github/workflows/release.yml which
publishes to PyPI via Trusted Publishing and attaches the wheel +
sdist + an examples-scripts tarball + SHA256SUMS to a GitHub
Release.
Usage & Documentation
Comprehensive performance analysis and training guides available in the following PDFs:
| Document | Description |
|---|---|
| pressure_cooker_v5_v5s_paper.md | PressureCookerV5 / V5S architecture, math, and measured efficiency numbers (memory + step-time), reproducible from the scripts below. |
| 01_ram_and_training_time.pdf | RAM usage patterns and training time impact analysis. |
| 02_optimizer_speed_and_memory.pdf | Optimizer performance comparison and memory optimization strategies. |
| 03_gpu_utilization_and_vram.pdf | GPU utilization patterns and VRAM management best practices. |
| 04_architecture_and_pipeline.pdf | Detailed architecture documentation and training pipeline information. |
# Reproduce the optimizer benchmarks yourself:
python scripts/benchmark_v5.py # AdamW vs PressureCookerV5, step time + peak mem
python scripts/benchmark_v5s.py # AdamW vs V5 vs V5S, step time + peak mem
python scripts/measure_optimizer_memory.py # exact optimizer-state bytes per parameter tensor
License
HyperNix is dual-licensed — recipients choose one of the two options
below (see the full text in LICENSE):
- LLU-0.1 — the HyperNix OpenCode Light Limited Use License, Version 0.1. Source-available, with a same-license requirement for forks and a §12 field-of-use restriction (it does not meet the OSI Open Source Definition because of that restriction). This is the default if you don't make an active choice.
- HOS-1.0 — the HyperNix Open Source License, Version 1.0. An OSI-compliant open-source license with no field-of-use restrictions.
You must pick one license and follow its terms — you can't mix terms
from both. Large trained models (29.1B+ parameters) that are shared
publicly carry a transparency requirement (disclosing training-data
sources or a data composition summary) under either license; see
LICENSE §7–8 (LLU-0.1) / the equivalent HOS-1.0 sections for specifics.
hypernix is not Apache-2.0, MIT, or any other stock license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hypernix-0.71.5.tar.gz.
File metadata
- Download URL: hypernix-0.71.5.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7d97708f84befda9ead02de25a9c494f493e05717a802eeabed8ecb3fc1c6d
|
|
| MD5 |
dc9b357728a8a767cb8dfd7c7fa37e95
|
|
| BLAKE2b-256 |
f4d46e976ffc7c5a42d768cdb298c3c56e60d91ca85369937ee52a1162ae084b
|
Provenance
The following attestation bundles were made for hypernix-0.71.5.tar.gz:
Publisher:
public-release.yml on minerofthesoal/HyperNix-pip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hypernix-0.71.5.tar.gz -
Subject digest:
8e7d97708f84befda9ead02de25a9c494f493e05717a802eeabed8ecb3fc1c6d - Sigstore transparency entry: 2567653391
- Sigstore integration time:
-
Permalink:
minerofthesoal/HyperNix-pip@42abfff17bb50030925f9c35a0880e6512eea62c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/minerofthesoal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
public-release.yml@42abfff17bb50030925f9c35a0880e6512eea62c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hypernix-0.71.5-py3-none-any.whl.
File metadata
- Download URL: hypernix-0.71.5-py3-none-any.whl
- Upload date:
- Size: 785.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb0d223656aa6eb6fb19b23c17e474fc153e1417b128476bb0f8767df19dac6e
|
|
| MD5 |
08ba9f0fbf61e808aca210f8c6b4424a
|
|
| BLAKE2b-256 |
576a29199760c3df0b6e6a38f337c309ddbf5974db3eff74e149e1815a77dfb0
|
Provenance
The following attestation bundles were made for hypernix-0.71.5-py3-none-any.whl:
Publisher:
public-release.yml on minerofthesoal/HyperNix-pip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hypernix-0.71.5-py3-none-any.whl -
Subject digest:
bb0d223656aa6eb6fb19b23c17e474fc153e1417b128476bb0f8767df19dac6e - Sigstore transparency entry: 2567653428
- Sigstore integration time:
-
Permalink:
minerofthesoal/HyperNix-pip@42abfff17bb50030925f9c35a0880e6512eea62c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/minerofthesoal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
public-release.yml@42abfff17bb50030925f9c35a0880e6512eea62c -
Trigger Event:
workflow_dispatch
-
Statement type: