Skip to content

Making protobuf version more flexible - #2637

Merged
danielhanchen merged 4 commits into
unslothai:mainfrom
user799595:main
Jun 10, 2025
Merged

danielhanchen merged 4 commits into
unslothai:mainfrom
user799595:main

Conversation

@user799595

Copy link
Copy Markdown
Contributor

Closes #2636

I haven't done any testing though

@rolandtannous

Copy link
Copy Markdown
Contributor

@user799595 it would really help accelerate this if you do some sort of testing.

@user799595

Copy link
Copy Markdown
Contributor Author

Thanks @rolandtannous.

I did some testing.

python -m venv testvenv1
source testvenv1/bin/activate
pip install "protobuf>=4.0"
pip install .

This works as expected, installed protobuf 6.31.1.

python -m venv testvenv2
source testvenv2/bin/activate
pip install "protobuf>=4.0"
pip install ".[sentencepiece]"

This downgraded protobuf as needed:

Successfully built unsloth
Installing collected packages: unsloth, protobuf
  Attempting uninstall: protobuf
    Found existing installation: protobuf 6.31.1
    Uninstalling protobuf-6.31.1:
      Successfully uninstalled protobuf-6.31.1
Successfully installed protobuf-3.20.3 unsloth-2025.5.7

Python version 3.11.5

@user799595

Copy link
Copy Markdown
Contributor Author

Hello, is there any additional testing needed before we can merge this?

@rolandtannous

Copy link
Copy Markdown
Contributor

@user799595 hello we're just trying to stabilize performance of the package with the latest transformers version first, then we'll look into this .

@danielhanchen

Copy link
Copy Markdown
Member

Hmm protobuf is an annoyance due to sentencepiece yes

@danielhanchen

Copy link
Copy Markdown
Member

It seems like #305

@danielhanchen
danielhanchen merged commit 07b9490 into unslothai:main Jun 10, 2025
@user799595

Copy link
Copy Markdown
Contributor Author

Cheers!

abiswas-realadvice pushed a commit to abiswas-realadvice/unsloth that referenced this pull request May 14, 2026
* Making protobuf version more flexible

* Update pyproject.toml

* Update pyproject.toml

---------

Co-authored-by: Daniel Han <[email protected]>
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.

[Issue] protobuf version

3 participants