Skip to content

Commit b9509e6

Browse files
committed
📌 Use cpu version of torch
1 parent d05273e commit b9509e6

4 files changed

+15
-28
lines changed

‎pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ production = [
140140
"pillow-avif-plugin",
141141
]
142142

143+
[tool.uv.sources]
144+
torch = { index = "pytorch-cpu" }
145+
torchvision = { index = "pytorch-cpu" }
146+
147+
[[tool.uv.index]]
148+
name = "pytorch-cpu"
149+
url = "https://download.pytorch.org/whl/cpu"
150+
explicit = true
151+
143152
[build-system]
144153
requires = ["setuptools"]
145154
build-backend = "setuptools.build_meta"

‎requirements-dev.txt

+2-14
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ asgiref==3.8.1
1818
# django
1919
# django-countries
2020
async-timeout==4.0.3
21-
# via
22-
# fragdenstaat-de (pyproject.toml)
23-
# aiohttp
21+
# via fragdenstaat-de (pyproject.toml)
2422
attrs==24.2.0
2523
# via
2624
# aiohttp
@@ -422,8 +420,6 @@ enmerkar==0.7.1
422420
# via django-prices
423421
et-xmlfile==1.1.0
424422
# via openpyxl
425-
exceptiongroup==1.2.2
426-
# via pytest
427423
factory-boy==3.3.1
428424
# via
429425
# fragdenstaat-de (pyproject.toml)
@@ -860,6 +856,7 @@ setuptools==74.1.2
860856
# django-cms
861857
# geoip2
862858
# ipython
859+
# torch
863860
six==1.16.0
864861
# via
865862
# bleach
@@ -912,12 +909,6 @@ tinycss2==1.3.0
912909
# cssselect2
913910
# svglib
914911
# weasyprint
915-
tomli==2.1.0
916-
# via
917-
# djlint
918-
# ipdb
919-
# pytest
920-
# sphinx
921912
torch==2.5.1
922913
# via
923914
# fragdenstaat-de (pyproject.toml)
@@ -932,15 +923,12 @@ traitlets==5.14.3
932923
# matplotlib-inline
933924
typing-extensions==4.12.2
934925
# via
935-
# asgiref
936926
# dj-database-url
937927
# django-countries
938928
# elasticsearch-dsl
939929
# jwcrypto
940-
# multidict
941930
# psycopg
942931
# pyee
943-
# pypdf
944932
# pytest-factoryboy
945933
# python-docx
946934
# torch

‎requirements-production.txt

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ asgiref==3.8.1
1515
# django
1616
# django-countries
1717
async-timeout==4.0.3
18-
# via
19-
# fragdenstaat-de (pyproject.toml)
20-
# aiohttp
21-
# redis
18+
# via fragdenstaat-de (pyproject.toml)
2219
attrs==24.2.0
2320
# via
2421
# aiohttp
@@ -732,6 +729,7 @@ setuptools==74.1.2
732729
# via
733730
# django-cms
734731
# geoip2
732+
# torch
735733
six==1.16.0
736734
# via
737735
# bleach
@@ -768,17 +766,13 @@ torchvision==0.20.1
768766
# via fragdenstaat-de (pyproject.toml)
769767
typing-extensions==4.12.2
770768
# via
771-
# asgiref
772769
# dj-database-url
773770
# django-countries
774771
# elasticsearch-dsl
775772
# jwcrypto
776-
# multidict
777773
# psycopg
778-
# pypdf
779774
# python-docx
780775
# torch
781-
# uvicorn
782776
tzdata==2024.1
783777
# via
784778
# celery

‎requirements.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ asgiref==3.8.1
1414
# django
1515
# django-countries
1616
async-timeout==4.0.3
17-
# via
18-
# fragdenstaat-de (pyproject.toml)
19-
# aiohttp
17+
# via fragdenstaat-de (pyproject.toml)
2018
attrs==23.2.0
2119
# via
2220
# aiohttp
@@ -713,6 +711,7 @@ setuptools==74.1.2
713711
# via
714712
# django-cms
715713
# geoip2
714+
# torch
716715
six==1.16.0
717716
# via
718717
# bleach
@@ -749,14 +748,11 @@ torchvision==0.20.1
749748
# via fragdenstaat-de (pyproject.toml)
750749
typing-extensions==4.12.2
751750
# via
752-
# asgiref
753751
# dj-database-url
754752
# django-countries
755753
# elasticsearch-dsl
756754
# jwcrypto
757-
# multidict
758755
# psycopg
759-
# pypdf
760756
# python-docx
761757
# torch
762758
tzdata==2024.1

0 commit comments

Comments
 (0)