Elffuss BraidHub

kikocis/llama-stack public

fix cli describe
Changeset97c937a181e728231cf4790185e2b818ba9bb1cae48f3790a7cbeaf51ea10680
AuthorXi Yan <xiyan@meta.com> · 2024-09-24 14:41 -07:00
CommitterXi Yan <xiyan@meta.com> · 2024-09-24 14:41 -07:00
Parentsc6107547cd52

Browse the files at this changeset

1 file changed

modified llama_stack/cli/model/describe.py +3 −3
@@ -9,12 +9,12 @@
99
1010 from llama_models.sku_list import resolve_model
1111
12-from termcolor import colored
13-
1412 from llama_stack.cli.subcommand import Subcommand
1513 from llama_stack.cli.table import print_table
1614 from llama_stack.distribution.utils.serialize import EnumEncoder
1715
16+from termcolor import colored
17+
1818
1919 class ModelDescribe(Subcommand):
2020 """Show details about a model"""
@@ -52,7 +52,7 @@
5252 colored(model.descriptor(), "white", attrs=["bold"]),
5353 ),
5454 ("HuggingFace ID", model.huggingface_repo or "<Not Available>"),
55- ("Description", model.description_markdown),
55+ ("Description", model.description),
5656 ("Context Length", f"{model.max_seq_length // 1024}K tokens"),
5757 ("Weights format", model.quantization_format.value),
5858 ("Model params.json", json.dumps(model.arch_args, indent=4)),