HIP layer split: the route tail skip's default stays off from 70% of the experts cached (90% elsewhere); 2x R9700 16 GB-eq Q2_0 story -6.1% with it at 73%
This commit is contained in:
1 parent
a5f82ab77d
commit
46d22108ec
2 files changed
+9
-3
No files matched your search
@@ -8184,9 +8184,15 @@ int main(int argc, char** argv) {
|
||||
// misses are cheap and the skip costs more draft acceptance (70.1% -> 68.2%) than it saves: -1..2% decode. No default then.
|
||||
size_t cached_experts = 0;
|
||||
for (int32_t r : host_res) cached_experts += r >= 0 ? 1 : 0;
|
||||
// (STRATA_TAIL_SKIP_MAX_CACHED=<percent>, default 90, moves the line; 101 = never)
|
||||
// (STRATA_TAIL_SKIP_MAX_CACHED=<percent>, default 90, moves the line; 101 = never). 0.1.43: 70 on a HIP layer split, where
|
||||
// 2x R9700 at 16 GB-eq with Q2_0 (73% cached) lost 6.1% story decode with the skip and 2x IQ3_S (45%) gained 7-10%.
|
||||
#if defined(STRATA_USE_HIP)
|
||||
const double max_cached_default = n_stages > 1 ? 0.70 : 0.90;
|
||||
#else
|
||||
const double max_cached_default = 0.90;
|
||||
#endif
|
||||
const char* mcs = std::getenv("STRATA_TAIL_SKIP_MAX_CACHED");
|
||||
const double max_cached = mcs != nullptr && mcs[0] != 0 ? std::atof(mcs) / 100.0 : 0.90;
|
||||
const double max_cached = mcs != nullptr && mcs[0] != 0 ? std::atof(mcs) / 100.0 : max_cached_default;
|
||||
const bool nearly_all_cached = !host_res.empty() && !all_experts_resident &&
|
||||
(double) cached_experts >= max_cached * (double) host_res.size();
|
||||
const bool tail_default_ok = tse == nullptr && !all_experts_resident && !nearly_all_cached && o.batch == 0 &&
|
||||
|
||||
Reference in new issue
Block a user