interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / dev-model-0 / DEV_MODEL_0_MODEL_DISCOVERY.md

103 lines · 10436 bytes Raw Blame History Source

DEV_MODEL_0 Model Discovery: Gemma 4 12B instruction-tuned

Fetch date: 2026-10-01. Method: plain HTTPS GET, no credentials, no weights downloaded. Every fact is tagged VERIFIED (fetched from the named official URL) or UNVERIFIED. Base URL B = https://huggingface.co/google/gemma-4-12B-it

1. Identity

2. Architecture (from B/raw/main/config.json, text_config unless noted)

FieldValue (VERIFIED)
hidden_size3840
num_hidden_layers48
num_attention_heads16
num_key_value_heads (sliding layers)8
num_global_key_value_heads (full layers)1
head_dim (sliding)256
global_head_dim (full)512
attention_k_eq_vtrue (the card says global layers use unified Keys and Values)
intermediate_size15360
hidden_activationgelu_pytorch_tanh
rms_norm_eps1e-06 (norm type is RMSNorm by the field name; layer layout not in config)
vocab_size262144
max_position_embeddings262144
sliding_window1024
tie_word_embeddingstrue
final_logit_softcapping30.0
attention logit soft-cappingNo field in config. Treat as absent (VERIFIED absent from config; whether code ignores it is UNVERIFIED)
attention_bias / dropoutfalse / 0.0
use_bidirectional_attention"vision" (bidirectional only among image tokens)
hidden_size_per_layer_input0 (no per-layer embeddings, unlike E2B/E4B)
num_kv_shared_layers0
use_double_wide_mlpfalse
dtypebfloat16
bos / eos / pad id (text_config)2 / 1 / 0

Layer schedule, VERIFIED from layer_types: 48 entries, pattern is 5 sliding_attention then 1 full_attention, repeated 8 times. Full attention sits at layer indexes 5, 11, 17, 23, 29, 35, 41, 47 (zero based). The last layer is global.

RoPE, VERIFIED from rope_parameters:

Not in config, so UNVERIFIED (read the Hugging Face transformers gemma4_unified modeling code before implementing): embedding scaling (Gemma models historically multiply embeddings by sqrt(hidden_size); not confirmed here), exact norm placement (pre/post norms around attention and MLP), QK-norm, query pre-attention scalar, how global layers with 1 KV head and head_dim 512 split the 16 query heads, and how p-RoPE rotates 25 percent of the dims.

Vision and audio blocks, VERIFIED present in config: vision patch_size 16, model_patch_size 48, pooling_kernel_size 3, num_soft_tokens 280, mm_embed_dim 3840; audio hidden_size 640, audio_samples_per_token 640. Not needed for a text-only first slice.

3. Files, size, tokenizer, chat template

File list, VERIFIED (HF tree API, https://huggingface.co/api/models/google/gemma-4-12B-it/tree/main):

Tokenizer, VERIFIED: tokenizer.json is HF tokenizers format, model type BPE, byte_fallback true. Processor class Gemma4UnifiedProcessor, padding_side left.

Special tokens, VERIFIED from tokenizer_config.json and config.json:

generation_config.json, VERIFIED: do_sample true, temperature 1.0, top_k 64, top_p 0.95, suppress_tokens [258883, 258882].

Chat template, VERIFIED (B/raw/main/chat_template.jinja, "Published: 2026-07-09"):

4. License

5. Access and download

6. Open items before implementation

  1. Read the transformers gemma4_unified modeling source (UNVERIFIED items in section 2: embedding scaling, norm layout, QK-norm, global-layer head handling, p-RoPE details).
  2. Confirm token id 106 and 50 strings in tokenizer.json.
  3. Safetensors tensor names and shapes: not yet read (header of the 23.9 GB file would be needed; can be fetched with an HTTP range request of the first few MB).
  4. Verify the chat template by rendering it.