-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
115 lines (100 loc) · 2.73 KB
/
pyproject.toml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "lm-saes"
version = "0.1.0"
description = "For OpenMOSS Mechanistic Interpretability Team's Sparse Autoencoder (SAE) research. Open-sourced and constantly updated."
dependencies = [
"datasets>=3.0.2",
"transformers>=4.46.0",
"einops>=0.8.0",
"fastapi>=0.115.4",
"matplotlib>=3.9.2",
"numpy>=2.1.2",
"pandas>=2.2.3",
"pymongo>=4.10.1",
"tensorboardX>=2.6.2.2",
"torch>=2.5.0",
"tqdm>=4.66.5",
"transformer-lens",
"uvicorn>=0.32.0",
"wandb>=0.18.5",
"msgpack>=1.1.0",
"plotly>=5.24.1",
"openai>=1.52.2",
"tiktoken>=0.8.0",
"python-dotenv>=1.0.1",
"jaxtyping>=0.2.34",
"safetensors>=0.4.5",
"pydantic>=2.9.2",
"argparse>=1.4.0",
"pyyaml>=6.0.2",
"types-pyyaml>=6.0.12.20240917",
"tomlkit>=0.13.2",
"torchvision>=0.20.1",
]
requires-python = "==3.10.*"
readme = "README.md"
[[project.authors]]
name = "Xuyang Ge"
email = "[email protected]"
[[project.authors]]
name = "Zhengfu He"
email = "[email protected]"
[[project.authors]]
name = "Wentao Shu"
email = "[email protected]"
[[project.authors]]
name = "Fukang Zhu"
email = "[email protected]"
[[project.authors]]
name = "Lingjie Chen"
email = "[email protected]"
[[project.authors]]
name = "Junxuan Wang"
email = "[email protected]"
[project.license]
text = "MIT"
[project.scripts]
lm-saes = "lm_saes.entrypoint:entrypoint"
[dependency-groups]
dev = [
"transformer-lens",
"jupyter>=1.1.1",
"ipywidgets>=8.1.5",
"pytest>=8.3.3",
"ipykernel>=6.29.5",
"nbformat>=5.10.4",
"kaleido==0.2.1",
"pre-commit>=4.0.1",
"ruff>=0.7.1",
"basedpyright>=1.21.0",
"scikit-learn>=1.6.0",
"plotly>=5.24.1",
"pandas>=2.2.3",
]
[tool.ruff]
exclude = [".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".ipynb_checkpoints", ".mypy_cache", ".nox", ".pants.d", ".pyenv", ".pytest_cache", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", ".vscode", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "site-packages", "venv", "TransformerLens", "ui"]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
ignore = ["E741", "F722"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.pyright]
ignore = [".venv/", "examples", "TransformerLens", "tests", "exp"]
typeCheckingMode = "standard"
reportRedeclaration = false
[tool.uv]
package = true
[tool.uv.sources.transformer-lens]
path = "./TransformerLens"
editable = true