Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·90 lines (81 loc) · 1.68 KB
/
Copy pathpyproject.toml
File metadata and controls
executable file
·90 lines (81 loc) · 1.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[project]
name = "ebfm"
version = "0.1.0"
description = "Energy-based language models with training, evaluation, and inference"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"datasets>=4.0.0",
"filelock>=3.0.0",
"huggingface-hub>=0.24.0",
"jinja2>=3.1.0",
"numpy>=1.26.0",
"pyarrow>=15.0.0",
"psutil>=7.1.0",
"pyyaml>=6.0.0",
"requests>=2.31.0",
"rustbpe>=0.1.0",
"setuptools>=80.9.0",
"tiktoken>=0.11.0",
"tqdm>=4.66.0",
"wandb>=0.21.3",
"zstandard>=0.25.0",
"lightning==2.6.1",
]
[dependency-groups]
dev = [
"pytest>=8.0.0",
]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.setuptools.packages.find]
where = ["."]
include = ["ebfm*", "scripts*", "tasks*"]
namespaces = true
[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "gpu" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[project.optional-dependencies]
cpu = [
"torch==2.10.0",
]
gpu = [
"torch==2.10.0",
]
hf = [
"safetensors>=0.4.5",
"transformers>=4.45.0",
]
web = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
]
deepspeed = [
"deepspeed>=0.19.0",
]
[tool.uv]
conflicts = [
[
{ extra = "cpu" },
{ extra = "gpu" },
],
]