mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Add llama model download
alias for llama download
This commit is contained in:
parent
fddaf5c929
commit
57402c1a19
3 changed files with 65 additions and 45 deletions
|
@ -5,9 +5,9 @@
|
|||
# the root directory of this source tree.
|
||||
|
||||
import argparse
|
||||
import textwrap
|
||||
|
||||
from llama_toolchain.cli.model.describe import ModelDescribe
|
||||
from llama_toolchain.cli.model.download import ModelDownload
|
||||
from llama_toolchain.cli.model.list import ModelList
|
||||
from llama_toolchain.cli.model.template import ModelTemplate
|
||||
|
||||
|
@ -22,18 +22,13 @@ class ModelParser(Subcommand):
|
|||
self.parser = subparsers.add_parser(
|
||||
"model",
|
||||
prog="llama model",
|
||||
description="Describe llama model interfaces",
|
||||
epilog=textwrap.dedent(
|
||||
"""
|
||||
Example:
|
||||
llama model <subcommand> <options>
|
||||
"""
|
||||
),
|
||||
description="Work with llama models",
|
||||
)
|
||||
|
||||
subparsers = self.parser.add_subparsers(title="model_subcommands")
|
||||
|
||||
# Add sub-commandsa
|
||||
ModelTemplate.create(subparsers)
|
||||
# Add sub-commands
|
||||
ModelDownload.create(subparsers)
|
||||
ModelList.create(subparsers)
|
||||
ModelTemplate.create(subparsers)
|
||||
ModelDescribe.create(subparsers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue