Spaces:
Build error
Build error
Update Dependencies
Browse files- backend/poetry.lock +67 -4
- backend/pyproject.toml +14 -5
backend/poetry.lock
CHANGED
@@ -2173,12 +2173,12 @@ testing = ["black (==22.3)", "datasets", "numpy", "pytest", "requests"]
|
|
2173 |
|
2174 |
[[package]]
|
2175 |
name = "torch"
|
2176 |
-
version = "2.1.1
|
2177 |
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
2178 |
optional = false
|
2179 |
python-versions = ">=3.8.0"
|
2180 |
files = [
|
2181 |
-
{file = "torch-2.1.1
|
2182 |
]
|
2183 |
|
2184 |
[package.dependencies]
|
@@ -2206,7 +2206,70 @@ opt-einsum = ["opt-einsum (>=3.3)"]
|
|
2206 |
|
2207 |
[package.source]
|
2208 |
type = "url"
|
2209 |
-
url = "https://download.pytorch.org/whl/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2210 |
|
2211 |
[[package]]
|
2212 |
name = "tqdm"
|
@@ -2780,4 +2843,4 @@ multidict = ">=4.0"
|
|
2780 |
[metadata]
|
2781 |
lock-version = "2.0"
|
2782 |
python-versions = "^3.11,<3.12"
|
2783 |
-
content-hash = "
|
|
|
2173 |
|
2174 |
[[package]]
|
2175 |
name = "torch"
|
2176 |
+
version = "2.1.1"
|
2177 |
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
2178 |
optional = false
|
2179 |
python-versions = ">=3.8.0"
|
2180 |
files = [
|
2181 |
+
{file = "torch-2.1.1-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:e312f7e82e49565f7667b0bbf9559ab0c597063d93044740781c02acd5a87978"},
|
2182 |
]
|
2183 |
|
2184 |
[package.dependencies]
|
|
|
2206 |
|
2207 |
[package.source]
|
2208 |
type = "url"
|
2209 |
+
url = "https://download.pytorch.org/whl/cpu/torch-2.1.1-cp311-none-macosx_11_0_arm64.whl"
|
2210 |
+
|
2211 |
+
[[package]]
|
2212 |
+
name = "torch"
|
2213 |
+
version = "2.1.1+cpu"
|
2214 |
+
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
2215 |
+
optional = false
|
2216 |
+
python-versions = ">=3.8.0"
|
2217 |
+
files = [
|
2218 |
+
{file = "torch-2.1.1+cpu-cp311-cp311-linux_x86_64.whl", hash = "sha256:d83b13cb17544f9851cc31fed197865eae0c0f5d32df9d8d6d8535df7d2e5109"},
|
2219 |
+
]
|
2220 |
+
|
2221 |
+
[package.dependencies]
|
2222 |
+
filelock = "*"
|
2223 |
+
fsspec = "*"
|
2224 |
+
jinja2 = "*"
|
2225 |
+
networkx = "*"
|
2226 |
+
sympy = "*"
|
2227 |
+
typing-extensions = "*"
|
2228 |
+
|
2229 |
+
[package.extras]
|
2230 |
+
dynamo = ["jinja2"]
|
2231 |
+
opt-einsum = ["opt-einsum (>=3.3)"]
|
2232 |
+
|
2233 |
+
[package.source]
|
2234 |
+
type = "url"
|
2235 |
+
url = "https://download.pytorch.org/whl/cpu/torch-2.1.1%2Bcpu-cp311-cp311-linux_x86_64.whl"
|
2236 |
+
|
2237 |
+
[[package]]
|
2238 |
+
name = "torch"
|
2239 |
+
version = "2.1.1+cpu"
|
2240 |
+
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
2241 |
+
optional = false
|
2242 |
+
python-versions = ">=3.8.0"
|
2243 |
+
files = [
|
2244 |
+
{file = "torch-2.1.1+cpu-cp311-cp311-win_amd64.whl", hash = "sha256:23be0cb945970443c97d4f9ea61ed03b27f924d835de689dd4134f30966c13f7"},
|
2245 |
+
]
|
2246 |
+
|
2247 |
+
[package.dependencies]
|
2248 |
+
filelock = "*"
|
2249 |
+
fsspec = "*"
|
2250 |
+
jinja2 = "*"
|
2251 |
+
networkx = "*"
|
2252 |
+
nvidia-cublas-cu12 = {version = "12.1.3.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2253 |
+
nvidia-cuda-cupti-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2254 |
+
nvidia-cuda-nvrtc-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2255 |
+
nvidia-cuda-runtime-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2256 |
+
nvidia-cudnn-cu12 = {version = "8.9.2.26", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2257 |
+
nvidia-cufft-cu12 = {version = "11.0.2.54", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2258 |
+
nvidia-curand-cu12 = {version = "10.3.2.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2259 |
+
nvidia-cusolver-cu12 = {version = "11.4.5.107", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2260 |
+
nvidia-cusparse-cu12 = {version = "12.1.0.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2261 |
+
nvidia-nccl-cu12 = {version = "2.18.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2262 |
+
nvidia-nvtx-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2263 |
+
sympy = "*"
|
2264 |
+
triton = {version = "2.1.0", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
2265 |
+
typing-extensions = "*"
|
2266 |
+
|
2267 |
+
[package.extras]
|
2268 |
+
opt-einsum = ["opt-einsum (>=3.3)"]
|
2269 |
+
|
2270 |
+
[package.source]
|
2271 |
+
type = "url"
|
2272 |
+
url = "https://download.pytorch.org/whl/cpu/torch-2.1.1%2Bcpu-cp311-cp311-win_amd64.whl"
|
2273 |
|
2274 |
[[package]]
|
2275 |
name = "tqdm"
|
|
|
2843 |
[metadata]
|
2844 |
lock-version = "2.0"
|
2845 |
python-versions = "^3.11,<3.12"
|
2846 |
+
content-hash = "4a40c3668c981baeda73805b148b5d3cd052f100304f19826ae8640693a3b628"
|
backend/pyproject.toml
CHANGED
@@ -4,20 +4,29 @@ version = "0.1.0"
|
|
4 |
description = ""
|
5 |
authors = ["xKhronoz"]
|
6 |
readme = "README.md"
|
7 |
-
packages = [{include = "backend"}]
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.11,<3.12"
|
11 |
fastapi = "^0.104.1"
|
12 |
uvicorn = { extras = ["standard"], version = "^0.23.2" }
|
13 |
-
llama-index = "^0.9.
|
14 |
pypdf = "^3.17.0"
|
15 |
python-dotenv = "^1.0.0"
|
16 |
llama-cpp-python = "^0.2.18"
|
17 |
transformers = "^4.35.2"
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
docx2txt = "^0.8"
|
22 |
|
23 |
|
|
|
4 |
description = ""
|
5 |
authors = ["xKhronoz"]
|
6 |
readme = "README.md"
|
7 |
+
packages = [{ include = "backend" }]
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.11,<3.12"
|
11 |
fastapi = "^0.104.1"
|
12 |
uvicorn = { extras = ["standard"], version = "^0.23.2" }
|
13 |
+
llama-index = "^0.9.4"
|
14 |
pypdf = "^3.17.0"
|
15 |
python-dotenv = "^1.0.0"
|
16 |
llama-cpp-python = "^0.2.18"
|
17 |
transformers = "^4.35.2"
|
18 |
+
# For CPU version: Windows and Linux and MacOS (arm64)
|
19 |
+
torch = [
|
20 |
+
{ url = "https://download.pytorch.org/whl/cpu/torch-2.1.1%2Bcpu-cp311-cp311-win_amd64.whl", markers = "sys_platform == 'win32'" },
|
21 |
+
{ url = "https://download.pytorch.org/whl/cpu/torch-2.1.1%2Bcpu-cp311-cp311-linux_x86_64.whl", markers = "sys_platform == 'linux'" },
|
22 |
+
{ url = "https://download.pytorch.org/whl/cpu/torch-2.1.1-cp311-none-macosx_11_0_arm64.whl", markers = "sys_platform == 'darwin'" },
|
23 |
+
]
|
24 |
+
## For GPU version: Windows and Linux and MacOS (arm64)
|
25 |
+
# torch = [
|
26 |
+
# { url = "https://download.pytorch.org/whl/cu121/torch-2.1.1%2Bcu121-cp311-cp311-win_amd64.whl", markers = "sys_platform == 'win32'" },
|
27 |
+
# { url = "https://download.pytorch.org/whl/cu121/torch-2.1.1%2Bcu121-cp311-cp311-linux_x86_64.whl", markers = "sys_platform == 'linux'" },
|
28 |
+
# { url = "https://download.pytorch.org/whl/cu121/torch-2.1.1-cp311-none-macosx_11_0_arm64.whl", markers = "sys_platform == 'darwin'" },
|
29 |
+
# ]
|
30 |
docx2txt = "^0.8"
|
31 |
|
32 |
|