Skip to content

Implement Sentencepiece Unigram tokenizer #7186

Closed

Description

@arthurvb

Is your feature request related to a problem? Please describe.
I want to use a multilingual model from Huggingface ( https://huggingface.co/intfloat/multilingual-e5-large ) and the tokenizer is a sentencepiece unigram tokenizer, so I am unable to port it to C#/ONNX

Describe the solution you'd like
Support for the unigram sentencepiece tokenizer in the Microsoft.ML.Tokenizers package.

Describe alternatives you've considered
Blingfire, but seems not maintained anymore and unclear if it would return exactly the same token-id's.

Thank you for your time and effort (the library in general is great!)

Activity

  1. added and removed
    untriagedNew issue has not been triaged
    on Aug 5, 2024
  2. ericstj commented on Aug 5, 2024

    @ericstj
    Member

    @tarekgh do any of our existing tokenizers support this, or is this new work?

  3. tarekgh commented on Aug 5, 2024

    @tarekgh
    Member

    do any of our existing tokenizers support this, or is this new work?

    This is a new model that needs to implement.

  4. self-assigned this
    on Aug 5, 2024
  5. added this to the ML.NET Future milestone on Aug 6, 2024
  6. locked and limited conversation to collaborators on Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestin-prA pull request is open to resolve this issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions