Downloads · 30 days
244
10% of all-time downloads
MagistrTheOne/NULLXES-SHINRA-4B-INSTRUCT
NULLXES-SHINRA-4B-INSTRUCT is a text generation model from MagistrTheOne. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
NULLXES SHINRA-4B-INSTRUCT is the Language Intelligence Layer of the NULLXES system.
Downloads · 30 days
244
10% of all-time downloads
All-time downloads
2.4K
Public
Parameters
3.9B
31.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.7 GB · 100%
From the Hugging Face model README
NULLXES SHINRA-4B-INSTRUCT is the Language Intelligence Layer of the NULLXES system.
| Layer | Role |
| SHINRA | Language Intelligence |
SHINRA is responsible for multilingual understanding, coding intelligence, instruction following, structured outputs, and agent preparation. This checkpoint is the instruction-tuned (and optionally DPO-aligned) 4B-class dense decoder.
Proprietary ShinraForCausalLM (not a Llama / Mistral / Qwen / GPT-NeoX wrapper).
| Type | Decoder-only Transformer |
| Parameters | 3.93B (tied embeddings) |
| Hidden size | 3072 |
| Layers | 32 |
| Attention | GQA 24 query / 8 KV heads, head dim 128 |
| MLP | SwiGLU, intermediate 9216 |
| Norm | RMSNorm, pre-norm + QK-norm |
| Position | RoPE, θ = 1e6, YaRN-ready |
| Context | 8192 train / 32768 native window |
| Vocab | 131072 SentencePiece Unigram + byte fallback |
| Precision | BF16 |
| Attention kernels | PyTorch SDPA Flash / FlashAttention-2 |
Block:
RMSNorm → GQA+RoPE → residual → RMSNorm → SwiGLU → residual then final RMSNorm and tied LM head.
Load:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"NULLXES/SHINRA-4B-INSTRUCT",
torch_dtype="bfloat16",
trust_remote_code=True,
device_map="auto",
)
tok = AutoTokenizer.from_pretrained("NULLXES/SHINRA-4B-INSTRUCT", trust_remote_code=True)
messages = [
{"role": "system", "content": "You are SHINRA, the NULLXES language intelligence layer."},
{"role": "user", "content": "Explain grouped-query attention."},
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=256)
Special tokens: <|bos|> <|eot|> <|system|> <|user|> <|assistant|> <|reasoning|> <|code|> <|language|> <|tool_call|> <|tool_response|> <|document|> <|end_of_text|>. Generation stop is <|eot|>. Document stop is <|end_of_text|>.
Three stages.
Pretrain → NULLXES SHINRA-4B-BASE
SHINRA_PRETRAIN_V1: 40% FineWeb-Edu, 20% code (python-edu + licensed Stack), 15% math/science (OpenWebMath, ProofPile-2, peS2o, full arXiv bodies), 10% books (PG19 + Gutenberg; no TinyStories), 10% Wikipedia ru/de/fr, 5% NULLXES engineering (robotics/CUDA/docs slice). Language quotas en 75 / ru 15 / other 10. Documents pass ftfy, Gopher/FineWeb quality, script/language ID, toxicity heuristics, code AST/minified filters, and MinHash-LSH (Jaccard 0.80).
SFT → NULLXES SHINRA-4B-INSTRUCT
30% conversation (Tulu + SmolTalk), 25% code, 20% math, 15% tools/JSON (Hermes function-calling), 10% general (OpenHermes). Packed to 8192 with loss on assistant tokens only.
DPO
40% UltraFeedback, 30% Python code preference, 20% instruction/tool mix, 10% format (Orca), β = 0.10.
Exact mix weights live in configs/data_mix.yaml. Tokenizer trained on a ≥10B-character representative sample of the same mix.
Out of scope without additional alignment and policy layers: autonomous high-stakes decisions, medical/legal advice, open internet agents with unconstrained tools.
trust_remote_code=True on Hugging Face loaders.Run:
python -m evaluation.perplexity --model $CKPT --data-dir data/packed/pretrain
python -m evaluation.harness --model $CKPT
python -m evaluation.needle --model $CKPT
Suite: ARC-Challenge, HellaSwag, WinoGrande, TruthfulQA, MMLU, GSM8K, HumanEval, MBPP, needle-in-haystack at 2k–32k.
Trained for NVIDIA A100 80GB, 8-GPU FSDP FULL_SHARD, BF16, gradient checkpointing, fused AdamW, PyTorch 2.x SDPA.
Source code: NULLXES Research License (see LICENSE).
Weights: proprietary NULLXES asset. Redistribution of checkpoints requires a written grant.
@misc{nullxes-shinra-4b-instruct,
title = {NULLXES SHINRA-4B-INSTRUCT},
author = {NULLXES Research},
year = {2026},
note = {Language Intelligence Layer of the NULLXES system}
}