Offer runtime candidates across model categories and prepare audio.cpp with six build jobs
This commit is contained in:
1 parent
1dcd71b128
commit
d700c68394
17 files changed
+239
-21
No files matched your search
+34
-1
@@ -4,7 +4,7 @@ from stt import supported as stt_supported
|
||||
from profiles import image_recipe, video_recipe
|
||||
from tts_runtime import REPO, REVISION
|
||||
|
||||
def assess(model, installed, profile=None):
|
||||
def _assess(model, installed, profile=None):
|
||||
kind=model.get('kind'); filename=model.get('file',''); repo=model.get('repo','')
|
||||
meta=model.get('runtime_metadata') if isinstance(model.get('runtime_metadata'),dict) else {}
|
||||
architecture=meta.get('architecture') if isinstance(meta.get('architecture'),str) else None
|
||||
@@ -46,3 +46,36 @@ def assess(model, installed, profile=None):
|
||||
elif result['installed']:
|
||||
result.update(state='profile_incomplete',label='Profil prüfen – Voraussetzungen fehlen')
|
||||
return result
|
||||
|
||||
|
||||
def assess(model, installed, profile=None):
|
||||
result=_assess(model,installed,profile)
|
||||
result['candidates']=[]
|
||||
if result['state']=='component':return result
|
||||
kind=model.get('kind');repo=model.get('repo','').lower();name=model.get('file','').lower()
|
||||
meta=model.get('runtime_metadata') or {};family=str(meta.get('architecture') or '').lower()
|
||||
def add(id,label,key,route,reason,maintained=True):
|
||||
result['candidates'].append(dict(id=id,label=label,installed=bool(installed.get(key)),route=route,installation_available=maintained,evidence=reason))
|
||||
if result.get('runtime'):
|
||||
add('current',result['runtime'],kind,result['route'],'Vorhandene Deck-Zuordnung')
|
||||
if kind=='music' and repo=='audio-cpp/yue2-3b-gguf' and name.startswith('yue2-3b-') and name.endswith('.gguf'):
|
||||
result.update(family='YuE2',evidence='audio-cpp/Yue2-3B-GGUF · Hauptmodell',state='adapter_missing',label='YuE2 erkannt · Deck-Worker fehlt',message='Passende Laufzeit: audio.cpp. Sie kann einmalig heruntergeladen und gebaut werden. Zur Generierung fehlen noch der Deck-Musikworker und die Ladypoly-Anbindung. Installation allein schaltet dieses Modell nicht frei.',components=['YuE2-VAE GGUF','Modell-/Generierungskonfiguration, VAE-Konfiguration und Qwen-Tokenizer (sidecars)'])
|
||||
add('audio_cpp','audio.cpp','audio_cpp','#audio-cpp-runtime','Geprüfte GGUF-Quelle für die YuE2-Modellfamilie')
|
||||
elif kind=='music' and ('yue2' in repo or 'yue2' in family):
|
||||
result.update(family='YuE2',evidence='Repository-/Architekturhinweis; Ausführung ungeprüft')
|
||||
add('yue2','YuE2 Python / PyTorch','yue2',None,'Originale YuE2-Pipeline; Originalgewichte erforderlich',False)
|
||||
if kind in ('audio','stt','music','voice') and not result['candidates']:
|
||||
if 'audio-cpp/' in repo and name.endswith('.gguf'):
|
||||
add('audio_cpp','audio.cpp','audio_cpp','#audio-cpp-runtime','audio-cpp-Repository; konkrete Familie und Zusatzdateien noch prüfen')
|
||||
elif meta.get('library_name')=='transformers':
|
||||
add('transformers','Hugging Face Transformers / PyTorch','transformers',None,'Hub nennt Transformers; modellabhängiger Worker erforderlich',False)
|
||||
if kind=='video' and not result['candidates'] and meta.get('library_name')=='diffusers':
|
||||
add('diffusers','Diffusers / PyTorch','diffusers',None,'Hub nennt Diffusers; passende Video-Pipeline noch prüfen',False)
|
||||
if not result['candidates']:
|
||||
# Category-level options are explicit research hints, never compatibility claims.
|
||||
options={'chat':('llama.cpp','chat','#runtime'), 'image':('ComfyUI','image','#image-runtime'), 'video':('ComfyUI','image','#image-runtime'), 'audio':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'stt':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'music':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'voice':('audio.cpp','audio_cpp','#audio-cpp-runtime')}
|
||||
if kind in options:
|
||||
label,key,route=options[kind]
|
||||
add('category',label,key,route,'Option für diese Kategorie; Kompatibilität mit dieser unbekannten Modellfamilie NICHT bestätigt')
|
||||
result['candidate_message']='Keine passende Laufzeit zuverlässig ermittelt. Modellkarte und Architektur müssen geprüft werden; keine automatische Installation auf Verdacht.'
|
||||
return result
|
||||
Reference in new issue
Block a user