-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
123 lines (110 loc) · 2.72 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "friendli-model-optimizer"
version = "0.8.0"
authors = [
{ name = "FriendliAI teams", email = "[email protected]" },
]
requires-python=">=3.8,<3.12"
description = "Model Optimizer CLI for Friendli Engine."
dependencies = [
"transformers>=4.44.2",
"datasets",
"typer",
"torch>=2.0.0",
"accelerate",
"fmo-core==0.8",
]
keywords = [ "generative-ai", "llm", "quantization" ]
readme = "README.txt"
license = { file = "LICENSE.txt" }
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
[project.optional-dependencies]
dev = [
"black",
"isort",
"mypy",
"pydocstyle",
"pylint",
"tox"
]
test = [
"black",
"isort",
"mypy",
"pydocstyle",
"pylint",
"tox",
"pytest",
"pytest-cov",
"pytest-xdist",
"coverage"
]
[tool.setuptools.packages.find]
where = ["src"]
[project.urls]
Homepage = "https://friendli.ai/"
Repository = "https://github.com/friendliai/friendli-model-optimizer"
Documentation = "https://docs.friendli.ai/"
Issues = "https://github.com/friendliai/friendli-model-optimizer/issues/new/choose"
[project.scripts]
fmo = "fmo.main:app"
[tool.isort]
profile = "black"
append_only = true
add_imports = ["from __future__ import annotations"]
[tool.black]
line-length = 88
target-version = ["py39"]
[tool.pydocstyle]
convention = "google"
inherit = false
ignore-decorators = "overload"
[tool.pytest.ini_options]
python_files = "test_*.py"
addopts = "-rf --cov=friendli --cov-report=html --cov-report=xml --cov-config=.coveragerc --junit-xml=test-result.xml"
[tool.pylint."messages control"]
disable = [
"invalid-name",
"missing-class-docstring",
"too-few-public-methods",
"W0511",
"E0213",
"R0801",
"missing-function-docstring",
"no-self-argument",
"deprecated-method",
"unsubscriptable-object",
"consider-using-set-comprehension",
"redefined-outer-name",
"unknown-option-value"
]
extension-pkg-whitelist = "pydantic"
[tool.pylint.TYPECHECK]
generated-members = [
"numpy.*" ,
"torch.*"
]
[tool.pylint.design]
max-args = 7
max-parents = 15
[tool.pylint.similarities]
min-similarity-lines = 4
ignore-signatures = "yes"
ignore-comments = "yes"
ignore-docstrings = "yes"
ignore-imports = "yes"