Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions examples/models/llama/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
# 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
Expand Down
3 changes: 0 additions & 3 deletions examples/models/llama3_2_vision/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ NIGHTLY_VERSION="dev20241112"

# Install torchtune nightly for model definitions.
pip install --pre torchtune==0.4.0.${NIGHTLY_VERSION} --extra-index-url https://download.pytorch.org/whl/nightly/cpu --no-cache-dir

# Install torchao.
pip install "$(dirname "$0")/../../../third-party/ao"
3 changes: 0 additions & 3 deletions examples/models/phi-3-mini-lora/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@
pip install torchvision
pip install torchtune
pip install tiktoken

# Install torchao.
pip install "$(dirname "$0")/../../../third-party/ao"
17 changes: 17 additions & 0 deletions install_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,23 @@ def python_is_compatible():
check=True,
)

LOCAL_REQUIREMENTS = [
"third-party/ao", # We need the latest kernels for fast iteration, so not relying on pypi.
]

# Install packages directly from local copy instead of pypi.
# This is usually not recommended.
subprocess.run(
[
sys.executable,
"-m",
"pip",
"install",
*LOCAL_REQUIREMENTS,
],
check=True,
)

#
# Install executorch pip package. This also makes `flatc` available on the path.
# The --extra-index-url may be necessary if pyproject.toml has a dependency on a
Expand Down
Loading