-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
107 lines (98 loc) · 1.97 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
[project]
name = "rl"
version = "0.10.0"
authors = [
{ name = "Faiz Surani", email = "[email protected]" },
{ name = "Varun Magesh", email="[email protected]" }
]
description = "Utilities for various RegLab / Sherlock tasks"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.10"
dependencies = [
"click",
"rich",
"rich_click",
"tqdm",
"ipdb",
"requests",
"python-dotenv",
"StrEnum",
"pydantic>=2",
"typing-extensions",
]
[project.optional-dependencies]
segmenter = [
"unidecode",
"legal-segmenter @ git+https://github.com/lexeme-dev/legal-segmenter@main",
]
devsync = [
"watchdog",
]
sherlock = [
"pexpect",
"pyotp",
"pycryptodome",
"appdirs",
"questionary",
"paramiko",
]
local_llm = [
"rl[llm]",
"transformers>=4.43",
"torch",
"vllm~=0.5.3post1; platform_system == 'Linux'",
"peft",
"trl",
"datasets",
"wandb",
"huggingface_hub",
"pandas",
]
llm = [
"modal",
"anthropic",
"openai",
"google-generativeai",
]
spark = [
"pyspark",
]
plot = [
"matplotlib",
"pandas",
]
[project.urls]
homepage = "https://github.com/ProbablyFaiz/rl"
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project.scripts]
rl = "rl.cli.main:cli"
train_llm = "rl.llm.train_llm:main"
merge_lora = "rl.llm.merge_lora:main"
devsync = "rl.utils.dev_sync:main"
[tool.setuptools.packages]
find = {}
[tool.mypy]
disable_error_code = ["import", "override"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
extend-select = ["B", "E", "I", "N", "PTH", "COM", "C4", "UP"]
extend-ignore = ["COM812", "B027", "E501"]
[tool.uv]
dev-dependencies = [
"build",
"pygithub",
"pyinstaller",
"mypy",
"ruff",
"pre-commit",
"ipython>=8.26.0",
]