mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
add DistributionConfig, fix a bug in model download
This commit is contained in:
parent
ade574a0ef
commit
9e1ca4eeb1
4 changed files with 35 additions and 39 deletions
|
@ -16,7 +16,6 @@ import httpx
|
|||
from termcolor import cprint
|
||||
|
||||
from llama_toolchain.cli.subcommand import Subcommand
|
||||
from llama_toolchain.common.config_dirs import DEFAULT_CHECKPOINT_DIR
|
||||
|
||||
|
||||
class Download(Subcommand):
|
||||
|
@ -109,9 +108,10 @@ safetensors files to avoid downloading duplicate weights.
|
|||
|
||||
def _meta_download(self, model: "Model", meta_url: str):
|
||||
from llama_models.sku_list import llama_meta_net_info
|
||||
|
||||
from llama_toolchain.common.model_utils import model_local_dir
|
||||
|
||||
output_dir = model_local_dir(model)
|
||||
output_dir = Path(model_local_dir(model))
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
|
||||
info = llama_meta_net_info(model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue