-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
58 lines (53 loc) · 1.31 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
[project]
name = "cohere-finetune"
version = "1.0.0"
description = "A tool that facilitates easy, efficient and high-quality fine-tuning of Cohere's models"
authors = [{name = "Cohere"}]
dependencies = [
"accelerate==0.34.0",
"datasets==2.19.0",
"flask==3.0.2",
"fsspec==2024.3.1",
"numpy==1.26.3",
"pandas==2.2.2",
"peft==0.12.0",
"torch==2.4.0",
"transformers==4.44.2",
"trl==0.10.1",
"liquidpy>=0.8.2",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.1",
"ruff>=0.7.2",
]
requires-python = ">=3.10,<4.0"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pytest.ini_options]
pythonpath = ["src/cohere_finetune"]
[tool.ruff]
src = ["src/cohere_finetune"]
line-length = 119
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
extend-select = [
"C", # Complexity
"E", # PEP8 errors
"F", # PEP8 formatting
"I", # Import sorting
"UP", # Pyupgrade upgrades
"W", # PEP8 warnings
"PT009", # Pytest assertions
]
ignore = [
"C901", # Function too complex
"E501", # Line length (handled by ruff-format)
"I001", # Import block is un-sorted or un-formatted
"UP007", # X | Y style Unions
"UP015", # Unnecessary open mode parameters
]