-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (65 loc) · 1.39 KB
/
pyproject.toml
File metadata and controls
71 lines (65 loc) · 1.39 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
[project]
name = "lora-compose"
version = "0.3.0"
description = "Living Composable Model — orthogonality-guaranteed LoRA expert composition"
requires-python = ">=3.12"
dependencies = [
"pyyaml",
"python-dotenv",
"numpy",
"autograd>=1.8.0",
"scipy>=1.17.1",
"ripser>=0.6.14",
"sentence-transformers>=5.3.0",
"mlx-lm>=0.31.2",
"lm-eval[api]>=0.4.11",
"peft>=0.18.1",
"datasets>=4.3.0",
"huggingface-hub>=1.9.2",
]
[project.optional-dependencies]
micro = [
"mlx>=0.22",
"mlx-lm>=0.21",
"datasets",
]
train = [
"unsloth[colab-new]",
"trl>=0.15",
"peft>=0.13",
"transformers>=4.45",
"torch>=2.4",
"datasets",
"accelerate",
"bitsandbytes",
]
serve = [
"vllm>=0.15",
"torch>=2.4",
"transformers>=4.45",
"peft>=0.13",
]
eval = [
"lm-eval>=0.4",
]
serverless = [
"httpx",
"python-dotenv",
]
[project.scripts]
compose = "composer.compose:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["composer", "micro", "macro"]
[dependency-groups]
dev = [
"pytest>=9.0.2",
]
[tool.uv]
# `serve` extra requires vllm (transformers<5), conflicts with mlx-lm>=0.31.2 (transformers>=5).
# We override transformers for the lock; serve extra is only used in CUDA environments anyway.
override-dependencies = [
"transformers>=5.5.0",
]