Run this model with HF Jobs
Run ray0rf1re/hyperNix.4-nano-hf on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/ray0rf1re/hyperNix.4-nano-hf. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/ray0rf1re/hyperNix.4-nano-hf on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/ray0rf1re/hyperNix.4-nano-hf. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ray0rf1re/hyperNix.4-nano-hf with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ray0rf1re/hyperNix.4-nano-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ray0rf1re/hyperNix.4-nano-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ray0rf1re/hyperNix.4-nano-hf") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ray0rf1re/hyperNix.4-nano-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ray0rf1re/hyperNix.4-nano-hf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ray0rf1re/hyperNix.4-nano-hf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ray0rf1re/hyperNix.4-nano-hf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ray0rf1re/hyperNix.4-nano-hf
- SGLang
How to use ray0rf1re/hyperNix.4-nano-hf with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ray0rf1re/hyperNix.4-nano-hf" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ray0rf1re/hyperNix.4-nano-hf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ray0rf1re/hyperNix.4-nano-hf" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ray0rf1re/hyperNix.4-nano-hf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ray0rf1re/hyperNix.4-nano-hf with Docker Model Runner:
docker model run hf.co/ray0rf1re/hyperNix.4-nano-hf
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.
- Downloads last month
- 178