This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
forked from dottxt-ai/outlines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (141 loc) · 2.99 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "outlines"
authors= [{name = "Outlines Developers"}]
description = "Probabilistic Generative Model Programming"
requires-python = ">=3.8"
keywords=[
"machine learning",
"deep learning",
"language models",
"structured generation",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"interegular",
"jinja2",
"lark",
"nest_asyncio",
"numpy",
"cloudpickle",
"diskcache",
"pydantic>=2.0",
"scipy",
"torch>=2.1.0",
"numba",
"joblib",
"referencing",
"jsonschema",
"requests",
"transformers",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pre-commit",
"pytest",
"pytest-benchmark",
"pytest-cov",
"pytest-mock",
"transformers",
"coverage[toml]>=5.1",
"diff-cover",
"accelerate",
"beartype<0.16.0",
"datasets",
"responses",
"llama-cpp-python>=0.2.42",
"huggingface_hub"
]
serve = [
"vllm>=0.3.0",
"ray==2.9.0",
"uvicorn",
"fastapi",
"pydantic>=2.0",
]
[project.urls]
homepage = "https://github.com/outlines-dev/outlines"
documentation = "https://outlines-dev.github.io/outlines/"
repository = "https://github.com/outlines-dev/outlines"
[project.readme]
file="README.md"
content-type = "text/markdown"
[tool.setuptools]
packages = ["outlines"]
[tool.setuptools.package-data]
"outlines" = ["py.typed"]
[tool.setuptools_scm]
write_to = "outlines/_version.py"
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"error",
"ignore::numba.core.errors.NumbaPendingDeprecationWarning",
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
"ignore::FutureWarning:transformers.*",
"ignore::UserWarning",
]
[tool.mypy]
exclude=["examples"]
[[tool.mypy.overrides]]
module = [
"exllamav2.*",
"jinja2",
"joblib.*",
"jsonschema.*",
"openai.*",
"mamba_ssm.*",
"nest_asyncio",
"numpy.*",
"cloudpickle.*",
"diskcache.*",
"pydantic.*",
"pytest",
"referencing.*",
"scipy.*",
"tiktoken.*",
"torch.*",
"transformers.*",
"llama_cpp",
"huggingface_hub",
"lark.*",
"interegular.*",
"datasets.*",
"numba.*",
"requests.*",
"responses.*",
"vllm.*",
"uvicorn.*",
"fastapi.*",
]
ignore_missing_imports = true
[tool.coverage.run]
omit = [
"outlines/_version.py",
"tests/*",
]
branch = true
[tool.coverage.report]
omit = [
"tests/*",
]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"...",
]
show_missing = true
[tool.diff_cover]
compare_branch = "origin/main"
diff_range_notation = ".."