okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
707fd49eb
main
1{ 2"label" :"fresh-128000-run2" , 3"attempt" :1 , 4"epoch_start" :1790923534.0664766 , 5"epoch_end" :1790923772.4877021 , 6"kind" :"fresh" , 7"target" :128000 , 8"run" :2 , 9"expected_prompt_tokens" :128000 , 10"needle" :"glacier-lantern-551" , 11"needle_depth_pct" :40 , 12"max_tokens" :400 , 13"request_sha256" :"07f8ae57df75eb17dc068fc384bf229eb03b30f06b9f7a8fe5c7d530293d14ae" , 14"client_ttft_s" :226.5888807689771 , 15"client_total_s" :238.42010595137253 , 16"finish_reason" :"length" , 17"usage" : { 18"prompt_tokens" :128000 , 19"completion_tokens" :400 , 20"total_tokens" :128400 , 21"prompt_tokens_details" : { 22"cached_tokens" :0 23 } 24 }, 25"timings" : { 26"cache_n" :0 , 27"prompt_n" :128000 , 28"prompt_ms" :226050.0 , 29"prompt_per_token_ms" :1.766 , 30"prompt_per_second" :566.2 , 31"predicted_n" :400 , 32"predicted_ms" :11865.9 , 33"predicted_per_token_ms" :29.665 , 34"predicted_per_second" :33.7 , 35"draft_n" :348 , 36"draft_n_accepted" :189 37 }, 38"keepalives" :43 , 39"text" :"The provided documentation details the architecture, configuration, and performance characteristics of Strata, a specialized inference engine designed to run large Mixture-of-Experts models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system relies on a sophisticated multi-tier memory hierarchy to manage the massive weight matrices that exceed the capacity of standard GPU VRAM. The core strategy involves keeping the most frequently accessed experts in GPU memory, less frequent experts in system RAM, and the remainder on high-speed SSD storage. This tiered approach allows the engine to maintain high throughput by overlapping CPU computation for RAM-resident experts with GPU computation for VRAM-resident experts, while streaming data from disk as needed. The engine supports various quantization formats, including IQ3_XXS, IQ2_XS, and Q2_0, with specific optimizations for native expert packing and compatibility with different model variants like the Coder and Swift fine-tunes.\n\nA significant portion of the documentation focuses on experimental support for AMD GPUs via the HIP backend. This backend targets RDNA2, RDNA3, and RDNA4 architectures, mapping CUDA-shaped runtime calls to HIP and hipBLAS. It utilizes specific hardware instructions, such as signed integer dot products and wave32 shuffle operations, to accelerate quantized kernels. The installation process for AMD cards is streamlined through a setup script that detects the GPU architecture and compiles the engine accordingly, often installing a specific version of ROCm if a system-wide installation is not present. Performance benchmarks for AMD cards, such as the RX 7900 XTX and RX 9070 XT, demonstrate competitive prompt processing and decode speeds, though certain features like vision encoding and hipBLASLt tuning tables may have limited support or require manual calibration. The documentation emphasizes that while the backend is functional, it is opt-in and does not claim bit-identical results across different backends, acknowledging minor numerical differences due to floating-point rounding and" , 40"status_before" : { 41"busy" :false , 42"queued" :0 , 43"phase" :"answering" , 44"prompt_tokens" :128000 , 45"generated" :400 , 46"max_tokens" :400 47 }, 48"totals_before" :10 , 49"totals_after" :11 , 50"foreign_overlap" :false , 51"engine" : { 52"prompt_tokens" :128000 , 53"reused" :0 , 54"read" :128000 , 55"prompt_ms_log" :226050 , 56"prompt_tok_s_log" :566.2 , 57"generated" :400 , 58"decode_ms_log" :11866 , 59"decode_tok_s_log" :33.7 , 60"drafts_accepted" :189 , 61"drafts_proposed" :348 , 62"checkpoints" :6 , 63"cancelled" :false , 64"line" :"strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226050 ms (566.2 tok/s), 400 generated in 11866 ms (33.7 tok/s), drafts accepted 189 of 348, 6 checkpoints" , 65"hit_rate_pct" :55.6 , 66"hit_line" :"strata serve: decode expert cache hit rate: 55.6% (134719 hits / 242108 lookups)" , 67"kv_vram_pct" :95.62 , 68"kv_block_reads" :3487704 , 69"kv_ram_mib" :616.0 , 70"kv_line" :"strata serve: KV streaming: 95.62% of 3487704 block reads hit VRAM, 616.0 MiB read from RAM" , 71"suffix_windows" :9 , 72"suffix_accepted" :11 , 73"suffix_proposed" :17 74 }, 75"metrics_record" : { 76"projection" :null , 77"time" :1790923534.5321145 , 78"duration_s" :238.0 , 79"finish" :"length" , 80"prompt_tokens" :128000 , 81"reused" :0 , 82"output_tokens" :400 , 83"engine_generated" :400 , 84"prompt_ms" :226050.0 , 85"decode_ms" :11865.9 , 86"decode_tok_s" :33.7 , 87"hit_rate" :0.556 , 88"ram_blobs" :0 , 89"file_blobs" :0 , 90"file_mb" :0.0 91 }, 92"engine_log" : [ 93"strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226050 ms (566.2 tok/s), 400 generated in 11866 ms (33.7 tok/s), drafts accepted 189 of 348, 6 checkpoints" , 94"strata serve: decode expert cache hit rate: 55.6% (134719 hits / 242108 lookups)" , 95"strata serve: KV streaming: 95.62% of 3487704 block reads hit VRAM, 616.0 MiB read from RAM" , 96"strata serve: suffix drafts: 9 windows, 11 of 17 drafts accepted" 97 ], 98"server_log" : [ 99"[strata] reading the prompt: 3,072 of 128,000 tokens, 4 s so far" , 100"[strata] reading the prompt: 6,144 of 128,000 tokens, 9 s so far" , 101"[strata] reading the prompt: 9,216 of 128,000 tokens, 13 s so far" , 102"[strata] reading the prompt: 12,288 of 128,000 tokens, 17 s so far" , 103"[strata] reading the prompt: 15,360 of 128,000 tokens, 22 s so far" , 104"[strata] reading the prompt: 18,432 of 128,000 tokens, 27 s so far" , 105"[strata] reading the prompt: 21,504 of 128,000 tokens, 31 s so far" , 106"[strata] reading the prompt: 24,576 of 128,000 tokens, 36 s so far" , 107"[strata] reading the prompt: 27,648 of 128,000 tokens, 40 s so far" , 108"[strata] reading the prompt: 30,720 of 128,000 tokens, 45 s so far" , 109"[strata] reading the prompt: 33,792 of 128,000 tokens, 50 s so far" , 110"[strata] reading the prompt: 36,864 of 128,000 tokens, 55 s so far" , 111"[strata] reading the prompt: 39,936 of 128,000 tokens, 60 s so far" , 112"[strata] reading the prompt: 43,008 of 128,000 tokens, 65 s so far" , 113"[strata] reading the prompt: 46,080 of 128,000 tokens, 69 s so far" , 114"[strata] reading the prompt: 49,152 of 128,000 tokens, 74 s so far" , 115"[strata] reading the prompt: 52,224 of 128,000 tokens, 80 s so far" , 116"[strata] reading the prompt: 55,296 of 128,000 tokens, 85 s so far" , 117"[strata] reading the prompt: 58,368 of 128,000 tokens, 90 s so far" , 118"[strata] reading the prompt: 61,440 of 128,000 tokens, 95 s so far" , 119"[strata] reading the prompt: 64,512 of 128,000 tokens, 101 s so far" , 120"[strata] reading the prompt: 67,584 of 128,000 tokens, 106 s so far" , 121"[strata] reading the prompt: 70,656 of 128,000 tokens, 111 s so far" , 122"[strata] reading the prompt: 73,728 of 128,000 tokens, 117 s so far" , 123"[strata] reading the prompt: 76,800 of 128,000 tokens, 122 s so far" , 124"[strata] reading the prompt: 79,872 of 128,000 tokens, 128 s so far" , 125"[strata] reading the prompt: 82,944 of 128,000 tokens, 134 s so far" , 126"[strata] reading the prompt: 86,016 of 128,000 tokens, 139 s so far" , 127"[strata] reading the prompt: 89,088 of 128,000 tokens, 145 s so far" , 128"[strata] reading the prompt: 92,160 of 128,000 tokens, 151 s so far" , 129"[strata] reading the prompt: 95,232 of 128,000 tokens, 157 s so far" , 130"[strata] reading the prompt: 98,304 of 128,000 tokens, 163 s so far" , 131"[strata] reading the prompt: 101,376 of 128,000 tokens, 169 s so far" , 132"[strata] reading the prompt: 104,448 of 128,000 tokens, 176 s so far" , 133"[strata] reading the prompt: 107,520 of 128,000 tokens, 182 s so far" , 134"[strata] reading the prompt: 110,592 of 128,000 tokens, 188 s so far" , 135"[strata] reading the prompt: 113,664 of 128,000 tokens, 194 s so far" , 136"[strata] reading the prompt: 116,736 of 128,000 tokens, 201 s so far" , 137"[strata] reading the prompt: 119,808 of 128,000 tokens, 207 s so far" , 138"[strata] reading the prompt: 122,880 of 128,000 tokens, 214 s so far" , 139"[strata] reading the prompt: 125,952 of 128,000 tokens, 220 s so far" , 140"[strata] reading the prompt: 127,993 of 128,000 tokens, 226 s so far" , 141"[strata] answering: 19 of max 400 tokens, 33.6 tok/s, 227 s" , 142"[strata] answering: 53 of max 400 tokens, 32.5 tok/s, 228 s" , 143"[strata] answering: 88 of max 400 tokens, 32.6 tok/s, 229 s" , 144"[strata] answering: 122 of max 400 tokens, 32.7 tok/s, 230 s" , 145"[strata] answering: 156 of max 400 tokens, 32.8 tok/s, 231 s" , 146"[strata] answering: 188 of max 400 tokens, 32.6 tok/s, 232 s" , 147"[strata] answering: 231 of max 400 tokens, 34.1 tok/s, 233 s" , 148"[strata] answering: 270 of max 400 tokens, 34.7 tok/s, 234 s" , 149"[strata] answering: 300 of max 400 tokens, 34.1 tok/s, 235 s" , 150"[strata] answering: 332 of max 400 tokens, 33.7 tok/s, 236 s" , 151"[strata] answering: 361 of max 400 tokens, 33.1 tok/s, 237 s" , 152"[strata] done: 400 tokens in 238 s (33.8 tok/s) (length, cancel=False), expert cache 55.6% hit" 153 ] 154}