Skip to content

Commit

Permalink
safetensors from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 26, 2025
1 parent 1bcf275 commit de35371
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/test_accelerate_gaudi2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,6 @@ jobs:
run: |
pip install -e .[testing] git+https://github.com/HabanaAI/DeepSpeed.git@1.19.0
# Remove when safetensors is released
- name: Install Rust and build Safetensors
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup update
git clone https://github.com/huggingface/safetensors
cd safetensors
pip install setuptools_rust
git checkout fa833511664338bfc927fc02653ddb7d38d40be9
pip install -e bindings/python
cd ..
# move to the end of the file
- name: Run Examples tests
run: |
make test_examples
- name: Run CLI tests
run: |
make test_cli
Expand All @@ -80,3 +62,7 @@ jobs:
- name: Run DeepSpeed integration tests
run: |
make test_deepspeed
- name: Run Examples tests
run: |
make test_examples
17 changes: 6 additions & 11 deletions tests/ci/accelerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ hl-smi
echo "HABANA_VISIBLE_DEVICES=${HABANA_VISIBLE_DEVICES}"
echo "HABANA_VISIBLE_MODULES=${HABANA_VISIBLE_MODULES}"

# Install Rust and build Safetensors
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup update
git clone https://github.com/huggingface/safetensors
cd safetensors
pip install setuptools_rust
git checkout fa833511664338bfc927fc02653ddb7d38d40be9
pip install -e bindings/python
cd ..

# Install Accelerate and DeepSpeed
git clone https://github.com/huggingface/accelerate.git
cd accelerate
Expand Down Expand Up @@ -60,3 +49,9 @@ make test_deepspeed
if [ $? -ne 0 ]; then
exit 1
fi

echo "Running Examples tests"
make test_examples
if [ $? -ne 0 ]; then
exit 1
fi

0 comments on commit de35371

Please sign in to comment.