Giter VIP home page Giter VIP logo

Comments (9)

xenova avatar xenova commented on July 29, 2024 2

Will most likely do one tomorrow. Just finalizing a few other things. :)

from transformers.js.

domleboss97 avatar domleboss97 commented on July 29, 2024 1

@xenova Any thoughts on this? This is preventing loading llama 3 8b, which is a bummer.

from transformers.js.

xenova avatar xenova commented on July 29, 2024

Hi there 👋 Thanks for the report!

Luckily, we already support the ByteLevel and TemplateProcessing post-processors, so the only thing needed is to implement the Sequence post-processor.

Similarly, we already support sequences of normalizers, decoders, and pre-tokenizers, and a similar pattern can be adapted for post-processors. Is this something you'd be interested in adding? If so, I'd be happy to review a PR.

from transformers.js.

zcbenz avatar zcbenz commented on July 29, 2024

Sorry I don't plan to work on this issue, I'm just reporting a random issue I met.

from transformers.js.

xenova avatar xenova commented on July 29, 2024

No worries! It's super simple, so I'll add it soon. Thanks again for reporting!

from transformers.js.

domleboss97 avatar domleboss97 commented on July 29, 2024

@xenova I am also encountering this issue. I was going to take a pass at it, but I don't understand the internals well enough to understand how to meaningfully accumulate the token_type_ids generated by post processors (ref).

from transformers.js.

xenova avatar xenova commented on July 29, 2024

Here's the rust code for it: https://github.com/huggingface/tokenizers/blob/25aee8b88c8de3c5a52e2f9cb6281d6df00ad516/tokenizers/src/processors/sequence.rs#L18-L36 and it should be easy to translate into JS.

from transformers.js.

xenova avatar xenova commented on July 29, 2024

I added support for it in #771. See here for example usage.

from transformers.js.

domleboss97 avatar domleboss97 commented on July 29, 2024

@xenova 💯 thank you, that is awesome. What cadence are you doing releases on?

from transformers.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.