mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 08:09:47 +00:00
fixes after rebase
This commit is contained in:
parent
948f6ece6e
commit
919d421bcf
11 changed files with 72 additions and 70 deletions
|
|
@ -39,7 +39,7 @@ class MetaReferenceInferenceImpl(Inference, ModelRegistryHelper, ModelsProtocolP
|
|||
[
|
||||
build_model_alias(
|
||||
model.descriptor(),
|
||||
model.core_model_id,
|
||||
model.core_model_id.value,
|
||||
)
|
||||
],
|
||||
)
|
||||
|
|
@ -56,12 +56,6 @@ class MetaReferenceInferenceImpl(Inference, ModelRegistryHelper, ModelsProtocolP
|
|||
else:
|
||||
self.generator = Llama.build(self.config)
|
||||
|
||||
async def register_model(self, model: Model) -> None:
|
||||
if model.provider_resource_id != self.model.descriptor():
|
||||
raise ValueError(
|
||||
f"Model mismatch: {model.identifier} != {self.model.descriptor()}"
|
||||
)
|
||||
|
||||
async def shutdown(self) -> None:
|
||||
if self.config.create_distributed_process_group:
|
||||
self.generator.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue