|
| 1 | +[project] |
| 2 | +name = "pyvene" |
| 3 | +version = "0.1.8" |
| 4 | +description = "Use Activation Intervention to Interpret Causal Mechanism of Model" |
| 5 | +readme = "README.md" |
| 6 | +authors = [ |
| 7 | + { name= "Zhengxuan Wu", email= "[email protected]" } |
| 8 | +] |
| 9 | +classifiers = [ |
| 10 | + "Development Status :: 3 - Alpha", |
| 11 | + "Intended Audience :: Science/Research", |
| 12 | + "License :: OSI Approved :: Apache Software License", |
| 13 | + "Operating System :: POSIX :: Linux", |
| 14 | + "Programming Language :: Python :: 3", |
| 15 | + "Programming Language :: Python :: 3.9", |
| 16 | +] |
| 17 | +license = { text = "Apache License 2.0" } |
| 18 | +requires-python = ">=3.9" |
| 19 | +dependencies = [ |
| 20 | + "torch>=2.0.0", |
| 21 | + "transformers>=4.55.0.dev0", |
| 22 | + "tokenizers>=0.20.0", |
| 23 | + "datasets>=3.0.1", |
| 24 | + "protobuf>=3.20.0", |
| 25 | + "matplotlib>=3.7.4", |
| 26 | + "ipywidgets>=8.1.1", |
| 27 | + "plotnine>=0.12.4", |
| 28 | + "huggingface-hub>=0.25.1", |
| 29 | + "numpy>1.24.4", |
| 30 | + "fsspec>=2023.6.0", |
| 31 | + "accelerate>=0.34.2", |
| 32 | + "sentencepiece>=0.2.0", |
| 33 | +] |
| 34 | + |
| 35 | +[dependency-groups] |
| 36 | +dev = [ |
| 37 | + "flake8>=7.1.1", |
| 38 | + "pytest>=8.3.4", |
| 39 | + "ipykernel>=6.29.5", |
| 40 | +] |
| 41 | + |
| 42 | +[project.urls] |
| 43 | +Documentation = "https://stanfordnlp.github.io/pyvene" |
| 44 | +Homepage = "https://github.com/stanfordnlp/pyvene" |
| 45 | +Repository = "https://github.com/stanfordnlp/pyvene.git" |
| 46 | + |
| 47 | +[build-system] |
| 48 | +requires = ["hatchling"] |
| 49 | +build-backend = "hatchling.build" |
| 50 | + |
| 51 | +[tool.hatch.build.targets.wheel] |
| 52 | +packages = ["pyvene"] |
| 53 | + |
| 54 | +[tool.hatch.build] |
| 55 | +include = [ |
| 56 | + "pyvene/**/*.py", |
| 57 | + "pyvene/**/*.json", |
| 58 | + "pyvene/**/*.yaml", |
| 59 | + "pyvene/**/*.yml", |
| 60 | + "pyvene/**/*.txt", |
| 61 | + "pyvene/**/*.md", |
| 62 | + "pyvene/**/*.ipynb", |
| 63 | +] |
| 64 | + |
| 65 | +[tool.pytest.ini_options] |
| 66 | +testpaths = ["tests"] |
| 67 | +python_files = ["test_*.py"] |
| 68 | +python_classes = ["*Test", "Test*"] |
| 69 | +python_functions = ["test_*"] |
| 70 | +addopts = "-v" |
| 71 | + |
| 72 | +[tool.flake8] |
| 73 | +max-line-length = 127 |
| 74 | +extend-ignore = ["E203"] |
| 75 | +exclude = [".git", "__pycache__", "build", "dist", "*.egg-info"] |
| 76 | +per-file-ignores = [ |
| 77 | + "__init__.py: F401" |
| 78 | +] |
0 commit comments