okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
707fd49eb
main
1{ 2"label" :"fresh-128000-run1" , 3"attempt" :1 , 4"epoch_start" :1790923282.970276 , 5"epoch_end" :1790923521.0064394 , 6"kind" :"fresh" , 7"target" :128000 , 8"run" :1 , 9"expected_prompt_tokens" :128000 , 10"needle" :"orchid-saffron-902" , 11"needle_depth_pct" :40 , 12"max_tokens" :400 , 13"request_sha256" :"45ca1455d3583464c899284d4f84361bc3540d162a3ca29d208a6ca9b4c1e5d8" , 14"client_ttft_s" :226.34345818776637 , 15"client_total_s" :238.03423524601385 , 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" :225806.3 , 29"prompt_per_token_ms" :1.764 , 30"prompt_per_second" :566.9 , 31"predicted_n" :400 , 32"predicted_ms" :11727.2 , 33"predicted_per_token_ms" :29.318 , 34"predicted_per_second" :34.1 , 35"draft_n" :350 , 36"draft_n_accepted" :195 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’s core innovation lies in its sophisticated memory hierarchy, which balances GPU VRAM, system RAM, and SSD storage to accommodate models that far exceed the capacity of a single graphics card. By keeping the most frequently accessed expert weights in VRAM and streaming less active ones from RAM or disk, Strata enables high-throughput inference on machines with as little as 12 GB of VRAM, provided sufficient system RAM and fast storage are available. The engine supports multiple backends, with NVIDIA CUDA serving as the default and an experimental AMD HIP backend available for Linux users with RDNA2, RDNA3, and RDNA4 architectures.\n\nThe AMD HIP backend is a significant addition, offering support for cards such as the RX 7900 XT, RX 9070 series, and Radeon AI PRO R9700. This backend maps CUDA-shaped runtime calls to HIP and hipBLAS, utilizing specific hardware instructions like signed integer dot products for quantized kernels. While the NVIDIA path remains the primary focus, the AMD implementation has been validated on specific hardware configurations, demonstrating coherent output and competitive performance metrics. The documentation notes that while bit-identical results across backends are not guaranteed, the AMD path supports features like multi-GPU layer splitting and optional hipBLASLt tuning tables to accelerate dense projections. However, certain features like image processing and calibration are currently limited or unavailable on the AMD path, and the backend requires specific ROCm versions and driver configurations to function correctly.\n\nStrata’s operational model relies heavily on its expert cache and routing mechanisms. The engine uses a fixed expert profile to rank experts by usage frequency, ensuring that the most critical weights are resident in VRAM. For models that do not fit" , 40"status_before" : { 41"busy" :false , 42"queued" :0 , 43"phase" :"answering" , 44"prompt_tokens" :32768 , 45"generated" :400 , 46"max_tokens" :400 47 }, 48"totals_before" :9 , 49"totals_after" :10 , 50"foreign_overlap" :false , 51"engine" : { 52"prompt_tokens" :128000 , 53"reused" :0 , 54"read" :128000 , 55"prompt_ms_log" :225806 , 56"prompt_tok_s_log" :566.9 , 57"generated" :400 , 58"decode_ms_log" :11727 , 59"decode_tok_s_log" :34.1 , 60"drafts_accepted" :195 , 61"drafts_proposed" :350 , 62"checkpoints" :6 , 63"cancelled" :false , 64"line" :"strata serve: prompt 128000 tokens = 0 reused + 128000 read in 225806 ms (566.9 tok/s), 400 generated in 11727 ms (34.1 tok/s), drafts accepted 195 of 350, 6 checkpoints" , 65"hit_rate_pct" :54.9 , 66"hit_line" :"strata serve: decode expert cache hit rate: 54.9% (131806 hits / 240106 lookups)" , 67"kv_vram_pct" :95.73 , 68"kv_block_reads" :3463104 , 69"kv_ram_mib" :596.0 , 70"kv_line" :"strata serve: KV streaming: 95.73% of 3463104 block reads hit VRAM, 596.0 MiB read from RAM" , 71"suffix_windows" :12 , 72"suffix_accepted" :14 , 73"suffix_proposed" :22 74 }, 75"metrics_record" : { 76"projection" :null , 77"time" :1790923283.4307969 , 78"duration_s" :237.6 , 79"finish" :"length" , 80"prompt_tokens" :128000 , 81"reused" :0 , 82"output_tokens" :400 , 83"engine_generated" :400 , 84"prompt_ms" :225806.3 , 85"decode_ms" :11727.2 , 86"decode_tok_s" :34.1 , 87"hit_rate" :0.549 , 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 225806 ms (566.9 tok/s), 400 generated in 11727 ms (34.1 tok/s), drafts accepted 195 of 350, 6 checkpoints" , 94"strata serve: decode expert cache hit rate: 54.9% (131806 hits / 240106 lookups)" , 95"strata serve: KV streaming: 95.73% of 3463104 block reads hit VRAM, 596.0 MiB read from RAM" , 96"strata serve: suffix drafts: 12 windows, 14 of 22 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, 8 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, 26 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, 59 s so far" , 112"[strata] reading the prompt: 43,008 of 128,000 tokens, 64 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, 79 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, 100 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, 133 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, 175 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, 213 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, 225 s so far" , 141"[strata] answering: 20 of max 400 tokens, 33.1 tok/s, 226 s" , 142"[strata] answering: 54 of max 400 tokens, 33.2 tok/s, 228 s" , 143"[strata] answering: 90 of max 400 tokens, 34.2 tok/s, 229 s" , 144"[strata] answering: 121 of max 400 tokens, 33.3 tok/s, 230 s" , 145"[strata] answering: 156 of max 400 tokens, 33.5 tok/s, 231 s" , 146"[strata] answering: 191 of max 400 tokens, 33.7 tok/s, 232 s" , 147"[strata] answering: 222 of max 400 tokens, 33.3 tok/s, 233 s" , 148"[strata] answering: 261 of max 400 tokens, 33.9 tok/s, 234 s" , 149"[strata] answering: 294 of max 400 tokens, 33.6 tok/s, 235 s" , 150"[strata] answering: 334 of max 400 tokens, 34.0 tok/s, 236 s" , 151"[strata] answering: 368 of max 400 tokens, 33.9 tok/s, 237 s" , 152"[strata] done: 400 tokens in 238 s (34.2 tok/s) (length, cancel=False), expert cache 54.9% hit" 153 ] 154}