llama-stack/llama_stack/cli
Ashwin Bharambe acbecbf8b3
Add a verify-download command to llama CLI (#457)
# What does this PR do?

It is important to verify large checkpoints downloaded via `llama model
download` because subtle corruptions can easily happen with large file
system writes. This PR adds a `verify-download` subcommand. Note that
verification itself is a very time consuming process (and will take
several **minutes** for the 405B model), hence this is a separate
subcommand (and not part of the download which can already be
time-consuming) and there are spinners and a bit of a "show" around it
in the implementation.

## Test Plan

<img width="1012" alt="image"
src="https://github.com/user-attachments/assets/f82b0d42-2a15-4917-b85e-6d3cd7d31e55">
2024-11-14 11:47:51 -08:00
..
model Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00
scripts API Updates (#73) 2024-09-17 19:51:35 -07:00
stack Fix build configure deprecation message (#456) 2024-11-14 09:56:03 -08:00
tests Rename all inline providers with an inline:: prefix (#423) 2024-11-11 22:19:16 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
download.py Support parallel downloads for llama model download (#448) 2024-11-14 09:56:22 -08:00
llama.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00
subcommand.py API Updates (#73) 2024-09-17 19:51:35 -07:00
table.py API Updates (#73) 2024-09-17 19:51:35 -07:00
verify_download.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00