| #!/bin/bash |
| # Copyright (c) Meta Platforms, Inc. and affiliates. |
| # All rights reserved. |
| # |
| # This source code is licensed under the BSD-style license found in the |
| # LICENSE file in the root directory of this source tree. |
| |
| # Install snakeviz for cProfile flamegraph |
| # Install sentencepiece for llama tokenizer |
| pip install snakeviz sentencepiece |
| |
| # Install torchao. |
| pip install "$(dirname "$0")/../../../third-party/ao" |
| |
| # Install lm-eval for Model Evaluation with lm-evalution-harness |
| # Install tiktoken for tokenizer |
| pip install lm_eval==0.4.5 |
| pip install tiktoken blobfile |
| # Restore numpy if >= 2.0 |
| pip install "numpy<2.0" |
| |
| # Call the install helper for further setup |
| python examples/models/llama/install_requirement_helper.py |