AI tools

FSM

The FSM can change from one state to another in response to some inputs; the change from one state to another is called a transition.

hugging face

download model

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# option 1 
brew install git-lfs
git lfs install
git clone https://huggingface.co/<model-id> # e.g: git clone git@hf.co:bigscience/bloom

# option 2: huggingface-cli is old command cli, hf command is newer
pip install huggingface_hub
or
# install hf
python3 -m pip install -i https://pypi.mirrors.ustc.edu.cn/simple "huggingface_hub[cli]"

# optional login
hf auth login
# or using an environment variable: hf auth login --token $HUGGINGFACE_TOKEN

# download, default download model path is ~/.cache/huggingface/hub/
hf download ByteDance-Seed/Seed-X-PPO-7B # --local-dir /path/to/custom/path

# Tells the CLI to completely ignore any existing cached files or previous partial downloads, forcing it to fetch the files freshly from the Hugging Face servers again.
--force-download

# safely deletes models
hf delete-cache

reference