mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 16:54:42 +00:00
address comment
This commit is contained in:
parent
75c881770a
commit
9e5b7d5c9e
2 changed files with 4 additions and 0 deletions
|
@ -16,5 +16,6 @@ async def get_provider_impl(
|
||||||
from .inference import MetaReferenceInferenceImpl
|
from .inference import MetaReferenceInferenceImpl
|
||||||
|
|
||||||
impl = MetaReferenceInferenceImpl(config)
|
impl = MetaReferenceInferenceImpl(config)
|
||||||
|
await impl.initialize()
|
||||||
|
|
||||||
return impl
|
return impl
|
||||||
|
|
|
@ -73,6 +73,9 @@ class MetaReferenceInferenceImpl(
|
||||||
self.model_id = None
|
self.model_id = None
|
||||||
self.llama_model = None
|
self.llama_model = None
|
||||||
|
|
||||||
|
async def initialize(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
async def load_model(self, model_id, llama_model) -> None:
|
async def load_model(self, model_id, llama_model) -> None:
|
||||||
log.info(f"Loading model `{model_id}`")
|
log.info(f"Loading model `{model_id}`")
|
||||||
if self.config.create_distributed_process_group:
|
if self.config.create_distributed_process_group:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue