Model reference · open weights

NULLXES-SHINRA

Available as managed deployment NEW · this week Licence fee LLMs MagistrTheOne · community Text gen 1 variants 546 dl/mo

NULLXES-SHINRA is an open-weight language model from MagistrTheOne. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byMagistrTheOne
TypeLanguage models
TaskText gen
Parameters (lead)3.9B
Context32k tokens
Runs withtransformers
Released2026-09-18
Popularity546 downloads / month
LicenceCommercial licence needed

About

What NULLXES-SHINRA is

Language Intelligence layer of the NULLXES Intelligence Stack.

SHINRA Our llm.


Model summary

FieldValue
NameNULLXES SHINRA-4B-INSTRUCT
DeveloperNULLXES LLC
Parameters3,926,076,416 total (3.9261B); 3,523,423,232 non-embedding
ArchitectureDecoder-only Transformer, GQA + RoPE, SwiGLU, RMSNorm pre-norm
Vocabulary131,072 (custom SentencePiece Unigram)
Configured training sequence length8,192 tokens
Configured maximum positions32,768 (RoPE θ = 1,000,000)
Published weight dtypeFP32 (F32 in Hub safetensors metadata)
Configured training precisionBF16
FrameworkPyTorch + transformers, FSDP
Configured training hardware8× A100 80GB
LicenseNULLXES Research License — weights are a proprietary asset

Release line

Read the full model card
  1. NULLXES SHINRA-4B-BASE — pretrain
  2. NULLXES SHINRA-4B-INSTRUCT — instruction tuning ← this model
  3. NULLXES SHINRA-4B-INSTRUCT (aligned) — DPO / preference optimization

Context configuration. GitHub configures an 8,192-token training sequence and 32,768 maximum positions. These are configuration limits, not measured context-quality results.


Architecture — SHINRA CORE

Embedding
  → [ RMSNorm → GQA + RoPE (+ QK-norm) → residual
      RMSNorm → SwiGLU                 → residual ] × 32
  → RMSNorm → LM Head (tied)
ComponentValue
Model type / classnullxes_shinra / ShinraForCausalLM
Layers32
Hidden size3,072
Attention heads24
KV heads8 (GQA, 3:1)
Head dim128
SwiGLU intermediate9,216
Positional encodingRoPE, θ = 1,000,000
NormalizationRMSNorm, ε = 1e-6, pre-norm
QK-normenabled
Attention implementationPyTorch SDPA
Attention / residual / embedding dropout0.0 / 0.0 / 0.0
Initializer standard deviation0.02
Attention / MLP biasnone
Z-loss1e-5
Embeddingsinput embeddings and LM head tied; counted once
Vocab131,072

Parameter budget

BlockParams
Embedding (tied, counted once)402,653,184
Attention projections per layer25,165,824
SwiGLU MLP per layer84,934,656
RMSNorm + QK-norm per layer6,400
All 32 decoder layers3,523,420,160
Final RMSNorm3,072
Additional LM head parameters0 (tied)
Total3,926,076,416 (3.9261B)

Reproduce in the GitHub repository: python -m architecture.param_count Architecture source: configs/shinra_4b.yaml at 903a639e03bc. The total also matches the published safetensors metadata. Full spec: architecture/design.md


Tokenizer

Custom SentencePiece Unigram, trained in-house on a web + wiki + code mix.

FieldValue
AlgorithmSentencePiece Unigram
Vocab size131,072
NormalizationNFKC
Byte fallbackyes
Fertility (tokens/word)

Special tokens

``


Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "MagistrTheOne/NULLXES-SHINRA-4B-INSTRUCT"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)

messages = [
    {"role": "system", "content": "You are SHINRA, built by NULLXES."},
    {"role": "user", "content": "Write RMSNorm in PyTorch."},
]

inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)

out = model.generate(inputs, max_new_tokens=512, temperature=0.7, top_p=0.9, do_sample=True)
print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))

trust_remote_code=True is required: SHINRA ships a custom ShinraConfig and modeling code, not a reused architecture class. The HF inference widget cannot load custom code, hence inference: false.

Chat template

{system}
{user}
{assistant}

Generation settings

Use casetemptop_prep. penalty
General chat0.70.91.05
Deterministic / extraction0.0–0.21.01.0
Creative0.90.951.05

Training

Pretraining (SHINRA-4B-BASE)

FieldValue
Tokens200B
Sequence length8,192 (packed)
Global batch2,097,152 tokens/step
Steps95,367
Peak LR3e-4
ScheduleWSD (warmup–stable–decay)
Optimizerfused AdamW
ParallelismFSDP FULL_SHARD
Memorygradient checkpointing
Attention kernelSDPA / FlashAttention on A100
Hardware8× A100 80GB
Wall-clock[TODO — measured]

Data pipeline: normalize → quality filter → language ID → toxicity filter → code-quality filter → MinHash dedup → pack to 8,192. Mixture and weights: configs/data_mix.yaml · docs/data.md

Alignment

DPO / preference optimization — planned, not included in this checkpoint.


Evaluation

[TODO] Fill before public release. Harness is already in-repo (evaluation/): perplexity, lm-eval, needle-in-haystack, code and multilingual slices.

BenchmarkShotsSHINRA-4B-INSTRUCTReference 4B
Held-out PPL[TODO]
MMLU5[TODO][TODO]
ruMMLU / MERA5[TODO][TODO]
HellaSwag10[TODO][TODO]
ARC-Challenge25[TODO][TODO]
GSM8K8[TODO][TODO]
HumanEval0[TODO][TODO]
IFEval0[TODO][TODO]
Needle @ 8K[TODO]

H

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys nullxes-shinra for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (nullxes-shinra below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nullxes-shinra","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms