Safetensors
FLUX.1-dev-fp8-flumina / clone_weights.sh
jamesr66a's picture
Fluminato
d391c5d
raw
history blame contribute delete
551 Bytes
# Clone the repository without checking out all the files
git clone --no-checkout git@hf.co:black-forest-labs/FLUX.1-dev temp-repo
cd temp-repo
# Enable sparse-checkout
git sparse-checkout init --cone
# Specify only the files you want
git sparse-checkout set ae.safetensors flux1-dev.safetensors
# Checkout the specified files
git checkout
# Move the files to the original directory (parent directory)
mv ae.safetensors ../
mv flux1-dev.safetensors ../
# Go back to the original directory
cd ..
# Remove the temporary directory
rm -rf temp-repo