Remove anaconda dependency

This commit is contained in:
Joey Yakimowich-Payne 2025-05-14 08:45:45 -06:00
commit 40f4c92bf4
3 changed files with 33 additions and 9 deletions

1
.python-version Normal file
View file

@ -0,0 +1 @@
3.12

View file

@ -1,17 +1,16 @@
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
conda init
conda create --name prompt-guard python=3.12 -c conda-forge
conda activate prompt-guard
uv venv --python 3.12.0
#cuda
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
#or cpu
pip install torch --index-url https://download.pytorch.org/whl/cpu
uv pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -U "huggingface_hub[cli]"
# install transformers
pip install -U transformers
pip install -U tiktoken
uv pip install -U "huggingface_hub[cli]" transformers tiktoken
huggingface-cli login

View file

@ -1,4 +1,28 @@
words4 = [
"animalética", # Likely Spanish/Portuguese "animalética" (animal ethics)
"Description", # English
"precunion", # Potentially English, though less common. Could be a neologism.
"ref", # English (common abbreviation for reference)
"Speaker", # English
"Keywords", # English
"correction", # English
"better", # English
"许 可证号" # Chinese (許可證號 - license number)
"previous",
"code",
"electro",
"voltage",
"back",
"subject",
"requirements",
"reach",
"project",
"telephone",
"ión",
"alisations",
"movies",
"better",
"recommend"
"ocular",
"spell",
"License",