feat: offline selector (#1231)

* offline selector test
* fix score with tensor
* sort sota list

---------

Co-authored-by: Xu Yang <peteryang@vip.qq.com>
This commit is contained in:
Tim
2025-09-09 11:56:42 +08:00
committed by GitHub
parent fc18942339
commit d4c539912a
3 changed files with 793 additions and 145 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ class LocalEnv(Env[ASpecificLocalConf]):
volumes = {}
if self.conf.extra_volumes is not None:
for lp, rp in self.conf.extra_volumes.items():
volumes[lp] = rp
volumes[lp] = rp["bind"] if isinstance(rp, dict) else rp
cache_path = "/tmp/sample" if "/sample/" in "".join(self.conf.extra_volumes.keys()) else "/tmp/full"
Path(cache_path).mkdir(parents=True, exist_ok=True)
volumes[cache_path] = T("scenarios.data_science.share:scen.cache_path").r()