Initial
This commit is contained in:
commit
1bfca20159
3 changed files with 75644 additions and 0 deletions
23
installnotes.bash
Normal file
23
installnotes.bash
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
conda init
|
||||
conda create --name prompt-guard python=3.12 -c conda-forge
|
||||
conda activate prompt-guard
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
rustup install 1.82
|
||||
rustup default 1.82
|
||||
|
||||
pip install fschat
|
||||
#cuda
|
||||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
||||
|
||||
#or cpu
|
||||
pip install torch --index-url https://download.pytorch.org/whl/cpu
|
||||
|
||||
pip install -U "huggingface_hub[cli]"
|
||||
# install transformers
|
||||
pip install transformers
|
||||
export RUSTFLAGS="-A invalid_reference_casting"
|
||||
pip install git+https://github.com/llm-attacks/llm-attacks
|
||||
|
||||
huggingface-cli login
|
||||
Loading…
Add table
Add a link
Reference in a new issue