Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

HIP: STRATA_HEAD_MIX_MULTI and STRATA_ONE_TOKEN_COMMIT as opt-ins (=1), default stays off (#1479)

Niko12213a55dfd253e0
diff --git a/src/core/mtp.cpp b/src/core/mtp.cpp
index 4edcea805..03bcdf5f4 100644
--- a/src/core/mtp.cpp
+++ b/src/core/mtp.cpp
@@ -857,7 +857,8 @@ bool MtpDrafter::record_rest(int step_row, cudaStream_t cs, std::string& err) {
}();
static const bool head_mix_multi_on = [] {
#if defined(STRATA_USE_HIP)
- return false;
+ const char* v = std::getenv("STRATA_HEAD_MIX_MULTI"); // HIP: opt-in (=1)
+ return v != nullptr && std::atoi(v) != 0;
#else
const char* v = std::getenv("STRATA_HEAD_MIX_MULTI");
return v == nullptr || std::atoi(v) != 0;
diff --git a/src/core/verify.cpp b/src/core/verify.cpp
index 8f70e0223..518cbc21b 100644
--- a/src/core/verify.cpp
+++ b/src/core/verify.cpp
@@ -190,7 +190,11 @@ bool sh_stream_on() {
// STRATA_HEAD_MIX_MULTI=0 does too): bitwise the same sums.
bool head_mix_multi_enabled() {
#if defined(STRATA_USE_HIP)
- return false;
+ static const bool on = [] {
+ const char* v = std::getenv("STRATA_HEAD_MIX_MULTI"); // HIP: opt-in (=1)
+ return v != nullptr && std::atoi(v) != 0;
+ }();
+ return on;
#else
static const bool on = [] {
const char* v = std::getenv("STRATA_HEAD_MIX_MULTI");
@@ -202,7 +206,11 @@ bool head_mix_multi_enabled() {
bool one_token_self_commit() {
#if defined(STRATA_USE_HIP)
- return false;
+ static const bool on = [] {
+ const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT"); // HIP: opt-in (=1)
+ return v != nullptr && std::atoi(v) != 0;
+ }();
+ return on;
#else
static const bool on = [] {
const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT");