Spaces:
Running
on
Zero
Running
on
Zero
Upload pyproject.toml
Browse files- pyproject.toml +51 -0
pyproject.toml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "llama-2-13b-chat"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = ""
|
5 |
+
readme = "README.md"
|
6 |
+
requires-python = ">=3.10"
|
7 |
+
dependencies = [
|
8 |
+
"accelerate>=1.2.1",
|
9 |
+
"bitsandbytes>=0.45.0",
|
10 |
+
"gradio>=5.12.0",
|
11 |
+
"hf-transfer>=0.1.9",
|
12 |
+
"spaces>=0.32.0",
|
13 |
+
"torch==2.4.0",
|
14 |
+
"transformers>=4.48.0",
|
15 |
+
]
|
16 |
+
|
17 |
+
[tool.ruff]
|
18 |
+
line-length = 119
|
19 |
+
|
20 |
+
[tool.ruff.lint]
|
21 |
+
select = ["ALL"]
|
22 |
+
ignore = [
|
23 |
+
"COM812", # missing-trailing-comma
|
24 |
+
"D203", # one-blank-line-before-class
|
25 |
+
"D213", # multi-line-summary-second-line
|
26 |
+
"E501", # line-too-long
|
27 |
+
"SIM117", # multiple-with-statements
|
28 |
+
]
|
29 |
+
extend-ignore = [
|
30 |
+
"D100", # undocumented-public-module
|
31 |
+
"D101", # undocumented-public-class
|
32 |
+
"D102", # undocumented-public-method
|
33 |
+
"D103", # undocumented-public-function
|
34 |
+
"D104", # undocumented-public-package
|
35 |
+
"D105", # undocumented-magic-method
|
36 |
+
"D107", # undocumented-public-init
|
37 |
+
"EM101", # raw-string-in-exception
|
38 |
+
"FBT001", # boolean-type-hint-positional-argument
|
39 |
+
"FBT002", # boolean-default-value-positional-argument
|
40 |
+
"PD901", # pandas-df-variable-name
|
41 |
+
"PGH003", # blanket-type-ignore
|
42 |
+
"PLR0913", # too-many-arguments
|
43 |
+
"PLR0915", # too-many-statements
|
44 |
+
"TRY003", # raise-vanilla-args
|
45 |
+
]
|
46 |
+
unfixable = [
|
47 |
+
"F401", # unused-import
|
48 |
+
]
|
49 |
+
|
50 |
+
[tool.ruff.format]
|
51 |
+
docstring-code-format = true
|