Safetensors
File size: 551 Bytes
d391c5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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