inkling2(hip): R9700 default set: candidate rows above 4 slots, batched drafter back as in 0.2.23

C64 on p620 (64 prompts, 128 new tokens) showed two costs of the default set against base 8db8753d5 and the 0.2.23 package:
- Candidate rows off cost 9% of steady decode with the drafter off (422 against 463 tok/s). The chunk is not the cause: every arm ran chunk 512 at 64 slots, and
  CAND=1 with chunk 512 equals base (360.5 / 462.9 against 361.1 / 463.4 e2e / steady). CAND is now off at 1..4 slots (where it cost 1.6% of one-slot DFlash 2 decode)
  and on above 4 slots; a written-out STRATA_INK_R9700_CAND wins; the fast kernel set and EXACT are unchanged. The start-up line of the chunk rule names the choice.
- The batched multi-slot drafter was gated behind the fast kernel set, so the default lost it at 2+ slots (DFlash 2 steady C64 460 against 556 tok/s). The default set runs it
  again as 0.2.23 did (EXACT does not).
Register notes, the cfg.hpp header and AMD_HIP.md follow.
This commit is contained in:
Niko1221 committed 2026-12-01 02:26:41 +01:00
1 parent 3d0668197c
commit ccefbe96ed
5 files changed
+143 -123

No files matched your search

+1 -1
View File
@@ -396,7 +396,7 @@ signed dot4 instruction and a 100 MHz wall clock. Switch defaults for gfx12 are
runs the card's extra kernels: the Q8 trunk with the column-2027 pin, GQA-4 attention, K-coalesced MoE, the Q4 unembed screen, the
DFlash 2 fast path, the on-GPU candidate rows and a prefill chunk of 16384 (2048 with `--parallel 2` or more). It is the faster mode: answers differ slightly
from the default, so it is off unless you ask. Without it an R9700 runs what 0.2.23 ran (`STRATA_INK_R9700=0` turns every R9700 kernel off,
`STRATA_INK_R9700_EXACT=1` asks for the lossless form), without the candidate rows (`STRATA_INK_R9700_CAND=1` brings them back), and with a prompt step that
`STRATA_INK_R9700_EXACT=1` asks for the lossless form), with the candidate rows only above four users (`STRATA_INK_R9700_CAND=1` or `0` written out wins), and with a prompt step that
depends on memory: 8192 tokens for one user and 2048 for two to four (long prompts read about 1.7 times faster than in 0.2.23, same answers), 512 for five or more
users, and 512 at any user count when the free VRAM after start-up is under the big step's extra scratch (about 5.7 GiB at 8192, scaled down for 2048) plus 2 GiB.
The engine prints the chosen step once at start. `STRATA_INK_R9700_CHUNK=N` written out always wins over this rule. On any other card the flag prints one line and changes nothing. A request
+1 -1
View File
@@ -144,7 +144,7 @@ Off unless you set them. The last column says where each one is described.
| `STRATA_INK_NUMA` | on / off | NVIDIA and AMD | - |
| `STRATA_INK_PREFILL_CAP` | number | NVIDIA and AMD | - |
| `STRATA_INK_R9700` | text | AMD | [AMD_HIP.md](AMD_HIP.md) |
| `STRATA_INK_R9700_ASYNC_CKPT` | on / off | AMD | - |
| `STRATA_INK_R9700_ASYNC_CKPT` | text | AMD | - |
| `STRATA_INK_R9700_BSPEC_K` | text | AMD | - |
| `STRATA_INK_R9700_CAND` | on / off | AMD | [AMD_HIP.md](AMD_HIP.md) |
| `STRATA_INK_R9700_CHUNK` | on / off | AMD | [AMD_HIP.md](AMD_HIP.md) |
+24 -11
View File
@@ -562,7 +562,8 @@ public:
// The one batched multi-slot speculative hook of the shared serve loop (ink_backend.h); the R9700 and the Strix Halo each implement it.
bool supports_batched_dspark() const noexcept override {
if (r9700_ != nullptr) return r9700_v2() && r9700_->cfg.spec_opt && max_slots_ > 1;
// The default set runs the batched multi-slot drafter as 0.2.23 did (p620: without it the DFlash 2 default is 17% slower in steady C64 decode than base 8db8753d5); EXACT does not.
if (r9700_ != nullptr) return !r9700_->cfg.exact && r9700_->cfg.spec_opt && max_slots_ > 1;
return halo_ && halo_->cfg.c64_spec && !halo_->cfg.exact_mode && has_dspark_;
}
@@ -843,21 +844,32 @@ public:
// - 1..4 slots: the big chunk (8192 at one slot, 2048 at 2..4: prompts read 1.74x faster than 0.2.23), unless the VRAM guard below (after the load) says the card is too full.
const bool r9700_default_set = !r9700_->cfg.exact && !r9700_->cfg.v2;
const bool r9700_chunk_explicit = r9700::detail::env_set("STRATA_INK_R9700_CHUNK");
// Candidate rows (the on-GPU top-128 rows): the same slot split as the chunk rule (owner 2026-11-30, p620). Off at 1..4 slots, where they cost 1.6% of DFlash 2 decode against base
// with identical tokens; on above 4 slots, where they are worth 7 to 9% at C64 (the fast kernel set and EXACT keep them on). STRATA_INK_R9700_CAND written out always wins.
if (!r9700_->cfg.exact && !r9700_->cfg.fast_kernels) {
if (r9700::detail::env_set("STRATA_INK_R9700_CAND")) r9700_cand_note_ = std::string("candidate rows ") + (r9700_->cfg.cand_rows ? "on" : "off") + " (STRATA_INK_R9700_CAND written out)";
else {
r9700_->cfg.cand_rows = r9700_->cfg.v2 || opts.parallel > 4; // v2: a fast switch set by hand keeps them on, as before
r9700_cand_note_ = std::string("candidate rows ") + (r9700_->cfg.cand_rows ? "on" : "off") + (opts.parallel > 4 ? " (more than 4 slots)" : " (1 to 4 slots)");
}
} else {
r9700_cand_note_ = std::string("candidate rows ") + (r9700_->cfg.cand_rows ? "on" : "off") + (r9700_->cfg.exact ? " (EXACT)" : " (fast kernel set)");
}
if (r9700_default_set && rcfg.prefill_chunk > 0) {
if (r9700_chunk_explicit) {
r9700_->cfg.prefill_chunk = rcfg.prefill_chunk;
guard_.max_prefill_chunk = std::max(guard_.max_prefill_chunk, rcfg.prefill_chunk);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step: STRATA_INK_R9700_CHUNK written out wins over the default rule\n", rcfg.prefill_chunk);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step: STRATA_INK_R9700_CHUNK written out wins over the default rule; %s\n", rcfg.prefill_chunk, r9700_cand_note_.c_str());
} else if (opts.parallel > 4) {
r9700_->cfg.prefill_chunk = std::min(rcfg.prefill_chunk, 512);
guard_.max_prefill_chunk = std::min(guard_.max_prefill_chunk, 512);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk 512 per step (default rule: more than 4 parallel slots, as 0.2.23; STRATA_INK_R9700_CHUNK=N written out or --fast-kernels changes it)\n");
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk 512 per step (default rule: more than 4 parallel slots, as 0.2.23; STRATA_INK_R9700_CHUNK=N written out or --fast-kernels changes it); %s\n", r9700_cand_note_.c_str());
} else {
const int big = (opts.parallel > 1) ? std::min(rcfg.prefill_chunk, 2048) : rcfg.prefill_chunk;
r9700_->cfg.prefill_chunk = big;
guard_.max_prefill_chunk = std::max(guard_.max_prefill_chunk, big);
if (big > 512) r9700_chunk_pending_ = big; // the VRAM guard decides after the load, where the free VRAM is known; it logs the mode
else std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule)\n", big);
else std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule); %s\n", big, r9700_cand_note_.c_str());
}
} else if (opts.parallel >= 16) {
if (r9700_->cfg.exact || !r9700_->cfg.v2) { // EXACT: 512 per step at 16+ users, as in 0.2.23
@@ -2307,18 +2319,18 @@ public:
if (free_gib < need_gib) {
r9700_->cfg.prefill_chunk = 512;
guard_.max_prefill_chunk = std::min(guard_.max_prefill_chunk, 512);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk 512 per step (VRAM guard: %.2f GiB free after start-up, the chunk of %d needs %.2f GiB; STRATA_INK_R9700_CHUNK=N written out overrides)\n",
free_gib, big, need_gib);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk 512 per step (VRAM guard: %.2f GiB free after start-up, the chunk of %d needs %.2f GiB; STRATA_INK_R9700_CHUNK=N written out overrides); %s\n",
free_gib, big, need_gib, r9700_cand_note_.c_str());
} else {
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule: %d parallel slot%s, %.2f GiB free after start-up, needs %.2f GiB)\n",
big, opts.parallel, opts.parallel == 1 ? "" : "s", free_gib, need_gib);
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule: %d parallel slot%s, %.2f GiB free after start-up, needs %.2f GiB); %s\n",
big, opts.parallel, opts.parallel == 1 ? "" : "s", free_gib, need_gib, r9700_cand_note_.c_str());
}
}
}
}
if (r9700_ && r9700_chunk_pending_ > 0) { // free VRAM could not be read: keep the big chunk, say so
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule: %d parallel slot%s, free VRAM not readable)\n",
r9700_chunk_pending_, opts.parallel, opts.parallel == 1 ? "" : "s");
std::fprintf(stderr, "[ink-hip] R9700 prefill chunk %d per step (default rule: %d parallel slot%s, free VRAM not readable); %s\n",
r9700_chunk_pending_, opts.parallel, opts.parallel == 1 ? "" : "s", r9700_cand_note_.c_str());
r9700_chunk_pending_ = 0;
}
const bool is_fp8 = (default_kv_dtype_ == KvDtype::FP8_E4M3);
@@ -6390,7 +6402,7 @@ public:
const int* slots, const int32_t* anchor_toks, const int* anchor_pos, const int* max_emit,
int n_slots, int32_t* out_emitted, int* out_n_emit, int* out_drafted,
int max_stride, std::string& err) {
if (!r9700_v2() || !r9700_->cfg.spec_opt || n_slots < 2 || max_stride < 2) return 0;
if (r9700_->cfg.exact || !r9700_->cfg.spec_opt || n_slots < 2 || max_stride < 2) return 0;
if (r9700_->bspec_cool_rem > 0) {
--r9700_->bspec_cool_rem;
return 0;
@@ -14591,6 +14603,7 @@ private:
uint64_t tctx_graph_gen_[9]{};
int tctx_graph_B_[9]{};
std::unique_ptr<r9700::R9700State> r9700_;
std::string r9700_cand_note_; // the start-up note on the candidate rows, printed with the chunk line
int r9700_chunk_pending_ = 0; // default-set big prefill chunk waiting for the VRAM guard after the load (0: decided)
std::unique_ptr<StrixHaloState> halo_;
};
@@ -1,7 +1,7 @@
// engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp
// Configuration & strict per-ordinal hardware gate for AMD Radeon AI PRO R9700 32GB (gfx1201).
// The master switch STRATA_INK_R9700 is ON by default (kDefaultOn = true): a verified R9700 then runs the 0.2.23 set (FP8 prompt rows, fused RelPos attention, chunk 8192 at 1..4 slots and
// 512 above that (with a VRAM guard), the shipped DFlash 2 and MoE kernels, no candidate rows). The fast kernel set (Q8 trunk, GQA4 attention, K-coalesced MoE, Q4 unembed screen, DFlash 2 fast path, CODA_SF4, chunk 16384) is opt-in:
// 512 above that (with a VRAM guard), the shipped DFlash 2 and MoE kernels, candidate rows only above 4 slots). The fast kernel set (Q8 trunk, GQA4 attention, K-coalesced MoE, Q4 unembed screen, DFlash 2 fast path, CODA_SF4, chunk 16384) is opt-in:
// --fast-kernels, STRATA_INK_FAST_KERNELS=1, or STRATA_INK_R9700=1 written out (the older name); answers differ slightly. STRATA_INK_R9700=0 turns every R9700 kernel off
// (zero HIP calls, zero behavior change), STRATA_INK_R9700_EXACT=1 is the lossless form. Every other card refuses silently. Each sub-switch has its own default, written in
// resolve_config(): the second argument of parse_env_truthy is true (on by default), false (opt-in) or F (on in the fast kernel set only). "FAST only" on a field below
@@ -76,7 +76,7 @@ inline int parse_env_int(const char* name, int default_val) noexcept {
// for the exact form. What the DEFAULT set contains (the 0.2.23 set): the FP8 trunk and FP8 MoE for prompt rows only (the layers the drafter taps and the drafter's window before the prompt's
// end stay exact; STRATA_INK_R9700_FP8_TAIL defaults to 2304), the fused RelPos attention, prefill chunk 8192 at one slot, 2048 at 2..4, and 512 per step at 5 and more (the backend's rule, which
// also drops the big chunk to 512 when the free VRAM after start-up is under its extra scratch plus 2 GiB; a written-out STRATA_INK_R9700_CHUNK always wins), exact verify rows for
// the drafter, no on-GPU candidate rows (CAND: opt-in here, on in the fast set). Everything else (FIXED_SWA, NT_MALL, ASYNC_CKPT, FP8 decode rows) is opt-in. The FAST KERNEL SET (--fast-kernels, STRATA_INK_FAST_KERNELS=1, STRATA_INK_R9700=1) adds Q8_TRUNK, GQA4,
// the drafter, on-GPU candidate rows only above 4 slots (CAND: off at 1..4 slots, on above and in the fast set; the backend sets it). Everything else (FIXED_SWA, NT_MALL, ASYNC_CKPT, FP8 decode rows) is opt-in. The FAST KERNEL SET (--fast-kernels, STRATA_INK_FAST_KERNELS=1, STRATA_INK_R9700=1) adds Q8_TRUNK, GQA4,
// KCOAL_MOE, Q4_SCREEN, DF2_FAST and CODA_SF4 (each of them can also be switched on by hand), prefill chunk 16384 (2048 at 2 and more users; STRATA_INK_R9700_CHUNK set explicitly is honored up to
// 16384) and FP8_TAIL 0 (the drafter's tap window then reads FP8 prompt rows too). STRATA_INK_R9700_FP8_TRUNK does nothing while the Q8 trunk is built (its BF16 weights are freed).
inline constexpr bool kDefaultOn = true;
@@ -184,8 +184,9 @@ inline Config resolve_config(int dev, bool ep2_active, int peer_dev) noexcept {
// so it changes tokens. Off in EXACT (measured on p620: EXACT with it differs from off on 3 of 4 prompts, without it on 0 of 4); STRATA_INK_R9700_ASYNC_CKPT=1 forces it.
// With DFlash 2 it also changed code/prose tokens and lowered code decode by 12% (only-X matrix): off in both modes, STRATA_INK_R9700_ASYNC_CKPT=1 still enables it.
cfg.async_ckpt = detail::parse_env_truthy("STRATA_INK_R9700_ASYNC_CKPT", false);
// On-GPU top-128 candidate rows: ON in the fast kernel set (and in EXACT, unchanged), OFF in the 0.2.23 default set. Measured on p620 (DFlash 2, prompts_many, 3 rounds): with it the default set
// decodes 1.6% slower than base 8db8753d5, and the tokens are the same with it on and off (36 of 36). STRATA_INK_R9700_CAND=1 turns it on by hand.
// On-GPU top-128 candidate rows: ON in the fast kernel set (and in EXACT, unchanged). In the 0.2.23 default set the backend decides by the slot count (off at 1..4 slots, on above 4):
// measured on p620, with them the default set decodes 1.6% slower than base 8db8753d5 at one slot (DFlash 2, prompts_many, tokens the same on and off, 36 of 36), and without them it is
// 7 to 9% slower at C64. STRATA_INK_R9700_CAND=1 / 0 written out always wins.
cfg.cand_rows = detail::parse_env_truthy("STRATA_INK_R9700_CAND", F || cfg.exact);
// Lossy features (STRICTLY OFF in EXACT mode, ON by default in FAST mode unless sub-switch=0):
+112 -106
View File
@@ -14488,7 +14488,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 978,
"line": 990,
"backend": "hip",
"fn": "getenv"
}
@@ -14521,7 +14521,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 985,
"line": 997,
"backend": "hip",
"fn": "getenv"
}
@@ -14818,31 +14818,31 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 8585,
"line": 8597,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 8787,
"line": 8799,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 9692,
"line": 9704,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 11782,
"line": 11794,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 12217,
"line": 12229,
"backend": "hip",
"fn": "getenv"
}
@@ -14875,13 +14875,13 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3618,
"line": 3630,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3618,
"line": 3630,
"backend": "hip",
"fn": "getenv"
}
@@ -15059,13 +15059,13 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 917,
"line": 929,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 917,
"line": 929,
"backend": "hip",
"fn": "getenv"
}
@@ -15138,7 +15138,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 991,
"line": 1003,
"backend": "hip",
"fn": "getenv"
}
@@ -15171,25 +15171,25 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3824,
"line": 3836,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3824,
"line": 3836,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 7757,
"line": 7769,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 7757,
"line": 7769,
"backend": "hip",
"fn": "getenv"
}
@@ -15524,49 +15524,49 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3825,
"line": 3837,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3825,
"line": 3837,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 5182,
"line": 5194,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 5182,
"line": 5194,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 11157,
"line": 11169,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 11157,
"line": 11169,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 12893,
"line": 12905,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 12893,
"line": 12905,
"backend": "hip",
"fn": "getenv"
}
@@ -17474,25 +17474,25 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3551,
"line": 3563,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3551,
"line": 3563,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4760,
"line": 4772,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4760,
"line": 4772,
"backend": "hip",
"fn": "getenv"
}
@@ -17565,7 +17565,7 @@
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 1725,
"line": 1737,
"backend": "hip",
"fn": "getenv"
}
@@ -17672,13 +17672,13 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3513,
"line": 3525,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 5070,
"line": 5082,
"backend": "hip",
"fn": "getenv"
}
@@ -17711,7 +17711,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 14426,
"line": 14438,
"backend": "hip",
"fn": "getenv"
}
@@ -17744,7 +17744,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 7879,
"line": 7891,
"backend": "hip",
"fn": "getenv"
}
@@ -17810,7 +17810,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3413,
"line": 3425,
"backend": "hip",
"fn": "getenv"
}
@@ -17850,13 +17850,13 @@
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3826,
"line": 3838,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3826,
"line": 3838,
"backend": "hip",
"fn": "getenv"
},
@@ -17901,7 +17901,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3410,
"line": 3422,
"backend": "hip",
"fn": "getenv"
}
@@ -18039,7 +18039,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 14427,
"line": 14439,
"backend": "hip",
"fn": "getenv"
}
@@ -18349,7 +18349,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 969,
"line": 981,
"backend": "hip",
"fn": "getenv"
}
@@ -18429,7 +18429,7 @@
"first_commit": "318ff6b8b0",
"first_date": "2026-11-30",
"since": null,
"last_commit": "1ec1a4124c",
"last_commit": "3d0668197c",
"last_date": "2026-11-30",
"status": "opt-in",
"owner": "owner-hip",
@@ -18458,13 +18458,13 @@
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 1685,
"line": 1697,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 1685,
"line": 1697,
"backend": "hip",
"fn": "getenv"
}
@@ -18603,7 +18603,7 @@
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 970,
"line": 982,
"backend": "hip",
"fn": "getenv"
}
@@ -20255,11 +20255,11 @@
"first_commit": "23aaa0fdc1",
"first_date": "2026-11-26",
"since": "v0.2.23",
"last_commit": "1ec1a4124c",
"last_commit": "3d0668197c",
"last_date": "2026-11-30",
"status": "opt-in",
"owner": "owner-hip",
"note": "Master switch of the HIP R9700 kernels (gfx1201, Radeon AI PRO R9700 32 GB; any other GPU refuses cleanly). Unset: the 0.2.23 set (FP8 prompt rows, fused RelPos attention, no candidate rows, prefill step 8192 for one slot, 2048 for 2 to 4, 512 for 5 and more or when free VRAM after start-up is short). =1 written out: the whole fast kernel set, the older name of STRATA_INK_FAST_KERNELS=1. =0: every R9700 kernel off.",
"note": "Master switch of the HIP R9700 kernels (gfx1201, Radeon AI PRO R9700 32 GB; any other GPU refuses cleanly). Unset: the 0.2.23 set (FP8 prompt rows, fused RelPos attention, candidate rows only above 4 slots, prefill step 8192 for one slot, 2048 for 2 to 4, 512 for 5 and more or when free VRAM after start-up is short). =1 written out: the whole fast kernel set, the older name of STRATA_INK_FAST_KERNELS=1. =0: every R9700 kernel off.",
"retire_after": "",
"retired_in": ""
},
@@ -20276,7 +20276,7 @@
"fn": "parse_env_truthy"
}
],
"parse": "flag",
"parse": "string",
"default_state": null,
"code_default": null,
"engine_sets": [],
@@ -20292,7 +20292,7 @@
"last_date": "2026-11-26",
"status": "opt-in",
"owner": "owner-hip",
"note": "On-GPU top-128 candidate rows of the HIP R9700 (gfx1201). Off in the default (0.2.23) set, where it cost 1.6 percent of DFlash 2 decode with identical tokens; on in the fast kernel set (--fast-kernels); =1 or =0 written out wins. The master switch also checks the real card and refuses cleanly on any other GPU.",
"note": "On-GPU top-128 candidate rows of the HIP R9700 (gfx1201). In the default (0.2.23) set it is off at 1 to 4 slots (it cost 1.6 percent of DFlash 2 decode with identical tokens) and on above 4 slots (it is worth 7 to 9 percent at 64 users); on in the fast kernel set (--fast-kernels); =1 or =0 written out always wins. The master switch also checks the real card and refuses cleanly on any other GPU.",
"retire_after": "",
"retired_in": ""
},
@@ -20304,7 +20304,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 6416,
"line": 6428,
"backend": "hip",
"fn": "getenv"
}
@@ -20337,7 +20337,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 6412,
"line": 6424,
"backend": "hip",
"fn": "getenv"
}
@@ -20370,7 +20370,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 233,
"line": 234,
"backend": "hip",
"fn": "parse_env_int"
}
@@ -20403,7 +20403,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 6420,
"line": 6432,
"backend": "hip",
"fn": "getenv"
}
@@ -20434,9 +20434,15 @@
"hip"
],
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 850,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 189,
"line": 190,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -20455,8 +20461,8 @@
"first_commit": "23aaa0fdc1",
"first_date": "2026-11-26",
"since": "v0.2.23",
"last_commit": "23aaa0fdc1",
"last_date": "2026-11-26",
"last_commit": "3d0668197c",
"last_date": "2026-11-30",
"status": "opt-in",
"owner": "owner-hip",
"note": "On-GPU top-128 candidate rows of the HIP R9700 (gfx1201). Off in the default (0.2.23) set, where it cost 1.6 percent of DFlash 2 decode with identical tokens; on in the fast kernel set (--fast-kernels); =1 or =0 written out wins. The master switch also checks the real card and refuses cleanly on any other GPU.",
@@ -20471,19 +20477,19 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 845,
"line": 846,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 870,
"line": 882,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 215,
"line": 216,
"backend": "hip",
"fn": "parse_env_int"
}
@@ -20502,7 +20508,7 @@
"first_commit": "23aaa0fdc1",
"first_date": "2026-11-26",
"since": "v0.2.23",
"last_commit": "1ec1a4124c",
"last_commit": "3d0668197c",
"last_date": "2026-11-30",
"status": "opt-in",
"owner": "owner-hip",
@@ -20518,7 +20524,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 210,
"line": 211,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -20551,7 +20557,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4735,
"line": 4747,
"backend": "hip",
"fn": "getenv"
}
@@ -20584,7 +20590,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 214,
"line": 215,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -20617,7 +20623,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4698,
"line": 4710,
"backend": "hip",
"fn": "getenv"
}
@@ -20650,7 +20656,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4702,
"line": 4714,
"backend": "hip",
"fn": "getenv"
}
@@ -20683,7 +20689,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4743,
"line": 4755,
"backend": "hip",
"fn": "getenv"
}
@@ -20716,7 +20722,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4795,
"line": 4807,
"backend": "hip",
"fn": "getenv"
}
@@ -20749,7 +20755,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4739,
"line": 4751,
"backend": "hip",
"fn": "getenv"
}
@@ -20782,7 +20788,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 4791,
"line": 4803,
"backend": "hip",
"fn": "getenv"
}
@@ -20850,19 +20856,19 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 223,
"line": 224,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 225,
"line": 226,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 225,
"line": 226,
"backend": "hip",
"fn": "parse_env_int"
}
@@ -20895,19 +20901,19 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 195,
"line": 196,
"backend": "hip",
"fn": "parse_env_truthy"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 228,
"line": 229,
"backend": "hip",
"fn": "env_set"
},
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 228,
"line": 229,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -20973,7 +20979,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 199,
"line": 200,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21006,7 +21012,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 197,
"line": 198,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21039,7 +21045,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3453,
"line": 3465,
"backend": "hip",
"fn": "getenv"
}
@@ -21056,7 +21062,7 @@
"first_commit": "8999231052",
"first_date": "2026-11-27",
"since": "v0.2.23",
"last_commit": "1ec1a4124c",
"last_commit": "3d0668197c",
"last_date": "2026-11-30",
"status": "opt-in",
"owner": "owner-hip",
@@ -21072,13 +21078,13 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 14212,
"line": 14224,
"backend": "hip",
"fn": "getenv"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 14218,
"line": 14230,
"backend": "hip",
"fn": "getenv"
}
@@ -21111,7 +21117,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 196,
"line": 197,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21144,7 +21150,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 8788,
"line": 8800,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21177,7 +21183,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 200,
"line": 201,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21210,7 +21216,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 211,
"line": 212,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21243,7 +21249,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 7764,
"line": 7776,
"backend": "hip",
"fn": "parse_env_int"
}
@@ -21276,7 +21282,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 2481,
"line": 2493,
"backend": "hip",
"fn": "getenv"
}
@@ -21309,7 +21315,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 212,
"line": 213,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21342,7 +21348,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 206,
"line": 207,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21408,7 +21414,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 3823,
"line": 3835,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21441,7 +21447,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 209,
"line": 210,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21474,7 +21480,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 208,
"line": 209,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21507,7 +21513,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 213,
"line": 214,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21540,7 +21546,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 203,
"line": 204,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21573,7 +21579,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 204,
"line": 205,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21606,7 +21612,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 1382,
"line": 1394,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21639,7 +21645,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 202,
"line": 203,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21672,7 +21678,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 201,
"line": 202,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21705,7 +21711,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 207,
"line": 208,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21771,7 +21777,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 11192,
"line": 11204,
"backend": "hip",
"fn": "parse_env_int"
}
@@ -21804,7 +21810,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 198,
"line": 199,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21837,7 +21843,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 9693,
"line": 9705,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21870,7 +21876,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_r9700_cfg.hpp",
"line": 205,
"line": 206,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -21903,13 +21909,13 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 9694,
"line": 9706,
"backend": "hip",
"fn": "parse_env_truthy"
},
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 12218,
"line": 12230,
"backend": "hip",
"fn": "parse_env_truthy"
}
@@ -23819,7 +23825,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 14202,
"line": 14214,
"backend": "hip",
"fn": "getenv"
}
@@ -24089,7 +24095,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 946,
"line": 958,
"backend": "hip",
"fn": "getenv"
}
@@ -24182,7 +24188,7 @@
"reads": [
{
"file": "engine/src/inkling2/hip/ink_hip_backend.hip.cpp",
"line": 694,
"line": 695,
"backend": "hip",
"fn": "getenv"
}