mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
update inference config to take model and not model_dir
This commit is contained in:
parent
08c3802f45
commit
039861f1c7
9 changed files with 400 additions and 101 deletions
8
llama_toolchain/common/model_utils.py
Normal file
8
llama_toolchain/common/model_utils.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import os
|
||||
from llama_models.datatypes import Model
|
||||
|
||||
from .config_dirs import DEFAULT_CHECKPOINT_DIR
|
||||
|
||||
|
||||
def model_local_dir(model: Model) -> str:
|
||||
return os.path.join(DEFAULT_CHECKPOINT_DIR, model.descriptor())
|
Loading…
Add table
Add a link
Reference in a new issue