Fix rotary compatibility edge cases and document Qwen qualification

This commit is contained in:
hazyumps authored and StillDeadcode committed 2026-10-07 11:09:27 +02:00
1 parent 59d36ae928
commit 6fd7421f79
7 files changed
+306 -6

No files matched your search

+3 -1
View File
@@ -1068,7 +1068,9 @@ inline int yarn_from(Geom& g, const RadModelMeta* meta, const char* prefix, int6
if (!std::strcmp(type, "linear")) {
const double factor = get("factor", 0.0);
if (!std::isfinite(factor) || factor <= 0.0) return RAD_E_INVAL;
g.rope_scale = (float)factor;
const float scale = (float)factor;
if (!std::isfinite(scale) || scale <= 0.0f) return RAD_E_INVAL;
g.rope_scale = scale;
return RAD_OK;
}
if (std::strcmp(type, "yarn")) {