[Feat] Support MagCache (#1287)

Signed-off-by: Lancer <maruixiang6688@gmail.com>
Co-authored-by: 汪志鹏 <wangzhipeng628@gmail.com>
Co-authored-by: Gao Han <hgaoaf@connect.ust.hk>
This commit is contained in:
authored and GitHub committed 2026-05-29 22:26:23 +08:00
1 parent eba5617c95
commit b690a10e3a
13 files changed
+1677 -11

No files matched your search

+6
View File
@@ -1784,6 +1784,12 @@ class AsyncOmniEngine:
return {
"rel_l1_thresh": 0.2,
}
if cache_backend == "mag_cache":
return {
"mag_threshold": 0.24,
"mag_max_skip_steps": 5,
"mag_retention_ratio": 0.1,
}
return None
@staticmethod