Skip to content

Commit 02d7f95

Browse files
Merge pull request #282 from StephanAkkerman/feat/stephan/update-dependencies
Update dependencies
2 parents be78237 + 7cc012d commit 02d7f95

3 files changed

Lines changed: 22 additions & 31 deletions

File tree

.github/workflows/pyversions.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,23 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.9", "3.10", "3.11", "3.12"] #, "3.13"]
20+
python-version: ["3.10", "3.11", "3.12"] #, "3.13"]
2121

2222
steps:
2323
- uses: actions/checkout@v4
2424

2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: ${{ matrix.python-version }}
29-
30-
- name: Display Python version
31-
run: python -c "import sys; print(sys.version)"
32-
33-
- name: Cache pip dependencies
34-
uses: actions/cache@v4
35-
with:
36-
path: ~/.cache/pip
37-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
38-
restore-keys: |
39-
${{ runner.os }}-pip-
40-
41-
- name: Install dependencies
28+
python-version: ${{ matrix.python-version }}
29+
cache: 'pip' # enable built-in cache
30+
cache-dependency-path: backend/requirements.txt
31+
32+
- name: Resolve dependencies only
4233
run: |
4334
cd backend
44-
python -m pip install --upgrade pip wheel setuptools
45-
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu128
46-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
35+
python -m pip install --upgrade pip
36+
# Resolve requirements and editable package - no wheels pulled, no files installed
37+
python -m pip install --dry-run -e . -r requirements.txt
38+
4739

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</p>
88

99
<p align="center">
10-
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/StephanAkkerman/mnemorai/pyversions.yml?label=python%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12">
10+
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/StephanAkkerman/mnemorai/pyversions.yml?label=python%203.10%20%7C%203.11%20%7C%203.12">
1111
<img src="https://img.shields.io/github/license/StephanAkkerman/mnemorai.svg?color=g" alt="License">
1212
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black"></a>
1313
<a href="https://discord.gg/z56zRXtNR5"><img src="https://dcbadge.limes.pink/api/server/z56zRXtNR5?style=flat" alt="Discord Shield"/></a>
@@ -147,7 +147,7 @@ For a containerized setup, refer to the Docker instructions: [backend/docker/REA
147147
* Install GPU-specific requirements:
148148
```bash
149149
cd backend
150-
pip install -r gpu-requirements.txt
150+
pip install . --extra-index-url https://download.pytorch.org/whl/cu128
151151
```
152152

153153
5. **Configure AnkiConnect:**

backend/requirements.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
# Torch dependencies
2-
torch==2.5.1
3-
torchaudio==2.5.1
4-
torchvision==0.20.1
2+
torch==2.7.0
53
# Huggingface dependencies
6-
transformers[sentencepiece]==4.47.1
4+
transformers[sentencepiece]==4.51.3
75
diffusers==0.33.1
8-
datasets==3.6.0
9-
accelerate==1.7.0
6+
datasets==3.5.0
7+
accelerate==1.5.2
108
huggingface-hub==0.30.2
119
bitsandbytes==0.45.5
1210
peft==0.15.2
1311
# Common dependencies
14-
numpy==1.26.4
12+
numpy==2.2.6
1513
pandas==2.2.3
16-
# Translation dependencies
14+
# TTS
1715
gtts==2.5.4
16+
# Translation dependencies
1817
googletrans==4.0.2
1918
pycountry==24.6.1
2019
# API dependencies
2120
fastapi==0.115.12
2221
uvicorn[standard]==0.34.1
2322
# Performance dependencies
24-
xformers==0.0.29
23+
xformers==0.0.30
2524
# flash_attn==2.7.3; sys_platform == 'linux'
26-
triton-windows<3.2; sys_platform == 'win32' # for torch > 2.4
27-
triton==3.1.0; sys_platform == 'linux'
25+
triton-windows==3.3.0.post19; sys_platform == 'win32'
26+
triton==3.3.0; sys_platform == 'linux'

0 commit comments

Comments
 (0)