trained from scratch · runs on one 8 GB laptop GPU

The neural mind
of NEVA.

NEVA is a home-grown model family — a 130M MoE text language model and NEVA-Q, a hierarchical 1 meta-core → 25 cores → 18 experts mixture built on custom triangular pooled-attention kernels. No foundation-model weights. No cloud. This is its architecture, at the wiring level.

271–900Mparameters (total)
133–295Mactive per token
25 × 18cores × experts
10.4 Bpre-training tokens
102.2ppl · best of 4 archs
Architecture

A hierarchy of cores, each a mixture of experts

Every token flows through a meta-core hub that mixes 25 parallel cores. Inside each core, a router fires only 6 of 18 micro-experts (top-k=6) — so capacity is large while compute per token stays small. Attention is pooled & sub-quadratic; cores exchange information through a ring + hub mix. The diagram is live: watch which experts fire.

token t META hub mix RING_GLOBAL core #7 · 18 experts · top-k 6
meta-core (hub / RING_GLOBAL) 25 cores (all active) expert firing (6/18) expert idle

Meta-core

A mean-of-cores hub with weight-tied embed/head (input core = output core). Generalizes the triangular RING_GLOBAL flag to N cores + hub.

25 cores

All cores active in v1 (dense core-mix). Sparsity lives in the experts. Cores talk through a self · left · right · HUB ring gather.

18 experts · k=6

Per core, a Switch-style router (capacity-batched bmm dispatch, load-balance aux loss ~0.01) fires 6 experts per token. ~2× capacity at the same active compute.

Specifications

Three presets, one 8 GB GPU

Everything trains on a single RTX 4060 Laptop (8 GB). VRAM is dominated by the optimizer, so NEVA-Q uses a paged 8-bit AdamW (2 bytes/param) instead of fp32 (8 bytes/param) — that is what lets a 900M model fit.

ModelTotalActive / tokD · cores · expThroughput (4060)Role
NEVA 130M130M~130Mdense MoE · 32k vocabserved · CPU/GPUChat + NOVO DSL generation (sft1→19)
NEVA-Q 271M271M133M1200 · 25 · 18 (k6)~16k tok/sReference hierarchy
NEVA-Q 450M444M202M1200 · 25 · 18 (k6)~8–10k tok/sMain run (OPT8, ~5B tokens)
NEVA-Q 900M865M295M1200 · 25 · 24 (k6)~2.7k tok/sCapacity preset (bigger GPU)
NOVO-Q / byte~19.5M~8M400 · 25 · 18 · vocab 256~70k tok/sSpeaks the NOVO geometry DSL

🧮 Kernels

tri_attn_t pooled causal attention (2.26× at 25 cores) + neva_q_moe grouped-GEMM (MegaBlocks-style, err 1e-6, 1.85×). Triton on CUDA.

💾 Memory

MICRO=2 · ACCUM=12 → 4.65 GB. PagedAdamW8bit (bitsandbytes) drops a 900M's optimizer state from 10.8 GB → 3.67 GB.

⏱ Early-stop

Loss reaches within 5% of final at ~33% of the budget, so the LR schedule anneals at the plateau — days, not weeks.

Embodiment

What the mind drives

NEVA is not only a chat model. The same core reasoning feeds a spatial language, a security immune-system, and a moving body — all trained in-house.

🏗 NOVO — geometry DSL text → 3D

A constructive spatial language (prisms, CSG, revolution/loft/sweep, materials, layers). NEVA emits it as text; a Three.js engine + a headless Blender bridge render it. The model literally writes buildings.

Circular language spatial speech

A non-linear conlang where one sentence is one circular glyph. NEVA learns the compact notation; a compiler turns it into NOVO geometry — a language you read as a diagram.

🛡 Cyber arena byte-level

The same NEVA-Q design, byte-level, as attacker and defender in a sandbox. A 50M "reflect" defender mirrors and duplicates incoming attacks — self-play security, no real host touched.

🚶 Walk rig physics

A procedural molecular-mesh body with 2-bone IK and a cannon-es ragdoll. An evolutionary trainer searches a gait — the mind learns to move a 23k-node mesh.

Self-improvement loop

How NEVA trains itself

Pre-train on its own Spanish corpus, specialize by supervised fine-tuning, then distill from teacher models into fresh data — a loop the mind runs to keep getting sharper.

01

Corpus

FineWeb-2 spa_Latn → deduped int16 chunks (~10.4B tokens), disk-guarded.

02

Pre-train

Triangular kernels, warm-started embeddings, early-stop at the loss plateau.

03

SFT

sft1→19: identity, safety, code/math, NOVO DSL, materials, chairs, circular language.

04

Distill

A teacher invents instruction→answer pairs → distill_data.jsonl → next SFT.

05

Serve

Newest checkpoint auto-loads on the local server; the app talks to it live.

🔗 Multi-provider teacher gateway

The distillation teacher can be a local model or, through a local OpenAI/Anthropic-compatible proxy, a rotation of strong free-tier cloud models — turning NEVA's distill_data.jsonl generator into a much stronger self-teacher without changing the training code.

Benchmark

Why the hierarchy wins

A fair 2×2 ablation — attention {full, pooled} × FFN {dense, MoE(18,6)} — same batches, same D/depth/LR. Perplexity (lower is better). The big jump is pooled attention; MoE adds ~9% on top of it.

Transformer
189.0
full · dense
MoE
188.0
full · MoE
Triangular
111.6
pooled · dense
NEVA-Q
102.2
pooled · MoE

early dynamics · ~1M tokens · T=512 · same seed — directional, not a leaderboard claim.