mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 21:19:48 +00:00
Test new provider name
This commit is contained in:
parent
377896a4c5
commit
1481a67365
2 changed files with 32 additions and 6 deletions
|
|
@ -36,6 +36,8 @@ class MetaReferenceInferenceImpl(Inference, ModelRegistryHelper, ModelsProtocolP
|
|||
def __init__(self, config: MetaReferenceInferenceConfig) -> None:
|
||||
self.config = config
|
||||
model = resolve_model(config.model)
|
||||
if model is None:
|
||||
raise RuntimeError(f"Unknown model: {config.model}, Run `llama model list`")
|
||||
ModelRegistryHelper.__init__(
|
||||
self,
|
||||
[
|
||||
|
|
@ -45,8 +47,6 @@ class MetaReferenceInferenceImpl(Inference, ModelRegistryHelper, ModelsProtocolP
|
|||
)
|
||||
],
|
||||
)
|
||||
if model is None:
|
||||
raise RuntimeError(f"Unknown model: {config.model}, Run `llama model list`")
|
||||
self.model = model
|
||||
# verify that the checkpoint actually is for this model lol
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue