-
Notifications
You must be signed in to change notification settings - Fork 446
/
pyproject.toml
87 lines (78 loc) · 2.28 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "mergekit"
description = "Tools for merging pre-trained large language models"
readme = "README.md"
license = { text = "LGPL-3.0-or-later" }
version = "0.0.5.2"
authors = [{ name = "Charles Goddard", email = "[email protected]" }]
dependencies = [
"torch>=2.0.0",
"tqdm==4.66.5",
"click==8.1.7",
"safetensors~=0.4.3",
"accelerate~=1.0.1",
"pydantic~=2.9.2",
"immutables==0.20",
"transformers>=4.45.2",
"tokenizers>=0.20.1",
"huggingface_hub",
"peft",
"typing-extensions",
"sentencepiece",
"protobuf",
"scipy",
"datasets",
]
[project.optional-dependencies]
dev = ["black~=24.10.0", "isort~=5.13.2", "pre-commit~=4.0.1"]
test = ["pytest~=8.3.3"]
evolve = ["ray", "cma", "lm_eval", "wandb"]
vllm = ["vllm==0.3.2", "lm_eval[vllm]"]
[project.urls]
repository = "https://github.com/cg123/mergekit"
[project.scripts]
mergekit-yaml = "mergekit.scripts.run_yaml:main"
mergekit-mega = "mergekit.scripts.megamerge:main"
mergekit-legacy = "mergekit.scripts.legacy:main"
mergekit-layershuffle = "mergekit.scripts.layershuffle:main"
bakllama = "mergekit.scripts.bakllama:main"
mergekit-moe = "mergekit.scripts.moe:main"
mergekit-tokensurgeon = "mergekit.scripts.tokensurgeon:main"
mergekit-extract-lora = "mergekit.scripts.extract_lora:main"
mergekit-evolve = "mergekit.scripts.evolve:main"
[tool.setuptools]
packages = [
"mergekit",
"mergekit.io",
"mergekit.merge_methods",
"mergekit.moe",
"mergekit.scripts",
"mergekit.evo",
"mergekit.tokenizer",
"mergekit._data",
"mergekit._data.architectures",
"mergekit._data.chat_templates",
]
include-package-data = true
package-data = { "mergekit._data.architectures" = [
"*.json",
], "mergekit._data.chat_templates" = [
"*.jinja",
] }
[tool.isort]
profile = "black"
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
[tool.pytest.ini_options]
minversion = "6.0"
filterwarnings = [
"ignore::pydantic.PydanticDeprecatedSince20:huggingface_hub.*:",
"ignore::FutureWarning:huggingface_hub.*:",
"ignore:(read_text|open_text|contents|is_resource) is deprecated:DeprecationWarning", # yes i know, but files() doesn't exist in 3.8
]
testpaths = ["tests"]