Skip to content

add Python 3.13t support #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

electroglyph
Copy link

@electroglyph electroglyph commented May 18, 2025

I haven't been using Fastembed lately, but decided to replace my little ONNX wrapper with Fastembed just to tidy it up.

that's when I noticed that Fastembed silently dies on import in Python 3.13t, so here's the fix I'm currently using.

this PR:

  • moves Fastembed closer to Python 3.13t compatibility

  • updates pyo3 dependency to support Python 3.13t

  • slightly updates Rust code

  • updates (unused?) test

tested on Python 3.12 and Python 3.13.3+ free-threaded.

closes #4

edit: I haven't tested the workflow, but I looked at the Github actions before I updated the workflow, and my changes should be fine.

@electroglyph
Copy link
Author

there's an open PR (huggingface/tokenizers#1774) for tokenizers which adds 3.13t support. after that gets merged this PR will make fastembed 3.13t compatible

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.

incompatible with Python 3.13t
1 participant