okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
707fd49eb
main
1{ 2"label" :"fresh-32768-run1" , 3"attempt" :1 , 4"epoch_start" :1790923070.7254138 , 5"epoch_end" :1790923132.177872 , 6"kind" :"fresh" , 7"target" :32768 , 8"run" :1 , 9"expected_prompt_tokens" :32768 , 10"needle" :null , 11"needle_depth_pct" :null , 12"max_tokens" :400 , 13"request_sha256" :"5afddb8eef6c57907b90619b8352fff7271c425b484fc7c50074c9ab00163fe9" , 14"client_ttft_s" :51.47900504991412 , 15"client_total_s" :61.45193401211873 , 16"finish_reason" :"length" , 17"usage" : { 18"prompt_tokens" :32768 , 19"completion_tokens" :400 , 20"total_tokens" :33168 , 21"prompt_tokens_details" : { 22"cached_tokens" :0 23 } 24 }, 25"timings" : { 26"cache_n" :0 , 27"prompt_n" :32768 , 28"prompt_ms" :51317.4 , 29"prompt_per_token_ms" :1.566 , 30"prompt_per_second" :638.5 , 31"predicted_n" :400 , 32"predicted_ms" :10006.9 , 33"predicted_per_token_ms" :25.017 , 34"predicted_per_second" :40.0 , 35"draft_n" :354 , 36"draft_n_accepted" :238 37 }, 38"keepalives" :12 , 39"text" :"The provided documentation details the experimental AMD HIP backend for the Strata software, which enables high-performance inference on specific AMD Radeon graphics cards on Linux. This backend is opt-in and primarily targets RDNA3 and RDNA4 architectures, including the RX 7900 XT, RX 9070 series, and the Radeon AI PRO R9700, while also supporting RDNA2 cards like the RX 6800 and 6900 series through community validation. The implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing RDNA-specific signed integer dot instructions for quantized kernels and wave32 shuffle operations. It supports both dequantization with hipBLAS GEMM and an optional HIP ggml MMQ path for prefill operations, with an optional calibrated hipBLASLt path to accelerate dense projections. The documentation explicitly notes that this backend does not claim bit-identical model answers across different backends, acknowledging minor numerical differences.\n\nInstallation is streamlined through a setup script that detects the GPU via kernel topology and automatically selects the HIP backend if no NVIDIA card is present. The system can utilize an existing system ROCm installation or install a pinned version of ROCm from AMD’s TheRock wheels into a local virtual environment, avoiding the need for sudo privileges. The engine is compiled locally for the specific GPU architecture, a process that takes ten to twenty minutes. For optimal performance, the setup can apply a hipBLASLt tuning table, but only if the installed library version and GPU architecture match the table’s specifications exactly; otherwise, it falls back to plain hipBLAS. Multi-GPU configurations are supported by splitting model layers across cards, though this is generally only beneficial when a single card cannot hold the model’s expert weights in VRAM.\n\nPerformance evidence for the RX 7900 XTX demonstrates significant improvements over previous AMD runtimes, with fresh prompt processing speeds reaching nearly 900" , 40"status_before" : { 41"busy" :false , 42"queued" :0 , 43"phase" :"answering" , 44"prompt_tokens" :4096 , 45"generated" :400 , 46"max_tokens" :400 47 }, 48"totals_before" :6 , 49"totals_after" :7 , 50"foreign_overlap" :false , 51"engine" : { 52"prompt_tokens" :32768 , 53"reused" :0 , 54"read" :32768 , 55"prompt_ms_log" :51317 , 56"prompt_tok_s_log" :638.5 , 57"generated" :400 , 58"decode_ms_log" :10007 , 59"decode_tok_s_log" :40.0 , 60"drafts_accepted" :238 , 61"drafts_proposed" :354 , 62"checkpoints" :2 , 63"cancelled" :false , 64"line" :"strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51317 ms (638.5 tok/s), 400 generated in 10007 ms (40.0 tok/s), drafts accepted 238 of 354, 2 checkpoints" , 65"hit_rate_pct" :54.6 , 66"hit_line" :"strata serve: decode expert cache hit rate: 54.6% (121778 hits / 223114 lookups)" , 67"kv_vram_pct" :97.71 , 68"kv_block_reads" :3228924 , 69"kv_ram_mib" :298.3 , 70"kv_line" :"strata serve: KV streaming: 97.71% of 3228924 block reads hit VRAM, 298.3 MiB read from RAM" , 71"suffix_windows" :6 , 72"suffix_accepted" :9 , 73"suffix_proposed" :13 74 }, 75"metrics_record" : { 76"projection" :null , 77"time" :1790923070.840125 , 78"duration_s" :61.3 , 79"finish" :"length" , 80"prompt_tokens" :32768 , 81"reused" :0 , 82"output_tokens" :400 , 83"engine_generated" :400 , 84"prompt_ms" :51317.4 , 85"decode_ms" :10006.9 , 86"decode_tok_s" :40.0 , 87"hit_rate" :0.546 , 88"ram_blobs" :0 , 89"file_blobs" :0 , 90"file_mb" :0.0 91 }, 92"engine_log" : [ 93"strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51317 ms (638.5 tok/s), 400 generated in 10007 ms (40.0 tok/s), drafts accepted 238 of 354, 2 checkpoints" , 94"strata serve: decode expert cache hit rate: 54.6% (121778 hits / 223114 lookups)" , 95"strata serve: KV streaming: 97.71% of 3228924 block reads hit VRAM, 298.3 MiB read from RAM" , 96"strata serve: suffix drafts: 6 windows, 9 of 13 drafts accepted" 97 ], 98"server_log" : [ 99"[strata] reading the prompt: 3,072 of 32,768 tokens, 4 s so far" , 100"[strata] reading the prompt: 6,144 of 32,768 tokens, 9 s so far" , 101"[strata] reading the prompt: 9,216 of 32,768 tokens, 13 s so far" , 102"[strata] reading the prompt: 12,288 of 32,768 tokens, 18 s so far" , 103"[strata] reading the prompt: 15,360 of 32,768 tokens, 23 s so far" , 104"[strata] reading the prompt: 18,432 of 32,768 tokens, 27 s so far" , 105"[strata] reading the prompt: 21,504 of 32,768 tokens, 32 s so far" , 106"[strata] reading the prompt: 24,576 of 32,768 tokens, 37 s so far" , 107"[strata] reading the prompt: 27,648 of 32,768 tokens, 42 s so far" , 108"[strata] reading the prompt: 30,720 of 32,768 tokens, 46 s so far" , 109"[strata] reading the prompt: 32,761 of 32,768 tokens, 51 s so far" , 110"[strata] answering: 21 of max 400 tokens, 34.1 tok/s, 52 s" , 111"[strata] answering: 58 of max 400 tokens, 35.9 tok/s, 53 s" , 112"[strata] answering: 104 of max 400 tokens, 39.4 tok/s, 54 s" , 113"[strata] answering: 152 of max 400 tokens, 41.2 tok/s, 55 s" , 114"[strata] answering: 194 of max 400 tokens, 40.7 tok/s, 56 s" , 115"[strata] answering: 234 of max 400 tokens, 40.3 tok/s, 57 s" , 116"[strata] answering: 275 of max 400 tokens, 40.3 tok/s, 58 s" , 117"[strata] answering: 318 of max 400 tokens, 40.6 tok/s, 59 s" , 118"[strata] answering: 359 of max 400 tokens, 40.4 tok/s, 60 s" , 119"[strata] answering: 397 of max 400 tokens, 40.1 tok/s, 61 s" , 120"[strata] done: 400 tokens in 61 s (40.1 tok/s) (length, cancel=False), expert cache 54.6% hit" 121 ] 122}