forked from jwest33/abliterator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (56 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
64 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "abliteration"
version = "1.0.0"
description = "Remove refusal behavior from language models using norm-preserving orthogonal projection"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
keywords = ["llm", "language-models", "abliteration", "refusal", "transformers"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"torch>=2.0.0",
"transformers>=4.30.0",
"tqdm>=4.65.0",
"psutil>=5.9.0",
"rich>=13.0.0",
"questionary>=2.0.0",
"click>=8.0.0",
"huggingface_hub>=0.20.0",
"safetensors>=0.4.0",
]
[project.scripts]
abliterate = "src.cli:cli"
feature-surgery = "src.feature_surgery_cli:main"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"black>=23.0.0",
"ruff>=0.1.0"
]
mistral = [
"mistral-common>=1.8.8",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["src*", "utils*"]
[tool.setuptools.package-data]
"*" = ["*.txt", "*.md"]
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312"]
[tool.ruff]
line-length = 120
target-version = "py310"