Skip to content

protobuf version #698

Closed
Closed

Description

@jiewpeng

Is there any reason why protobuf is pinned to less than 4? Some of the other packages I use require protobuf >=4, so I cannot install unsloth together with the other packages. Just trying to understand if there are any compatibility issues with protobuf >=4, since the dependencies specified by unsloth (e.g. the huggingface packages do not pin protobuf to <4)

Activity

  1. danielhanchen commented on Jul 1, 2024

    @danielhanchen
    Member

    So sorry on the delay! Just relocated to SF hence the delay.

    You can try editing pyproject.toml and removing the version - the issue is for sentencepiece not really functioning correctly with manually editted tokenizers

  2. jiewpeng commented on Jul 1, 2024

    @jiewpeng
    Author

    Ah thanks, just wanted to confirm that it was "safe" to install a different version of protobuf. So it seems that as long as I don't manually edit a tokenizer, it would be okay. Will proceed to close this issue then.

  3. danielhanchen commented on Jul 1, 2024

    @danielhanchen
    Member

    Yep it should be safe!

  4. MattGPT-ai commented on Mar 18, 2025

    @MattGPT-ai

    Would it be possible to bump this at any point? This is a pretty old version of protobuf to be pinned to that is getting more and more compatibility issues. It would be nice to be able to use this in production without having to fork the repo with an edited pyproject.toml.

    If this isn't a hard requirement it seems better to allow the flexibility, someone can still add that constraint downstream if it works with their other dependencies

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions