Spaces:
No application file
No application file
kauabarros-24
commited on
Commit
·
598f7ca
1
Parent(s):
9d914a2
Ai api
Browse files- .gitignore +162 -0
- .vscode/settings.json +8 -0
- pdm.lock +758 -0
- pyproject.toml +23 -0
- requirements.txt +3 -0
- src/kr_api/__init__.py +0 -0
- src/kr_api/kalium_recommend/.gitattributes +35 -0
- src/kr_api/kalium_recommend/README.md +10 -0
- src/kr_api/kalium_recommend/config.json +34 -0
- src/kr_api/kalium_recommend/model.safetensors +3 -0
- src/kr_api/kalium_recommend/requirements.txt +2 -0
- src/kr_api/kalium_recommend/special_tokens_map.json +37 -0
- src/kr_api/kalium_recommend/tokenizer_config.json +57 -0
- src/kr_api/kalium_recommend/vocab.txt +0 -0
- src/kr_api/main.py +40 -0
- src/kr_api/models/ai_request.py +7 -0
- src/kr_api/routes/ai_routes.py +38 -0
- src/kr_api/routes/system.py +8 -0
- tests/__init__.py +0 -0
.gitignore
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Byte-compiled / optimized / DLL files
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*$py.class
|
5 |
+
|
6 |
+
# C extensions
|
7 |
+
*.so
|
8 |
+
|
9 |
+
# Distribution / packaging
|
10 |
+
.Python
|
11 |
+
build/
|
12 |
+
develop-eggs/
|
13 |
+
dist/
|
14 |
+
downloads/
|
15 |
+
eggs/
|
16 |
+
.eggs/
|
17 |
+
lib/
|
18 |
+
lib64/
|
19 |
+
parts/
|
20 |
+
sdist/
|
21 |
+
var/
|
22 |
+
wheels/
|
23 |
+
share/python-wheels/
|
24 |
+
*.egg-info/
|
25 |
+
.installed.cfg
|
26 |
+
*.egg
|
27 |
+
MANIFEST
|
28 |
+
|
29 |
+
# PyInstaller
|
30 |
+
# Usually these files are written by a python script from a template
|
31 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
32 |
+
*.manifest
|
33 |
+
*.spec
|
34 |
+
|
35 |
+
# Installer logs
|
36 |
+
pip-log.txt
|
37 |
+
pip-delete-this-directory.txt
|
38 |
+
|
39 |
+
# Unit test / coverage reports
|
40 |
+
htmlcov/
|
41 |
+
.tox/
|
42 |
+
.nox/
|
43 |
+
.coverage
|
44 |
+
.coverage.*
|
45 |
+
.cache
|
46 |
+
nosetests.xml
|
47 |
+
coverage.xml
|
48 |
+
*.cover
|
49 |
+
*.py,cover
|
50 |
+
.hypothesis/
|
51 |
+
.pytest_cache/
|
52 |
+
cover/
|
53 |
+
|
54 |
+
# Translations
|
55 |
+
*.mo
|
56 |
+
*.pot
|
57 |
+
|
58 |
+
# Django stuff:
|
59 |
+
*.log
|
60 |
+
local_settings.py
|
61 |
+
db.sqlite3
|
62 |
+
db.sqlite3-journal
|
63 |
+
|
64 |
+
# Flask stuff:
|
65 |
+
instance/
|
66 |
+
.webassets-cache
|
67 |
+
|
68 |
+
# Scrapy stuff:
|
69 |
+
.scrapy
|
70 |
+
|
71 |
+
# Sphinx documentation
|
72 |
+
docs/_build/
|
73 |
+
|
74 |
+
# PyBuilder
|
75 |
+
.pybuilder/
|
76 |
+
target/
|
77 |
+
|
78 |
+
# Jupyter Notebook
|
79 |
+
.ipynb_checkpoints
|
80 |
+
|
81 |
+
# IPython
|
82 |
+
profile_default/
|
83 |
+
ipython_config.py
|
84 |
+
|
85 |
+
# pyenv
|
86 |
+
# For a library or package, you might want to ignore these files since the code is
|
87 |
+
# intended to run in multiple environments; otherwise, check them in:
|
88 |
+
# .python-version
|
89 |
+
|
90 |
+
# pipenv
|
91 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
92 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
93 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
94 |
+
# install all needed dependencies.
|
95 |
+
#Pipfile.lock
|
96 |
+
|
97 |
+
# poetry
|
98 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
99 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
100 |
+
# commonly ignored for libraries.
|
101 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
102 |
+
#poetry.lock
|
103 |
+
|
104 |
+
# pdm
|
105 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
106 |
+
#pdm.lock
|
107 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
108 |
+
# in version control.
|
109 |
+
# https://pdm-project.org/#use-with-ide
|
110 |
+
.pdm.toml
|
111 |
+
.pdm-python
|
112 |
+
.pdm-build/
|
113 |
+
|
114 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
115 |
+
__pypackages__/
|
116 |
+
|
117 |
+
# Celery stuff
|
118 |
+
celerybeat-schedule
|
119 |
+
celerybeat.pid
|
120 |
+
|
121 |
+
# SageMath parsed files
|
122 |
+
*.sage.py
|
123 |
+
|
124 |
+
# Environments
|
125 |
+
.env
|
126 |
+
.venv
|
127 |
+
env/
|
128 |
+
venv/
|
129 |
+
ENV/
|
130 |
+
env.bak/
|
131 |
+
venv.bak/
|
132 |
+
|
133 |
+
# Spyder project settings
|
134 |
+
.spyderproject
|
135 |
+
.spyproject
|
136 |
+
|
137 |
+
# Rope project settings
|
138 |
+
.ropeproject
|
139 |
+
|
140 |
+
# mkdocs documentation
|
141 |
+
/site
|
142 |
+
|
143 |
+
# mypy
|
144 |
+
.mypy_cache/
|
145 |
+
.dmypy.json
|
146 |
+
dmypy.json
|
147 |
+
|
148 |
+
# Pyre type checker
|
149 |
+
.pyre/
|
150 |
+
|
151 |
+
# pytype static type analyzer
|
152 |
+
.pytype/
|
153 |
+
|
154 |
+
# Cython debug symbols
|
155 |
+
cython_debug/
|
156 |
+
|
157 |
+
# PyCharm
|
158 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
159 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
160 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
161 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
162 |
+
#.idea/
|
.vscode/settings.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"python.analysis.extraPaths": [
|
3 |
+
"${workspaceFolder}/__pypackages__/3.11/lib"
|
4 |
+
],
|
5 |
+
"python.autoComplete.extraPaths": [
|
6 |
+
"${workspaceFolder}/__pypackages__/3.11/lib"
|
7 |
+
]
|
8 |
+
}
|
pdm.lock
ADDED
@@ -0,0 +1,758 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is @generated by PDM.
|
2 |
+
# It is not intended for manual editing.
|
3 |
+
|
4 |
+
[metadata]
|
5 |
+
groups = ["default"]
|
6 |
+
strategy = ["inherit_metadata"]
|
7 |
+
lock_version = "4.5.0"
|
8 |
+
content_hash = "sha256:83cfa2b23208c9718d02b0bc6deeeb13e093d4b579ea0d56214e9b948fa1fcaf"
|
9 |
+
|
10 |
+
[[metadata.targets]]
|
11 |
+
requires_python = "==3.11.*"
|
12 |
+
|
13 |
+
[[package]]
|
14 |
+
name = "annotated-types"
|
15 |
+
version = "0.7.0"
|
16 |
+
requires_python = ">=3.8"
|
17 |
+
summary = "Reusable constraint types to use with typing.Annotated"
|
18 |
+
groups = ["default"]
|
19 |
+
dependencies = [
|
20 |
+
"typing-extensions>=4.0.0; python_version < \"3.9\"",
|
21 |
+
]
|
22 |
+
files = [
|
23 |
+
{file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"},
|
24 |
+
{file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"},
|
25 |
+
]
|
26 |
+
|
27 |
+
[[package]]
|
28 |
+
name = "anyio"
|
29 |
+
version = "4.6.2.post1"
|
30 |
+
requires_python = ">=3.9"
|
31 |
+
summary = "High level compatibility layer for multiple asynchronous event loop implementations"
|
32 |
+
groups = ["default"]
|
33 |
+
dependencies = [
|
34 |
+
"exceptiongroup>=1.0.2; python_version < \"3.11\"",
|
35 |
+
"idna>=2.8",
|
36 |
+
"sniffio>=1.1",
|
37 |
+
"typing-extensions>=4.1; python_version < \"3.11\"",
|
38 |
+
]
|
39 |
+
files = [
|
40 |
+
{file = "anyio-4.6.2.post1-py3-none-any.whl", hash = "sha256:6d170c36fba3bdd840c73d3868c1e777e33676a69c3a72cf0a0d5d6d8009b61d"},
|
41 |
+
{file = "anyio-4.6.2.post1.tar.gz", hash = "sha256:4c8bc31ccdb51c7f7bd251f51c609e038d63e34219b44aa86e47576389880b4c"},
|
42 |
+
]
|
43 |
+
|
44 |
+
[[package]]
|
45 |
+
name = "certifi"
|
46 |
+
version = "2024.8.30"
|
47 |
+
requires_python = ">=3.6"
|
48 |
+
summary = "Python package for providing Mozilla's CA Bundle."
|
49 |
+
groups = ["default"]
|
50 |
+
files = [
|
51 |
+
{file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"},
|
52 |
+
{file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"},
|
53 |
+
]
|
54 |
+
|
55 |
+
[[package]]
|
56 |
+
name = "charset-normalizer"
|
57 |
+
version = "3.4.0"
|
58 |
+
requires_python = ">=3.7.0"
|
59 |
+
summary = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
|
60 |
+
groups = ["default"]
|
61 |
+
files = [
|
62 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0d99dd8ff461990f12d6e42c7347fd9ab2532fb70e9621ba520f9e8637161d7c"},
|
63 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c57516e58fd17d03ebe67e181a4e4e2ccab1168f8c2976c6a334d4f819fe5944"},
|
64 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6dba5d19c4dfab08e58d5b36304b3f92f3bd5d42c1a3fa37b5ba5cdf6dfcbcee"},
|
65 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf4475b82be41b07cc5e5ff94810e6a01f276e37c2d55571e3fe175e467a1a1c"},
|
66 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce031db0408e487fd2775d745ce30a7cd2923667cf3b69d48d219f1d8f5ddeb6"},
|
67 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ff4e7cdfdb1ab5698e675ca622e72d58a6fa2a8aa58195de0c0061288e6e3ea"},
|
68 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3710a9751938947e6327ea9f3ea6332a09bf0ba0c09cae9cb1f250bd1f1549bc"},
|
69 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:82357d85de703176b5587dbe6ade8ff67f9f69a41c0733cf2425378b49954de5"},
|
70 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47334db71978b23ebcf3c0f9f5ee98b8d65992b65c9c4f2d34c2eaf5bcaf0594"},
|
71 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8ce7fd6767a1cc5a92a639b391891bf1c268b03ec7e021c7d6d902285259685c"},
|
72 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:f1a2f519ae173b5b6a2c9d5fa3116ce16e48b3462c8b96dfdded11055e3d6365"},
|
73 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:63bc5c4ae26e4bc6be6469943b8253c0fd4e4186c43ad46e713ea61a0ba49129"},
|
74 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:bcb4f8ea87d03bc51ad04add8ceaf9b0f085ac045ab4d74e73bbc2dc033f0236"},
|
75 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-win32.whl", hash = "sha256:9ae4ef0b3f6b41bad6366fb0ea4fc1d7ed051528e113a60fa2a65a9abb5b1d99"},
|
76 |
+
{file = "charset_normalizer-3.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:cee4373f4d3ad28f1ab6290684d8e2ebdb9e7a1b74fdc39e4c211995f77bec27"},
|
77 |
+
{file = "charset_normalizer-3.4.0-py3-none-any.whl", hash = "sha256:fe9f97feb71aa9896b81973a7bbada8c49501dc73e58a10fcef6663af95e5079"},
|
78 |
+
{file = "charset_normalizer-3.4.0.tar.gz", hash = "sha256:223217c3d4f82c3ac5e29032b3f1c2eb0fb591b72161f86d93f5719079dae93e"},
|
79 |
+
]
|
80 |
+
|
81 |
+
[[package]]
|
82 |
+
name = "click"
|
83 |
+
version = "8.1.7"
|
84 |
+
requires_python = ">=3.7"
|
85 |
+
summary = "Composable command line interface toolkit"
|
86 |
+
groups = ["default"]
|
87 |
+
dependencies = [
|
88 |
+
"colorama; platform_system == \"Windows\"",
|
89 |
+
"importlib-metadata; python_version < \"3.8\"",
|
90 |
+
]
|
91 |
+
files = [
|
92 |
+
{file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
|
93 |
+
{file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
|
94 |
+
]
|
95 |
+
|
96 |
+
[[package]]
|
97 |
+
name = "colorama"
|
98 |
+
version = "0.4.6"
|
99 |
+
requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
|
100 |
+
summary = "Cross-platform colored terminal text."
|
101 |
+
groups = ["default"]
|
102 |
+
marker = "platform_system == \"Windows\""
|
103 |
+
files = [
|
104 |
+
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
|
105 |
+
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
106 |
+
]
|
107 |
+
|
108 |
+
[[package]]
|
109 |
+
name = "fastapi"
|
110 |
+
version = "0.115.3"
|
111 |
+
requires_python = ">=3.8"
|
112 |
+
summary = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
113 |
+
groups = ["default"]
|
114 |
+
dependencies = [
|
115 |
+
"pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4",
|
116 |
+
"starlette<0.42.0,>=0.40.0",
|
117 |
+
"typing-extensions>=4.8.0",
|
118 |
+
]
|
119 |
+
files = [
|
120 |
+
{file = "fastapi-0.115.3-py3-none-any.whl", hash = "sha256:8035e8f9a2b0aa89cea03b6c77721178ed5358e1aea4cd8570d9466895c0638c"},
|
121 |
+
{file = "fastapi-0.115.3.tar.gz", hash = "sha256:c091c6a35599c036d676fa24bd4a6e19fa30058d93d950216cdc672881f6f7db"},
|
122 |
+
]
|
123 |
+
|
124 |
+
[[package]]
|
125 |
+
name = "filelock"
|
126 |
+
version = "3.16.1"
|
127 |
+
requires_python = ">=3.8"
|
128 |
+
summary = "A platform independent file lock."
|
129 |
+
groups = ["default"]
|
130 |
+
files = [
|
131 |
+
{file = "filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0"},
|
132 |
+
{file = "filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435"},
|
133 |
+
]
|
134 |
+
|
135 |
+
[[package]]
|
136 |
+
name = "fsspec"
|
137 |
+
version = "2024.10.0"
|
138 |
+
requires_python = ">=3.8"
|
139 |
+
summary = "File-system specification"
|
140 |
+
groups = ["default"]
|
141 |
+
files = [
|
142 |
+
{file = "fsspec-2024.10.0-py3-none-any.whl", hash = "sha256:03b9a6785766a4de40368b88906366755e2819e758b83705c88cd7cb5fe81871"},
|
143 |
+
{file = "fsspec-2024.10.0.tar.gz", hash = "sha256:eda2d8a4116d4f2429db8550f2457da57279247dd930bb12f821b58391359493"},
|
144 |
+
]
|
145 |
+
|
146 |
+
[[package]]
|
147 |
+
name = "h11"
|
148 |
+
version = "0.14.0"
|
149 |
+
requires_python = ">=3.7"
|
150 |
+
summary = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
|
151 |
+
groups = ["default"]
|
152 |
+
dependencies = [
|
153 |
+
"typing-extensions; python_version < \"3.8\"",
|
154 |
+
]
|
155 |
+
files = [
|
156 |
+
{file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"},
|
157 |
+
{file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},
|
158 |
+
]
|
159 |
+
|
160 |
+
[[package]]
|
161 |
+
name = "huggingface-hub"
|
162 |
+
version = "0.26.1"
|
163 |
+
requires_python = ">=3.8.0"
|
164 |
+
summary = "Client library to download and publish models, datasets and other repos on the huggingface.co hub"
|
165 |
+
groups = ["default"]
|
166 |
+
dependencies = [
|
167 |
+
"filelock",
|
168 |
+
"fsspec>=2023.5.0",
|
169 |
+
"packaging>=20.9",
|
170 |
+
"pyyaml>=5.1",
|
171 |
+
"requests",
|
172 |
+
"tqdm>=4.42.1",
|
173 |
+
"typing-extensions>=3.7.4.3",
|
174 |
+
]
|
175 |
+
files = [
|
176 |
+
{file = "huggingface_hub-0.26.1-py3-none-any.whl", hash = "sha256:5927a8fc64ae68859cd954b7cc29d1c8390a5e15caba6d3d349c973be8fdacf3"},
|
177 |
+
{file = "huggingface_hub-0.26.1.tar.gz", hash = "sha256:414c0d9b769eecc86c70f9d939d0f48bb28e8461dd1130021542eff0212db890"},
|
178 |
+
]
|
179 |
+
|
180 |
+
[[package]]
|
181 |
+
name = "idna"
|
182 |
+
version = "3.10"
|
183 |
+
requires_python = ">=3.6"
|
184 |
+
summary = "Internationalized Domain Names in Applications (IDNA)"
|
185 |
+
groups = ["default"]
|
186 |
+
files = [
|
187 |
+
{file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"},
|
188 |
+
{file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"},
|
189 |
+
]
|
190 |
+
|
191 |
+
[[package]]
|
192 |
+
name = "jinja2"
|
193 |
+
version = "3.1.4"
|
194 |
+
requires_python = ">=3.7"
|
195 |
+
summary = "A very fast and expressive template engine."
|
196 |
+
groups = ["default"]
|
197 |
+
dependencies = [
|
198 |
+
"MarkupSafe>=2.0",
|
199 |
+
]
|
200 |
+
files = [
|
201 |
+
{file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"},
|
202 |
+
{file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"},
|
203 |
+
]
|
204 |
+
|
205 |
+
[[package]]
|
206 |
+
name = "markupsafe"
|
207 |
+
version = "3.0.2"
|
208 |
+
requires_python = ">=3.9"
|
209 |
+
summary = "Safely add untrusted strings to HTML/XML markup."
|
210 |
+
groups = ["default"]
|
211 |
+
files = [
|
212 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d"},
|
213 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93"},
|
214 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832"},
|
215 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84"},
|
216 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca"},
|
217 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798"},
|
218 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e"},
|
219 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4"},
|
220 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d"},
|
221 |
+
{file = "MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b"},
|
222 |
+
{file = "markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"},
|
223 |
+
]
|
224 |
+
|
225 |
+
[[package]]
|
226 |
+
name = "mpmath"
|
227 |
+
version = "1.3.0"
|
228 |
+
summary = "Python library for arbitrary-precision floating-point arithmetic"
|
229 |
+
groups = ["default"]
|
230 |
+
marker = "python_version >= \"3.9\""
|
231 |
+
files = [
|
232 |
+
{file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
|
233 |
+
{file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
|
234 |
+
]
|
235 |
+
|
236 |
+
[[package]]
|
237 |
+
name = "networkx"
|
238 |
+
version = "3.4.2"
|
239 |
+
requires_python = ">=3.10"
|
240 |
+
summary = "Python package for creating and manipulating graphs and networks"
|
241 |
+
groups = ["default"]
|
242 |
+
files = [
|
243 |
+
{file = "networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f"},
|
244 |
+
{file = "networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1"},
|
245 |
+
]
|
246 |
+
|
247 |
+
[[package]]
|
248 |
+
name = "numpy"
|
249 |
+
version = "2.1.2"
|
250 |
+
requires_python = ">=3.10"
|
251 |
+
summary = "Fundamental package for array computing in Python"
|
252 |
+
groups = ["default"]
|
253 |
+
files = [
|
254 |
+
{file = "numpy-2.1.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b42a1a511c81cc78cbc4539675713bbcf9d9c3913386243ceff0e9429ca892fe"},
|
255 |
+
{file = "numpy-2.1.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:faa88bc527d0f097abdc2c663cddf37c05a1c2f113716601555249805cf573f1"},
|
256 |
+
{file = "numpy-2.1.2-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:c82af4b2ddd2ee72d1fc0c6695048d457e00b3582ccde72d8a1c991b808bb20f"},
|
257 |
+
{file = "numpy-2.1.2-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:13602b3174432a35b16c4cfb5de9a12d229727c3dd47a6ce35111f2ebdf66ff4"},
|
258 |
+
{file = "numpy-2.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1ebec5fd716c5a5b3d8dfcc439be82a8407b7b24b230d0ad28a81b61c2f4659a"},
|
259 |
+
{file = "numpy-2.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2b49c3c0804e8ecb05d59af8386ec2f74877f7ca8fd9c1e00be2672e4d399b1"},
|
260 |
+
{file = "numpy-2.1.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:2cbba4b30bf31ddbe97f1c7205ef976909a93a66bb1583e983adbd155ba72ac2"},
|
261 |
+
{file = "numpy-2.1.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8e00ea6fc82e8a804433d3e9cedaa1051a1422cb6e443011590c14d2dea59146"},
|
262 |
+
{file = "numpy-2.1.2-cp311-cp311-win32.whl", hash = "sha256:5006b13a06e0b38d561fab5ccc37581f23c9511879be7693bd33c7cd15ca227c"},
|
263 |
+
{file = "numpy-2.1.2-cp311-cp311-win_amd64.whl", hash = "sha256:f1eb068ead09f4994dec71c24b2844f1e4e4e013b9629f812f292f04bd1510d9"},
|
264 |
+
{file = "numpy-2.1.2.tar.gz", hash = "sha256:13532a088217fa624c99b843eeb54640de23b3414b14aa66d023805eb731066c"},
|
265 |
+
]
|
266 |
+
|
267 |
+
[[package]]
|
268 |
+
name = "nvidia-cublas-cu12"
|
269 |
+
version = "12.4.5.8"
|
270 |
+
requires_python = ">=3"
|
271 |
+
summary = "CUBLAS native runtime libraries"
|
272 |
+
groups = ["default"]
|
273 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
274 |
+
files = [
|
275 |
+
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3"},
|
276 |
+
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b"},
|
277 |
+
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-win_amd64.whl", hash = "sha256:5a796786da89203a0657eda402bcdcec6180254a8ac22d72213abc42069522dc"},
|
278 |
+
]
|
279 |
+
|
280 |
+
[[package]]
|
281 |
+
name = "nvidia-cuda-cupti-cu12"
|
282 |
+
version = "12.4.127"
|
283 |
+
requires_python = ">=3"
|
284 |
+
summary = "CUDA profiling tools runtime libs."
|
285 |
+
groups = ["default"]
|
286 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
287 |
+
files = [
|
288 |
+
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a"},
|
289 |
+
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb"},
|
290 |
+
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:5688d203301ab051449a2b1cb6690fbe90d2b372f411521c86018b950f3d7922"},
|
291 |
+
]
|
292 |
+
|
293 |
+
[[package]]
|
294 |
+
name = "nvidia-cuda-nvrtc-cu12"
|
295 |
+
version = "12.4.127"
|
296 |
+
requires_python = ">=3"
|
297 |
+
summary = "NVRTC native runtime libraries"
|
298 |
+
groups = ["default"]
|
299 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
300 |
+
files = [
|
301 |
+
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198"},
|
302 |
+
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338"},
|
303 |
+
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:a961b2f1d5f17b14867c619ceb99ef6fcec12e46612711bcec78eb05068a60ec"},
|
304 |
+
]
|
305 |
+
|
306 |
+
[[package]]
|
307 |
+
name = "nvidia-cuda-runtime-cu12"
|
308 |
+
version = "12.4.127"
|
309 |
+
requires_python = ">=3"
|
310 |
+
summary = "CUDA Runtime native Libraries"
|
311 |
+
groups = ["default"]
|
312 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
313 |
+
files = [
|
314 |
+
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3"},
|
315 |
+
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5"},
|
316 |
+
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:09c2e35f48359752dfa822c09918211844a3d93c100a715d79b59591130c5e1e"},
|
317 |
+
]
|
318 |
+
|
319 |
+
[[package]]
|
320 |
+
name = "nvidia-cudnn-cu12"
|
321 |
+
version = "9.1.0.70"
|
322 |
+
requires_python = ">=3"
|
323 |
+
summary = "cuDNN runtime libraries"
|
324 |
+
groups = ["default"]
|
325 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
326 |
+
dependencies = [
|
327 |
+
"nvidia-cublas-cu12",
|
328 |
+
]
|
329 |
+
files = [
|
330 |
+
{file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl", hash = "sha256:165764f44ef8c61fcdfdfdbe769d687e06374059fbb388b6c89ecb0e28793a6f"},
|
331 |
+
{file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-win_amd64.whl", hash = "sha256:6278562929433d68365a07a4a1546c237ba2849852c0d4b2262a486e805b977a"},
|
332 |
+
]
|
333 |
+
|
334 |
+
[[package]]
|
335 |
+
name = "nvidia-cufft-cu12"
|
336 |
+
version = "11.2.1.3"
|
337 |
+
requires_python = ">=3"
|
338 |
+
summary = "CUFFT native runtime libraries"
|
339 |
+
groups = ["default"]
|
340 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
341 |
+
dependencies = [
|
342 |
+
"nvidia-nvjitlink-cu12",
|
343 |
+
]
|
344 |
+
files = [
|
345 |
+
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399"},
|
346 |
+
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9"},
|
347 |
+
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-win_amd64.whl", hash = "sha256:d802f4954291101186078ccbe22fc285a902136f974d369540fd4a5333d1440b"},
|
348 |
+
]
|
349 |
+
|
350 |
+
[[package]]
|
351 |
+
name = "nvidia-curand-cu12"
|
352 |
+
version = "10.3.5.147"
|
353 |
+
requires_python = ">=3"
|
354 |
+
summary = "CURAND native runtime libraries"
|
355 |
+
groups = ["default"]
|
356 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
357 |
+
files = [
|
358 |
+
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9"},
|
359 |
+
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b"},
|
360 |
+
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-win_amd64.whl", hash = "sha256:f307cc191f96efe9e8f05a87096abc20d08845a841889ef78cb06924437f6771"},
|
361 |
+
]
|
362 |
+
|
363 |
+
[[package]]
|
364 |
+
name = "nvidia-cusolver-cu12"
|
365 |
+
version = "11.6.1.9"
|
366 |
+
requires_python = ">=3"
|
367 |
+
summary = "CUDA solver native runtime libraries"
|
368 |
+
groups = ["default"]
|
369 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
370 |
+
dependencies = [
|
371 |
+
"nvidia-cublas-cu12",
|
372 |
+
"nvidia-cusparse-cu12",
|
373 |
+
"nvidia-nvjitlink-cu12",
|
374 |
+
]
|
375 |
+
files = [
|
376 |
+
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e"},
|
377 |
+
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260"},
|
378 |
+
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-win_amd64.whl", hash = "sha256:e77314c9d7b694fcebc84f58989f3aa4fb4cb442f12ca1a9bde50f5e8f6d1b9c"},
|
379 |
+
]
|
380 |
+
|
381 |
+
[[package]]
|
382 |
+
name = "nvidia-cusparse-cu12"
|
383 |
+
version = "12.3.1.170"
|
384 |
+
requires_python = ">=3"
|
385 |
+
summary = "CUSPARSE native runtime libraries"
|
386 |
+
groups = ["default"]
|
387 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
388 |
+
dependencies = [
|
389 |
+
"nvidia-nvjitlink-cu12",
|
390 |
+
]
|
391 |
+
files = [
|
392 |
+
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3"},
|
393 |
+
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1"},
|
394 |
+
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-win_amd64.whl", hash = "sha256:9bc90fb087bc7b4c15641521f31c0371e9a612fc2ba12c338d3ae032e6b6797f"},
|
395 |
+
]
|
396 |
+
|
397 |
+
[[package]]
|
398 |
+
name = "nvidia-nccl-cu12"
|
399 |
+
version = "2.21.5"
|
400 |
+
requires_python = ">=3"
|
401 |
+
summary = "NVIDIA Collective Communication Library (NCCL) Runtime"
|
402 |
+
groups = ["default"]
|
403 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
404 |
+
files = [
|
405 |
+
{file = "nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:8579076d30a8c24988834445f8d633c697d42397e92ffc3f63fa26766d25e0a0"},
|
406 |
+
]
|
407 |
+
|
408 |
+
[[package]]
|
409 |
+
name = "nvidia-nvjitlink-cu12"
|
410 |
+
version = "12.4.127"
|
411 |
+
requires_python = ">=3"
|
412 |
+
summary = "Nvidia JIT LTO Library"
|
413 |
+
groups = ["default"]
|
414 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
415 |
+
files = [
|
416 |
+
{file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4abe7fef64914ccfa909bc2ba39739670ecc9e820c83ccc7a6ed414122599b83"},
|
417 |
+
{file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57"},
|
418 |
+
{file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:fd9020c501d27d135f983c6d3e244b197a7ccad769e34df53a42e276b0e25fa1"},
|
419 |
+
]
|
420 |
+
|
421 |
+
[[package]]
|
422 |
+
name = "nvidia-nvtx-cu12"
|
423 |
+
version = "12.4.127"
|
424 |
+
requires_python = ">=3"
|
425 |
+
summary = "NVIDIA Tools Extension"
|
426 |
+
groups = ["default"]
|
427 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""
|
428 |
+
files = [
|
429 |
+
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3"},
|
430 |
+
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a"},
|
431 |
+
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:641dccaaa1139f3ffb0d3164b4b84f9d253397e38246a4f2f36728b48566d485"},
|
432 |
+
]
|
433 |
+
|
434 |
+
[[package]]
|
435 |
+
name = "packaging"
|
436 |
+
version = "24.1"
|
437 |
+
requires_python = ">=3.8"
|
438 |
+
summary = "Core utilities for Python packages"
|
439 |
+
groups = ["default"]
|
440 |
+
files = [
|
441 |
+
{file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"},
|
442 |
+
{file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},
|
443 |
+
]
|
444 |
+
|
445 |
+
[[package]]
|
446 |
+
name = "pydantic"
|
447 |
+
version = "2.9.2"
|
448 |
+
requires_python = ">=3.8"
|
449 |
+
summary = "Data validation using Python type hints"
|
450 |
+
groups = ["default"]
|
451 |
+
dependencies = [
|
452 |
+
"annotated-types>=0.6.0",
|
453 |
+
"pydantic-core==2.23.4",
|
454 |
+
"typing-extensions>=4.12.2; python_version >= \"3.13\"",
|
455 |
+
"typing-extensions>=4.6.1; python_version < \"3.13\"",
|
456 |
+
]
|
457 |
+
files = [
|
458 |
+
{file = "pydantic-2.9.2-py3-none-any.whl", hash = "sha256:f048cec7b26778210e28a0459867920654d48e5e62db0958433636cde4254f12"},
|
459 |
+
{file = "pydantic-2.9.2.tar.gz", hash = "sha256:d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f"},
|
460 |
+
]
|
461 |
+
|
462 |
+
[[package]]
|
463 |
+
name = "pydantic-core"
|
464 |
+
version = "2.23.4"
|
465 |
+
requires_python = ">=3.8"
|
466 |
+
summary = "Core functionality for Pydantic validation and serialization"
|
467 |
+
groups = ["default"]
|
468 |
+
dependencies = [
|
469 |
+
"typing-extensions!=4.7.0,>=4.6.0",
|
470 |
+
]
|
471 |
+
files = [
|
472 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:77733e3892bb0a7fa797826361ce8a9184d25c8dffaec60b7ffe928153680ba8"},
|
473 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b84d168f6c48fabd1f2027a3d1bdfe62f92cade1fb273a5d68e621da0e44e6d"},
|
474 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df49e7a0861a8c36d089c1ed57d308623d60416dab2647a4a17fe050ba85de0e"},
|
475 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ff02b6d461a6de369f07ec15e465a88895f3223eb75073ffea56b84d9331f607"},
|
476 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:996a38a83508c54c78a5f41456b0103c30508fed9abcad0a59b876d7398f25fd"},
|
477 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d97683ddee4723ae8c95d1eddac7c192e8c552da0c73a925a89fa8649bf13eea"},
|
478 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:216f9b2d7713eb98cb83c80b9c794de1f6b7e3145eef40400c62e86cee5f4e1e"},
|
479 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6f783e0ec4803c787bcea93e13e9932edab72068f68ecffdf86a99fd5918878b"},
|
480 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d0776dea117cf5272382634bd2a5c1b6eb16767c223c6a5317cd3e2a757c61a0"},
|
481 |
+
{file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d5f7a395a8cf1621939692dba2a6b6a830efa6b3cee787d82c7de1ad2930de64"},
|
482 |
+
{file = "pydantic_core-2.23.4-cp311-none-win32.whl", hash = "sha256:74b9127ffea03643e998e0c5ad9bd3811d3dac8c676e47db17b0ee7c3c3bf35f"},
|
483 |
+
{file = "pydantic_core-2.23.4-cp311-none-win_amd64.whl", hash = "sha256:98d134c954828488b153d88ba1f34e14259284f256180ce659e8d83e9c05eaa3"},
|
484 |
+
{file = "pydantic_core-2.23.4.tar.gz", hash = "sha256:2584f7cf844ac4d970fba483a717dbe10c1c1c96a969bf65d61ffe94df1b2863"},
|
485 |
+
]
|
486 |
+
|
487 |
+
[[package]]
|
488 |
+
name = "pyyaml"
|
489 |
+
version = "6.0.2"
|
490 |
+
requires_python = ">=3.8"
|
491 |
+
summary = "YAML parser and emitter for Python"
|
492 |
+
groups = ["default"]
|
493 |
+
files = [
|
494 |
+
{file = "PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774"},
|
495 |
+
{file = "PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee"},
|
496 |
+
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c"},
|
497 |
+
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317"},
|
498 |
+
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85"},
|
499 |
+
{file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4"},
|
500 |
+
{file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e"},
|
501 |
+
{file = "PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5"},
|
502 |
+
{file = "PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44"},
|
503 |
+
{file = "pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"},
|
504 |
+
]
|
505 |
+
|
506 |
+
[[package]]
|
507 |
+
name = "regex"
|
508 |
+
version = "2024.9.11"
|
509 |
+
requires_python = ">=3.8"
|
510 |
+
summary = "Alternative regular expression module, to replace re."
|
511 |
+
groups = ["default"]
|
512 |
+
files = [
|
513 |
+
{file = "regex-2024.9.11-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:2cce2449e5927a0bf084d346da6cd5eb016b2beca10d0013ab50e3c226ffc0df"},
|
514 |
+
{file = "regex-2024.9.11-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3b37fa423beefa44919e009745ccbf353d8c981516e807995b2bd11c2c77d268"},
|
515 |
+
{file = "regex-2024.9.11-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:64ce2799bd75039b480cc0360907c4fb2f50022f030bf9e7a8705b636e408fad"},
|
516 |
+
{file = "regex-2024.9.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a4cc92bb6db56ab0c1cbd17294e14f5e9224f0cc6521167ef388332604e92679"},
|
517 |
+
{file = "regex-2024.9.11-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d05ac6fa06959c4172eccd99a222e1fbf17b5670c4d596cb1e5cde99600674c4"},
|
518 |
+
{file = "regex-2024.9.11-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:040562757795eeea356394a7fb13076ad4f99d3c62ab0f8bdfb21f99a1f85664"},
|
519 |
+
{file = "regex-2024.9.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6113c008a7780792efc80f9dfe10ba0cd043cbf8dc9a76ef757850f51b4edc50"},
|
520 |
+
{file = "regex-2024.9.11-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8e5fb5f77c8745a60105403a774fe2c1759b71d3e7b4ca237a5e67ad066c7199"},
|
521 |
+
{file = "regex-2024.9.11-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:54d9ff35d4515debf14bc27f1e3b38bfc453eff3220f5bce159642fa762fe5d4"},
|
522 |
+
{file = "regex-2024.9.11-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df5cbb1fbc74a8305b6065d4ade43b993be03dbe0f8b30032cced0d7740994bd"},
|
523 |
+
{file = "regex-2024.9.11-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:7fb89ee5d106e4a7a51bce305ac4efb981536301895f7bdcf93ec92ae0d91c7f"},
|
524 |
+
{file = "regex-2024.9.11-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a738b937d512b30bf75995c0159c0ddf9eec0775c9d72ac0202076c72f24aa96"},
|
525 |
+
{file = "regex-2024.9.11-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e28f9faeb14b6f23ac55bfbbfd3643f5c7c18ede093977f1df249f73fd22c7b1"},
|
526 |
+
{file = "regex-2024.9.11-cp311-cp311-win32.whl", hash = "sha256:18e707ce6c92d7282dfce370cd205098384b8ee21544e7cb29b8aab955b66fa9"},
|
527 |
+
{file = "regex-2024.9.11-cp311-cp311-win_amd64.whl", hash = "sha256:313ea15e5ff2a8cbbad96ccef6be638393041b0a7863183c2d31e0c6116688cf"},
|
528 |
+
{file = "regex-2024.9.11.tar.gz", hash = "sha256:6c188c307e8433bcb63dc1915022deb553b4203a70722fc542c363bf120a01fd"},
|
529 |
+
]
|
530 |
+
|
531 |
+
[[package]]
|
532 |
+
name = "requests"
|
533 |
+
version = "2.32.3"
|
534 |
+
requires_python = ">=3.8"
|
535 |
+
summary = "Python HTTP for Humans."
|
536 |
+
groups = ["default"]
|
537 |
+
dependencies = [
|
538 |
+
"certifi>=2017.4.17",
|
539 |
+
"charset-normalizer<4,>=2",
|
540 |
+
"idna<4,>=2.5",
|
541 |
+
"urllib3<3,>=1.21.1",
|
542 |
+
]
|
543 |
+
files = [
|
544 |
+
{file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"},
|
545 |
+
{file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"},
|
546 |
+
]
|
547 |
+
|
548 |
+
[[package]]
|
549 |
+
name = "safetensors"
|
550 |
+
version = "0.4.5"
|
551 |
+
requires_python = ">=3.7"
|
552 |
+
summary = ""
|
553 |
+
groups = ["default"]
|
554 |
+
files = [
|
555 |
+
{file = "safetensors-0.4.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:21f848d7aebd5954f92538552d6d75f7c1b4500f51664078b5b49720d180e47c"},
|
556 |
+
{file = "safetensors-0.4.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bb07000b19d41e35eecef9a454f31a8b4718a185293f0d0b1c4b61d6e4487971"},
|
557 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09dedf7c2fda934ee68143202acff6e9e8eb0ddeeb4cfc24182bef999efa9f42"},
|
558 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:59b77e4b7a708988d84f26de3ebead61ef1659c73dcbc9946c18f3b1786d2688"},
|
559 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d3bc83e14d67adc2e9387e511097f254bd1b43c3020440e708858c684cbac68"},
|
560 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39371fc551c1072976073ab258c3119395294cf49cdc1f8476794627de3130df"},
|
561 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6c19feda32b931cae0acd42748a670bdf56bee6476a046af20181ad3fee4090"},
|
562 |
+
{file = "safetensors-0.4.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a659467495de201e2f282063808a41170448c78bada1e62707b07a27b05e6943"},
|
563 |
+
{file = "safetensors-0.4.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bad5e4b2476949bcd638a89f71b6916fa9a5cae5c1ae7eede337aca2100435c0"},
|
564 |
+
{file = "safetensors-0.4.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:a3a315a6d0054bc6889a17f5668a73f94f7fe55121ff59e0a199e3519c08565f"},
|
565 |
+
{file = "safetensors-0.4.5-cp311-none-win32.whl", hash = "sha256:a01e232e6d3d5cf8b1667bc3b657a77bdab73f0743c26c1d3c5dd7ce86bd3a92"},
|
566 |
+
{file = "safetensors-0.4.5-cp311-none-win_amd64.whl", hash = "sha256:cbd39cae1ad3e3ef6f63a6f07296b080c951f24cec60188378e43d3713000c04"},
|
567 |
+
{file = "safetensors-0.4.5.tar.gz", hash = "sha256:d73de19682deabb02524b3d5d1f8b3aaba94c72f1bbfc7911b9b9d5d391c0310"},
|
568 |
+
]
|
569 |
+
|
570 |
+
[[package]]
|
571 |
+
name = "sniffio"
|
572 |
+
version = "1.3.1"
|
573 |
+
requires_python = ">=3.7"
|
574 |
+
summary = "Sniff out which async library your code is running under"
|
575 |
+
groups = ["default"]
|
576 |
+
files = [
|
577 |
+
{file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"},
|
578 |
+
{file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"},
|
579 |
+
]
|
580 |
+
|
581 |
+
[[package]]
|
582 |
+
name = "starlette"
|
583 |
+
version = "0.41.2"
|
584 |
+
requires_python = ">=3.8"
|
585 |
+
summary = "The little ASGI library that shines."
|
586 |
+
groups = ["default"]
|
587 |
+
dependencies = [
|
588 |
+
"anyio<5,>=3.4.0",
|
589 |
+
"typing-extensions>=3.10.0; python_version < \"3.10\"",
|
590 |
+
]
|
591 |
+
files = [
|
592 |
+
{file = "starlette-0.41.2-py3-none-any.whl", hash = "sha256:fbc189474b4731cf30fcef52f18a8d070e3f3b46c6a04c97579e85e6ffca942d"},
|
593 |
+
{file = "starlette-0.41.2.tar.gz", hash = "sha256:9834fd799d1a87fd346deb76158668cfa0b0d56f85caefe8268e2d97c3468b62"},
|
594 |
+
]
|
595 |
+
|
596 |
+
[[package]]
|
597 |
+
name = "sympy"
|
598 |
+
version = "1.13.1"
|
599 |
+
requires_python = ">=3.8"
|
600 |
+
summary = "Computer algebra system (CAS) in Python"
|
601 |
+
groups = ["default"]
|
602 |
+
marker = "python_version >= \"3.9\""
|
603 |
+
dependencies = [
|
604 |
+
"mpmath<1.4,>=1.1.0",
|
605 |
+
]
|
606 |
+
files = [
|
607 |
+
{file = "sympy-1.13.1-py3-none-any.whl", hash = "sha256:db36cdc64bf61b9b24578b6f7bab1ecdd2452cf008f34faa33776680c26d66f8"},
|
608 |
+
{file = "sympy-1.13.1.tar.gz", hash = "sha256:9cebf7e04ff162015ce31c9c6c9144daa34a93bd082f54fd8f12deca4f47515f"},
|
609 |
+
]
|
610 |
+
|
611 |
+
[[package]]
|
612 |
+
name = "tokenizers"
|
613 |
+
version = "0.20.1"
|
614 |
+
requires_python = ">=3.7"
|
615 |
+
summary = ""
|
616 |
+
groups = ["default"]
|
617 |
+
dependencies = [
|
618 |
+
"huggingface-hub<1.0,>=0.16.4",
|
619 |
+
]
|
620 |
+
files = [
|
621 |
+
{file = "tokenizers-0.20.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:4a717dcb08f2dabbf27ae4b6b20cbbb2ad7ed78ce05a829fae100ff4b3c7ff15"},
|
622 |
+
{file = "tokenizers-0.20.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3f84dad1ff1863c648d80628b1b55353d16303431283e4efbb6ab1af56a75832"},
|
623 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:929c8f3afa16a5130a81ab5079c589226273ec618949cce79b46d96e59a84f61"},
|
624 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d10766473954397e2d370f215ebed1cc46dcf6fd3906a2a116aa1d6219bfedc3"},
|
625 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9300fac73ddc7e4b0330acbdda4efaabf74929a4a61e119a32a181f534a11b47"},
|
626 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0ecaf7b0e39caeb1aa6dd6e0975c405716c82c1312b55ac4f716ef563a906969"},
|
627 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5170be9ec942f3d1d317817ced8d749b3e1202670865e4fd465e35d8c259de83"},
|
628 |
+
{file = "tokenizers-0.20.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ef3f1ae08fa9aea5891cbd69df29913e11d3841798e0bfb1ff78b78e4e7ea0a4"},
|
629 |
+
{file = "tokenizers-0.20.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ee86d4095d3542d73579e953c2e5e07d9321af2ffea6ecc097d16d538a2dea16"},
|
630 |
+
{file = "tokenizers-0.20.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:86dcd08da163912e17b27bbaba5efdc71b4fbffb841530fdb74c5707f3c49216"},
|
631 |
+
{file = "tokenizers-0.20.1-cp311-none-win32.whl", hash = "sha256:9af2dc4ee97d037bc6b05fa4429ddc87532c706316c5e11ce2f0596dfcfa77af"},
|
632 |
+
{file = "tokenizers-0.20.1-cp311-none-win_amd64.whl", hash = "sha256:899152a78b095559c287b4c6d0099469573bb2055347bb8154db106651296f39"},
|
633 |
+
{file = "tokenizers-0.20.1.tar.gz", hash = "sha256:84edcc7cdeeee45ceedb65d518fffb77aec69311c9c8e30f77ad84da3025f002"},
|
634 |
+
]
|
635 |
+
|
636 |
+
[[package]]
|
637 |
+
name = "torch"
|
638 |
+
version = "2.5.0"
|
639 |
+
requires_python = ">=3.8.0"
|
640 |
+
summary = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
641 |
+
groups = ["default"]
|
642 |
+
dependencies = [
|
643 |
+
"filelock",
|
644 |
+
"fsspec",
|
645 |
+
"jinja2",
|
646 |
+
"networkx",
|
647 |
+
"nvidia-cublas-cu12==12.4.5.8; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
648 |
+
"nvidia-cuda-cupti-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
649 |
+
"nvidia-cuda-nvrtc-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
650 |
+
"nvidia-cuda-runtime-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
651 |
+
"nvidia-cudnn-cu12==9.1.0.70; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
652 |
+
"nvidia-cufft-cu12==11.2.1.3; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
653 |
+
"nvidia-curand-cu12==10.3.5.147; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
654 |
+
"nvidia-cusolver-cu12==11.6.1.9; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
655 |
+
"nvidia-cusparse-cu12==12.3.1.170; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
656 |
+
"nvidia-nccl-cu12==2.21.5; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
657 |
+
"nvidia-nvjitlink-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
658 |
+
"nvidia-nvtx-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
|
659 |
+
"setuptools; python_version >= \"3.12\"",
|
660 |
+
"sympy==1.12.1; python_version == \"3.8\"",
|
661 |
+
"sympy==1.13.1; python_version >= \"3.9\"",
|
662 |
+
"triton==3.1.0; platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.13\"",
|
663 |
+
"typing-extensions>=4.8.0",
|
664 |
+
]
|
665 |
+
files = [
|
666 |
+
{file = "torch-2.5.0-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:499a68a756d3b30d10f7e0f6214dc3767b130b797265db3b1c02e9094e2a07be"},
|
667 |
+
{file = "torch-2.5.0-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:9f3df8138a1126a851440b7d5a4869bfb7c9cc43563d64fd9d96d0465b581024"},
|
668 |
+
{file = "torch-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:b81da3bdb58c9de29d0e1361e52f12fcf10a89673f17a11a5c6c7da1cb1a8376"},
|
669 |
+
{file = "torch-2.5.0-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:ba135923295d564355326dc409b6b7f5bd6edc80f764cdaef1fb0a1b23ff2f9c"},
|
670 |
+
]
|
671 |
+
|
672 |
+
[[package]]
|
673 |
+
name = "tqdm"
|
674 |
+
version = "4.66.5"
|
675 |
+
requires_python = ">=3.7"
|
676 |
+
summary = "Fast, Extensible Progress Meter"
|
677 |
+
groups = ["default"]
|
678 |
+
dependencies = [
|
679 |
+
"colorama; platform_system == \"Windows\"",
|
680 |
+
]
|
681 |
+
files = [
|
682 |
+
{file = "tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd"},
|
683 |
+
{file = "tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad"},
|
684 |
+
]
|
685 |
+
|
686 |
+
[[package]]
|
687 |
+
name = "transformers"
|
688 |
+
version = "4.46.0"
|
689 |
+
requires_python = ">=3.8.0"
|
690 |
+
summary = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow"
|
691 |
+
groups = ["default"]
|
692 |
+
dependencies = [
|
693 |
+
"filelock",
|
694 |
+
"huggingface-hub<1.0,>=0.23.2",
|
695 |
+
"numpy>=1.17",
|
696 |
+
"packaging>=20.0",
|
697 |
+
"pyyaml>=5.1",
|
698 |
+
"regex!=2019.12.17",
|
699 |
+
"requests",
|
700 |
+
"safetensors>=0.4.1",
|
701 |
+
"tokenizers<0.21,>=0.20",
|
702 |
+
"tqdm>=4.27",
|
703 |
+
]
|
704 |
+
files = [
|
705 |
+
{file = "transformers-4.46.0-py3-none-any.whl", hash = "sha256:e161268ae8bee315eb9e9b4c0b27f1bd6980f91e0fc292d75249193d339704c0"},
|
706 |
+
{file = "transformers-4.46.0.tar.gz", hash = "sha256:3a9e2eb537094db11c3652334d281afa4766c0e5091c4dcdb454e9921bb0d2b7"},
|
707 |
+
]
|
708 |
+
|
709 |
+
[[package]]
|
710 |
+
name = "triton"
|
711 |
+
version = "3.1.0"
|
712 |
+
summary = "A language and compiler for custom Deep Learning operations"
|
713 |
+
groups = ["default"]
|
714 |
+
marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.13\""
|
715 |
+
dependencies = [
|
716 |
+
"filelock",
|
717 |
+
]
|
718 |
+
files = [
|
719 |
+
{file = "triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f34f6e7885d1bf0eaaf7ba875a5f0ce6f3c13ba98f9503651c1e6dc6757ed5c"},
|
720 |
+
]
|
721 |
+
|
722 |
+
[[package]]
|
723 |
+
name = "typing-extensions"
|
724 |
+
version = "4.12.2"
|
725 |
+
requires_python = ">=3.8"
|
726 |
+
summary = "Backported and Experimental Type Hints for Python 3.8+"
|
727 |
+
groups = ["default"]
|
728 |
+
files = [
|
729 |
+
{file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
|
730 |
+
{file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
|
731 |
+
]
|
732 |
+
|
733 |
+
[[package]]
|
734 |
+
name = "urllib3"
|
735 |
+
version = "2.2.3"
|
736 |
+
requires_python = ">=3.8"
|
737 |
+
summary = "HTTP library with thread-safe connection pooling, file post, and more."
|
738 |
+
groups = ["default"]
|
739 |
+
files = [
|
740 |
+
{file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"},
|
741 |
+
{file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"},
|
742 |
+
]
|
743 |
+
|
744 |
+
[[package]]
|
745 |
+
name = "uvicorn"
|
746 |
+
version = "0.32.0"
|
747 |
+
requires_python = ">=3.8"
|
748 |
+
summary = "The lightning-fast ASGI server."
|
749 |
+
groups = ["default"]
|
750 |
+
dependencies = [
|
751 |
+
"click>=7.0",
|
752 |
+
"h11>=0.8",
|
753 |
+
"typing-extensions>=4.0; python_version < \"3.11\"",
|
754 |
+
]
|
755 |
+
files = [
|
756 |
+
{file = "uvicorn-0.32.0-py3-none-any.whl", hash = "sha256:60b8f3a5ac027dcd31448f411ced12b5ef452c646f76f02f8cc3f25d8d26fd82"},
|
757 |
+
{file = "uvicorn-0.32.0.tar.gz", hash = "sha256:f78b36b143c16f54ccdb8190d0a26b5f1901fe5a3c777e1ab29f26391af8551e"},
|
758 |
+
]
|
pyproject.toml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "KR_API"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "Default template for PDM package"
|
5 |
+
authors = [
|
6 |
+
{name = "kauabarros-24", email = "[email protected]"},
|
7 |
+
]
|
8 |
+
dependencies = [
|
9 |
+
"transformers>=4.46.0",
|
10 |
+
"fastapi>=0.115.3",
|
11 |
+
"uvicorn>=0.32.0",
|
12 |
+
"torch>=2.5.0",
|
13 |
+
]
|
14 |
+
requires-python = "==3.11.*"
|
15 |
+
readme = "README.md"
|
16 |
+
license = {text = "MIT"}
|
17 |
+
|
18 |
+
|
19 |
+
[tool.pdm]
|
20 |
+
distribution = false
|
21 |
+
|
22 |
+
[tool.pdm.scripts]
|
23 |
+
fast = "uvicorn src.kr_api.main:app --reload"
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
transformers
|
3 |
+
fastapi
|
src/kr_api/__init__.py
ADDED
File without changes
|
src/kr_api/kalium_recommend/.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
src/kr_api/kalium_recommend/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- google-bert/bert-base-uncased
|
4 |
+
pipeline_tag: sentence-similarity
|
5 |
+
---
|
6 |
+
This AI is building from Bert-Base-Uncased. It's specialized in recommend ad based in user profile.
|
7 |
+
It's building for hackathon.
|
8 |
+
Author: Kauã Martins Barros
|
9 |
+
github: kaubarros-24
|
10 |
+
email: [email protected]
|
src/kr_api/kalium_recommend/config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "kalium_recommend",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 3072,
|
17 |
+
"label2id": {
|
18 |
+
"LABEL_0": 0
|
19 |
+
},
|
20 |
+
"layer_norm_eps": 1e-12,
|
21 |
+
"max_position_embeddings": 512,
|
22 |
+
"model_type": "bert",
|
23 |
+
"num_attention_heads": 12,
|
24 |
+
"num_epochs": 10,
|
25 |
+
"num_hidden_layers": 12,
|
26 |
+
"pad_token_id": 0,
|
27 |
+
"position_embedding_type": "absolute",
|
28 |
+
"problem_type": "regression",
|
29 |
+
"torch_dtype": "float32",
|
30 |
+
"transformers_version": "4.45.1",
|
31 |
+
"type_vocab_size": 2,
|
32 |
+
"use_cache": true,
|
33 |
+
"vocab_size": 30522
|
34 |
+
}
|
src/kr_api/kalium_recommend/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdbd933f1156b7d3984263f418c941809d95c133c511fe99b882bd5156e3ff49
|
3 |
+
size 437955572
|
src/kr_api/kalium_recommend/requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
transformers
|
src/kr_api/kalium_recommend/special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
src/kr_api/kalium_recommend/tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
src/kr_api/kalium_recommend/vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/kr_api/main.py
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
from src.kr_api.routes.ai_routes import router as ai_router
|
3 |
+
from src.kr_api.routes.system import router as system_router
|
4 |
+
app = FastAPI()
|
5 |
+
from src.kr_api.models.ai_request import Request
|
6 |
+
import torch
|
7 |
+
from transformers import BertForSequenceClassification, BertTokenizer
|
8 |
+
|
9 |
+
model_name = "src/kr_api/kalium_recommend"
|
10 |
+
model = BertForSequenceClassification.from_pretrained(model_name)
|
11 |
+
tokenizer = BertTokenizer.from_pretrained(model_name)
|
12 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
+
model.to(device)
|
14 |
+
|
15 |
+
|
16 |
+
@app.post("/ai")
|
17 |
+
async def ai(request: Request):
|
18 |
+
text = (
|
19 |
+
f"This ads is focused in: {request.audience}"
|
20 |
+
f"This category is: {request.category} "
|
21 |
+
f"This area is: {request.area}"
|
22 |
+
f"This sub area of ads: {request.sub_area}"
|
23 |
+
)
|
24 |
+
|
25 |
+
inputs = tokenizer.encode_plus(
|
26 |
+
text,
|
27 |
+
add_special_tokens=True,
|
28 |
+
return_tensors="pt",
|
29 |
+
padding='max_length',
|
30 |
+
truncation=True,
|
31 |
+
max_length=255
|
32 |
+
)
|
33 |
+
input_ids = inputs['input_ids'].to(device)
|
34 |
+
attention_mask = inputs['attention_mask'].to(device)
|
35 |
+
|
36 |
+
with torch.no_grad():
|
37 |
+
outputs = model(input_ids, attention_mask=attention_mask)
|
38 |
+
logits = outputs.logits
|
39 |
+
|
40 |
+
return {"similarity": logits.tolist()}
|
src/kr_api/models/ai_request.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pydantic import BaseModel
|
2 |
+
|
3 |
+
class Request(BaseModel):
|
4 |
+
audience: str
|
5 |
+
category: str
|
6 |
+
area: str
|
7 |
+
sub_area: str
|
src/kr_api/routes/ai_routes.py
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from src.kr_api.models.ai_request import Request
|
2 |
+
import torch
|
3 |
+
from fastapi import APIRouter
|
4 |
+
from transformers import BertForSequenceClassification, BertTokenizer
|
5 |
+
|
6 |
+
model_name = "src/kr_api/kalium_recommend"
|
7 |
+
model = BertForSequenceClassification.from_pretrained(model_name)
|
8 |
+
tokenizer = BertTokenizer.from_pretrained(model_name)
|
9 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
10 |
+
model.to(device)
|
11 |
+
|
12 |
+
|
13 |
+
router = APIRouter()
|
14 |
+
@router.post("/ai")
|
15 |
+
async def ai(request: Request):
|
16 |
+
text = (
|
17 |
+
f"This ads is focused in: {request.audience}"
|
18 |
+
f"This category is: {request.category} "
|
19 |
+
f"This area is: {request.area}"
|
20 |
+
f"This sub area of ads: {request.sub_area}"
|
21 |
+
)
|
22 |
+
|
23 |
+
inputs = tokenizer.encode_plus(
|
24 |
+
text,
|
25 |
+
add_special_tokens=True,
|
26 |
+
return_tensors="pt",
|
27 |
+
padding='max_length',
|
28 |
+
truncation=True,
|
29 |
+
max_length=255
|
30 |
+
)
|
31 |
+
input_ids = inputs['input_ids'].to(device)
|
32 |
+
attention_mask = inputs['attention_mask'].to(device)
|
33 |
+
|
34 |
+
with torch.no_grad():
|
35 |
+
outputs = model(input_ids, attention_mask=attention_mask)
|
36 |
+
logits = outputs.logits
|
37 |
+
|
38 |
+
return {"similarity": logits.tolist()}
|
src/kr_api/routes/system.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import APIRouter
|
2 |
+
|
3 |
+
router = APIRouter()
|
4 |
+
|
5 |
+
@router.get("/")
|
6 |
+
async def system():
|
7 |
+
print("System in running in port 8000")
|
8 |
+
return {"message": "System is running!"}
|
tests/__init__.py
ADDED
File without changes
|