Skip to content

python3Packages.transformers: 4.57.3 -> 5.3.0 - #400

Merged
danieldk merged 3 commits into
mainfrom
transformers-5.3.0
Mar 26, 2026
Merged

danieldk merged 3 commits into
mainfrom
transformers-5.3.0

Conversation

@danieldk

Copy link
Copy Markdown
Member

mamba-ssm needs transformers as a test dependency. transformers was broken because of an of huggingface-hub. Had to update huggingface-hub as well to avoid a conflict between typer and typer-slim.

@danieldk
danieldk merged commit f3be105 into main Mar 26, 2026
37 checks passed
@danieldk
danieldk deleted the transformers-5.3.0 branch March 26, 2026 09:55
danieldk pushed a commit that referenced this pull request Nov 10, 2026
this pr drops the `transformers` 5.3.0 override from
`nix-builder/overlay.nix` so the builder uses the nixpkgs version
(5.17.0)

the override was added in #400 when nixpkgs had a broken 4.57.3. nixpkgs
caught up in #425 and since then the override only downgraded
transformers. after the nixpkgs bump in #831 it conflicts with
tokenizers 0.23.2, since 5.3.0 requires `tokenizers<=0.23.0`. this
breaks the mamba-ssm `ci-test`
https://github.com/huggingface/kernels-community/actions/runs/42704254952/job/129457078351

```
Checking runtime dependencies for transformers-5.3.0-py3-none-any.whl
  - tokenizers<=0.23.0,>=0.22.0 not satisfied by version 0.23.2
```

`pythonRelaxDeps` is not enough here since transformers checks the same
pin again on import. nixpkgs 5.17.0 allows `tokenizers<0.24.0` and
already depends on `typer`

built the mamba-ssm `ci-test` python env on x86_64-linux with this
branch as `kernel-builder`, transformers 5.17.0 and the env both build

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants