[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:
13 files changed
+1677
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user