okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
707fd49eb
main
1{ 2"label" :"fresh-32768-run2" , 3"attempt" :1 , 4"epoch_start" :1790923138.6319818 , 5"epoch_end" :1790923200.8234434 , 6"kind" :"fresh" , 7"target" :32768 , 8"run" :2 , 9"expected_prompt_tokens" :32768 , 10"needle" :null , 11"needle_depth_pct" :null , 12"max_tokens" :400 , 13"request_sha256" :"867e48864958a5f1645889131a257b36b47fbf928dee5d97799f52fde3c08d35" , 14"client_ttft_s" :51.69961504312232 , 15"client_total_s" :62.19105800334364 , 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" :51540.4 , 29"prompt_per_token_ms" :1.573 , 30"prompt_per_second" :635.8 , 31"predicted_n" :400 , 32"predicted_ms" :10524.5 , 33"predicted_per_token_ms" :26.311 , 34"predicted_per_second" :38.0 , 35"draft_n" :364 , 36"draft_n_accepted" :228 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 7800 XT, RX 9060 XT, RX 9070 series, and the Radeon AI PRO R9700. While the NVIDIA CUDA backend remains the default, the HIP implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing RDNA-specific signed integer dot instructions for quantized kernels. It supports wave32 shuffle operations and provides an ordered FP32 fallback for CUDA-only matrix instructions. The system is designed to be installed via a setup script that detects the GPU through the kernel’s KFD topology and automatically installs the necessary ROCm components if a compatible system installation is not found. The engine is compiled locally for the specific GPU architecture, ensuring compatibility and performance, though it requires a C++ compiler and git for the build process.\n\nPerformance validation has been conducted on various hardware configurations, with detailed benchmarks provided for the RX 9070 XT and Radeon AI PRO R9700. These tests demonstrate coherent and consistent model answers across different cards, with throughput measurements recorded for both prompt processing and token generation. For instance, the Radeon AI PRO R9700 achieves significantly higher token generation speeds compared to the RX 9070 XT, particularly in longer context scenarios. The documentation also highlights the potential for multi-GPU execution, where layers of the model are split across multiple cards. However, this split is only beneficial when a single card cannot hold the model’s expert weights in VRAM. In cases where one card can accommodate the entire expert set, using a single card is more efficient than splitting the workload, as the overhead of inter-GPU communication outweighs the benefits of distributed memory.\n\n" , 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" :7 , 49"totals_after" :8 , 50"foreign_overlap" :false , 51"engine" : { 52"prompt_tokens" :32768 , 53"reused" :0 , 54"read" :32768 , 55"prompt_ms_log" :51540 , 56"prompt_tok_s_log" :635.8 , 57"generated" :400 , 58"decode_ms_log" :10525 , 59"decode_tok_s_log" :38.0 , 60"drafts_accepted" :228 , 61"drafts_proposed" :364 , 62"checkpoints" :2 , 63"cancelled" :false , 64"line" :"strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51540 ms (635.8 tok/s), 400 generated in 10525 ms (38.0 tok/s), drafts accepted 228 of 364, 2 checkpoints" , 65"hit_rate_pct" :54.0 , 66"hit_line" :"strata serve: decode expert cache hit rate: 54.0% (124239 hits / 230199 lookups)" , 67"kv_vram_pct" :97.81 , 68"kv_block_reads" :3339828 , 69"kv_ram_mib" :294.9 , 70"kv_line" :"strata serve: KV streaming: 97.81% of 3339828 block reads hit VRAM, 294.9 MiB read from RAM" , 71"suffix_windows" :10 , 72"suffix_accepted" :18 , 73"suffix_proposed" :23 74 }, 75"metrics_record" : { 76"projection" :null , 77"time" :1790923138.7457862 , 78"duration_s" :62.1 , 79"finish" :"length" , 80"prompt_tokens" :32768 , 81"reused" :0 , 82"output_tokens" :400 , 83"engine_generated" :400 , 84"prompt_ms" :51540.4 , 85"decode_ms" :10524.5 , 86"decode_tok_s" :38.0 , 87"hit_rate" :0.54 , 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 51540 ms (635.8 tok/s), 400 generated in 10525 ms (38.0 tok/s), drafts accepted 228 of 364, 2 checkpoints" , 94"strata serve: decode expert cache hit rate: 54.0% (124239 hits / 230199 lookups)" , 95"strata serve: KV streaming: 97.81% of 3339828 block reads hit VRAM, 294.9 MiB read from RAM" , 96"strata serve: suffix drafts: 10 windows, 18 of 23 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, 47 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, 33.8 tok/s, 52 s" , 111"[strata] answering: 58 of max 400 tokens, 35.7 tok/s, 53 s" , 112"[strata] answering: 103 of max 400 tokens, 38.8 tok/s, 54 s" , 113"[strata] answering: 145 of max 400 tokens, 39.5 tok/s, 55 s" , 114"[strata] answering: 188 of max 400 tokens, 40.1 tok/s, 56 s" , 115"[strata] answering: 226 of max 400 tokens, 39.5 tok/s, 57 s" , 116"[strata] answering: 259 of max 400 tokens, 38.5 tok/s, 58 s" , 117"[strata] answering: 296 of max 400 tokens, 38.0 tok/s, 59 s" , 118"[strata] answering: 330 of max 400 tokens, 37.5 tok/s, 60 s" , 119"[strata] answering: 370 of max 400 tokens, 37.6 tok/s, 61 s" , 120"[strata] done: 400 tokens in 62 s (38.1 tok/s) (length, cancel=False), expert cache 54.0% hit" 121 ] 122}