This script will download git-lfs and install it into a user home directory.
It also adjusts the path in .bashrc
to look for files in $HOME/.local/bin
. This will allow git to find the git-lfs plugin.
After restarting the terminal, git-lfs should be functional and git clone of datasets from huggingface will work as expected.
If you have already cloned the hugging face repo before installing git-lfs, you can run git lfs fetch
and it
should download the files using git-lfs.