Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0d54019
Drop Python 3.9, add Python 3.14
qgallouedec Sep 30, 2025
f69c919
style
qgallouedec Sep 30, 2025
7310796
allow prerelease
qgallouedec Oct 5, 2025
b991fd4
target python version 3.10 for ruff
qgallouedec Oct 5, 2025
4e239a6
Merge branch 'main' into py3.14
qgallouedec Oct 5, 2025
d7fe889
apply precommit
qgallouedec Oct 5, 2025
5004c95
apply precommit
qgallouedec Oct 5, 2025
0ccfe5d
strict=True
qgallouedec Oct 5, 2025
dd56aaa
revert unwanted change
qgallouedec Oct 5, 2025
b41bcbd
no py314
qgallouedec Oct 5, 2025
b691f39
fix tools type hint
qgallouedec Oct 5, 2025
b07df79
Squashed commit of the following:
qgallouedec Oct 6, 2025
68959ad
Squashed commit of the following:
qgallouedec Oct 6, 2025
cbb41f7
Merge branch 'main' into py3.14
qgallouedec Oct 6, 2025
a33e642
style
qgallouedec Oct 6, 2025
88eee87
rm prerelease
qgallouedec Oct 6, 2025
c97bb24
rm whitespace
qgallouedec Oct 6, 2025
d66ea24
revert video change
qgallouedec Oct 6, 2025
cfcec4a
some missing
qgallouedec Oct 6, 2025
a5ca7d4
style
qgallouedec Oct 6, 2025
a6263a5
Merge branch 'main' into py3.14
qgallouedec Oct 7, 2025
a108a71
Squashed commit of the following:
qgallouedec Oct 30, 2025
ea729c3
Merge branch 'main' into py3.14
qgallouedec Oct 30, 2025
b209aef
fix gold
qgallouedec Oct 30, 2025
0bb1649
Merge branch 'main' into py3.14
qgallouedec Oct 30, 2025
93673bc
Merge branch 'main' into py3.14
qgallouedec Nov 4, 2025
559288b
style
qgallouedec Nov 4, 2025
0a5277b
Merge branch 'main' into py3.14
qgallouedec Nov 4, 2025
629feef
Remove Python 3.9 deprecation warning from the codebase
qgallouedec Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
name: Tests
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
fail-fast: false
runs-on:
group: aws-g4dn-2xlarge
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ classifiers =
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14

[options]
packages = find_namespace:
python_requires = >=3.9
python_requires = >=3.10
include_package_data = True
install_requires =
accelerate>=1.4.0
Expand Down
6 changes: 0 additions & 6 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


import os
import sys
import unittest
from io import StringIO
from unittest.mock import patch
Expand All @@ -24,11 +23,6 @@
from .testing_utils import TrlTestCase


@unittest.skipIf(
sys.version_info < (3, 10),
"Transformers' generation codebase uses a Python >3.10 syntax (`str | None`), which seems to cause the CLI tests "
"to fail on Python <3.10.", # let's say it's a known issue, but not expected to be fixed, because too niche
)
class TestCLI(TrlTestCase):
def test_dpo(self):
from trl.cli import main
Expand Down
Loading