-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (59 loc) · 1.6 KB
/
pyproject.toml
File metadata and controls
67 lines (59 loc) · 1.6 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
65
66
67
[project]
name = "llm" # The pip install <name>.
version = "0.4.3"
description = "Library for easy use of LLMs."
readme = "README.md"
authors = [
{ name = "Eric Apgar" }
]
urls = { "Homepage" = "https://github.com/EricApgar/large-language-model" }
requires-python = "~=3.12.0"
dependencies = [
"transformers~=4.57",
"torch",
"torchvision",
"sentence-transformers>=5.2.2",
"llm-conversation",
]
[project.optional-dependencies]
openai = [
"accelerate>=1.12.0",
"triton>=3.5.0",
"kernels>=0.11.1",
"openai-harmony>=0.0.8",
]
microsoft = [
"peft>=0.18.1",
"backoff>=2.2.1",
]
# all is a composite of all the singular models.
all = [
"accelerate>=1.12.0",
"triton>=3.5.0",
"kernels>=0.11.1",
"openai-harmony>=0.0.8",
"peft>=0.18.1",
"backoff>=2.2.1",
]
dev = [
"pytest>=8.0",
]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true # Only used for torch packages explicitly mapped below.
# Route just these packages to the PyTorch index.
[tool.uv.sources]
torch = { index = "pytorch-cu130" }
torchvision = { index = "pytorch-cu130" }
llm-conversation = { git = "https://github.com/EricApgar/llm-conversation" }
[tool.pytest.ini_options]
testpaths = ["tests"]
[build-system]
requires = ["uv_build>=0.9.7,<0.10.0"]
build-backend = "uv_build"
[tool.setuptools]
package-dir = {"" = "src"} # Important that this folder is the name of the folder where all the files sit under.
[tool.setuptools.packages.find]
where = ["src"]
include = ["llm*"] # The import <name>. Defined by the name of the folder under src.