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
aien-sovereign-core-mv / docs / campaigns / c1 / kv_contract.toml
| 1 | # Campaign C1 KV contract. A run whose observed pool geometry differs from its profile aborts. |
| 2 | # bytes_per_block = 2 (K and V) x num_layers x block_size x num_kv_heads x head_dim x element_bytes |
| 3 | |
| 4 | [contract] |
| 5 | campaign_id = "c1" |
| 6 | spec_version = 1 |
| 7 | dtype = "Bf16" |
| 8 | element_bytes = 2 |
| 9 | block_size = 16 |
| 10 | |
| 11 | [profiles.tinyllama] |
| 12 | gates = ["1"] |
| 13 | num_layers = 22 |
| 14 | num_kv_heads = 4 |
| 15 | head_dim = 64 |
| 16 | bytes_per_token = 22528 |
| 17 | bytes_per_block = 360448 |
| 18 | num_blocks = 4096 |
| 19 | pool_bytes = 1476395008 # 1.375 GiB |
| 20 | |
| 21 | [profiles.qwen3_coder_30b_a3b_fp8] |
| 22 | gates = ["1.5", "2", "3", "4"] |
| 23 | num_layers = 48 |
| 24 | num_kv_heads = 4 |
| 25 | head_dim = 128 |
| 26 | bytes_per_token = 98304 # 96 KiB |
| 27 | bytes_per_block = 1572864 # 1.5 MiB |
| 28 | num_blocks = 27306 |
| 29 | pool_bytes = 42948624384 # 27306 x 1.5 MiB, just under 40 GiB |
| 30 | # Reference sizing (not enforced): |
| 31 | # 32K parent + 500 x 512 private tokens ~ 18,048 blocks (Gate 3 stage D fits) |
| 32 | # 32K parent + 500 x 1000 private tokens ~ 33,548 blocks (Gate 4 oversubscription exceeds pool) |