fix: recover eligible model GPU routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user