fix: recover eligible model GPU routes

This commit is contained in:
CoolBoy
2026-09-20 10:47:22 +08:00
parent 3077b169c5
commit 75c034d588
13 changed files with 436 additions and 29 deletions

View File

@@ -859,6 +859,20 @@ class MarketIntelligenceManager:
)
return any(bool(item.get("officialConfigValid", False)) for item in rows.values())
def has_vetted_alternative_framework(
self, task_type: str, target_gpu: str, excluded_frameworks: set[str]
) -> bool:
rows = (
(((self.state or {}).get("frameworkStats") or {}).get(task_type) or {}).get(target_gpu)
or {}
)
return any(
framework not in excluded_frameworks
and bool(item.get("officialConfigValid", False))
and self._framework_evidence(task_type, target_gpu, framework)["qualified"]
for framework, item in rows.items()
)
def ensure_framework_route(self, client: Any, task_type: str, target_gpu: str) -> None:
if self.has_framework_route(task_type, target_gpu):
return