-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
67 lines (56 loc) · 1.27 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
[project]
name = "yuren"
version = "0.1.0"
description = "Yuren is a open source LLM based on LLAMA2."
authors = [
{ name = "Pleisto Inc", email = "[email protected]" }
]
license = "Apache-2.0"
dependencies = [
"transformers>=4.33.2",
"sentencepiece>=0.1.99",
"einops>=0.6.1",
"protobuf==3.*",
"bitsandbytes>=0.41.1",
"torch==2.*",
"accelerate>=0.21.0",
"setuptools>=68.0.0",
"scipy>=1.11.1",
"transformers_stream_generator>=0.0.4",
"safetensors>=0.3.3",
]
readme = "README.md"
requires-python = ">= 3.10"
[project.optional-dependencies]
cuda = [
"flash-attn>=2.2.5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.0.280",
"isort>=5.12.0",
"black>=23.7.0"
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.rye.workspace]
members = ["apps/*", "libs/*","tools/*"]
[tool.rye.scripts]
prepare-base-model = { cmd = ["python", "-mprepare_base_model"] }
merge-lora = { cmd = ["python", "-mmerge_lora"] }
webui = { cmd = ["python", "-mwebui.app"] }
[tool.ruff]
line-length = 120
[tool.black]
line-length = 120
target-version = ['py310']
preview = true
[tool.isort]
atomic = true
profile = "black"
line_length = 120
py_version = 310