Model reference · open weights
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 by | MagistrTheOne |
|---|---|
| Type | Language models |
| Task | Text gen |
| Parameters (lead) | 3.9B |
| Context | 32k tokens |
| Runs with | transformers |
| Released | 2026-09-18 |
| Popularity | 546 downloads / month |
| Licence | Commercial licence needed |
About
Language Intelligence layer of the NULLXES Intelligence Stack.
SHINRA Our llm.
| Field | Value |
|---|---|
| Name | NULLXES SHINRA-4B-INSTRUCT |
| Developer | NULLXES LLC |
| Parameters | 3,926,076,416 total (3.9261B); 3,523,423,232 non-embedding |
| Architecture | Decoder-only Transformer, GQA + RoPE, SwiGLU, RMSNorm pre-norm |
| Vocabulary | 131,072 (custom SentencePiece Unigram) |
| Configured training sequence length | 8,192 tokens |
| Configured maximum positions | 32,768 (RoPE θ = 1,000,000) |
| Published weight dtype | FP32 (F32 in Hub safetensors metadata) |
| Configured training precision | BF16 |
| Framework | PyTorch + transformers, FSDP |
| Configured training hardware | 8× A100 80GB |
| License | NULLXES Research License — weights are a proprietary asset |
Release line
NULLXES SHINRA-4B-BASE — pretrainNULLXES SHINRA-4B-INSTRUCT — instruction tuning ← this modelNULLXES SHINRA-4B-INSTRUCT (aligned) — DPO / preference optimizationContext configuration. GitHub configures an 8,192-token training sequence and 32,768 maximum positions. These are configuration limits, not measured context-quality results.
Embedding
→ [ RMSNorm → GQA + RoPE (+ QK-norm) → residual
RMSNorm → SwiGLU → residual ] × 32
→ RMSNorm → LM Head (tied)
| Component | Value |
|---|---|
| Model type / class | nullxes_shinra / ShinraForCausalLM |
| Layers | 32 |
| Hidden size | 3,072 |
| Attention heads | 24 |
| KV heads | 8 (GQA, 3:1) |
| Head dim | 128 |
| SwiGLU intermediate | 9,216 |
| Positional encoding | RoPE, θ = 1,000,000 |
| Normalization | RMSNorm, ε = 1e-6, pre-norm |
| QK-norm | enabled |
| Attention implementation | PyTorch SDPA |
| Attention / residual / embedding dropout | 0.0 / 0.0 / 0.0 |
| Initializer standard deviation | 0.02 |
| Attention / MLP bias | none |
| Z-loss | 1e-5 |
| Embeddings | input embeddings and LM head tied; counted once |
| Vocab | 131,072 |
Parameter budget
| Block | Params |
|---|---|
| Embedding (tied, counted once) | 402,653,184 |
| Attention projections per layer | 25,165,824 |
| SwiGLU MLP per layer | 84,934,656 |
| RMSNorm + QK-norm per layer | 6,400 |
| All 32 decoder layers | 3,523,420,160 |
| Final RMSNorm | 3,072 |
| Additional LM head parameters | 0 (tied) |
| Total | 3,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
Custom SentencePiece Unigram, trained in-house on a web + wiki + code mix.
| Field | Value |
|---|---|
| Algorithm | SentencePiece Unigram |
| Vocab size | 131,072 |
| Normalization | NFKC |
| Byte fallback | yes |
| Fertility (tokens/word) |
Special tokens
``
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.
{system}
{user}
{assistant}
| Use case | temp | top_p | rep. penalty |
|---|---|---|---|
| General chat | 0.7 | 0.9 | 1.05 |
| Deterministic / extraction | 0.0–0.2 | 1.0 | 1.0 |
| Creative | 0.9 | 0.95 | 1.05 |
SHINRA-4B-BASE)| Field | Value |
|---|---|
| Tokens | 200B |
| Sequence length | 8,192 (packed) |
| Global batch | 2,097,152 tokens/step |
| Steps | 95,367 |
| Peak LR | 3e-4 |
| Schedule | WSD (warmup–stable–decay) |
| Optimizer | fused AdamW |
| Parallelism | FSDP FULL_SHARD |
| Memory | gradient checkpointing |
| Attention kernel | SDPA / FlashAttention on A100 |
| Hardware | 8× 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
DPO / preference optimization — planned, not included in this checkpoint.
[TODO] Fill before public release. Harness is already in-repo (
evaluation/): perplexity,lm-eval, needle-in-haystack, code and multilingual slices.
| Benchmark | Shots | SHINRA-4B-INSTRUCT | Reference 4B |
|---|---|---|---|
| Held-out PPL | — | [TODO] | — |
| MMLU | 5 | [TODO] | [TODO] |
| ruMMLU / MERA | 5 | [TODO] | [TODO] |
| HellaSwag | 10 | [TODO] | [TODO] |
| ARC-Challenge | 25 | [TODO] | [TODO] |
| GSM8K | 8 | [TODO] | [TODO] |
| HumanEval | 0 | [TODO] | [TODO] |
| IFEval | 0 | [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
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.