Code Monkey home page Code Monkey logo

Comments (6)

jim-plus avatar jim-plus commented on June 27, 2024

Should the pretokenizer not be llama-bpe?

from llama.cpp.

morrissas avatar morrissas commented on June 27, 2024

i have same problem
螢幕擷取畫面 2024-06-09 212151

from llama.cpp.

jabberjabberjabber avatar jabberjabberjabber commented on June 27, 2024

It appears this happens when the creator uses the wrong tokenizer config:

You can fix it using this script:

llama.cpp/gguf-py/scripts$ python gguf-new-metadata.py --token_pre llama-bpe input output

from llama.cpp.

jim-plus avatar jim-plus commented on June 27, 2024

Confirmed that the following works with the version I pulled yesterday, and the corrected GGUF will load in current ooba. That still leaves a question of why smaug-bpe was selected for Llama 3 8B instead of llama-bpe. It seems the decision arises in convert-hf-to-gguf.py and there is no apparent option to override that with a command-line option.

python llama.cpp/gguf-py/scripts/gguf-new-metadata.py --pre-tokenizer llama-bpe input_gguf output_gguf

from llama.cpp.

Galunid avatar Galunid commented on June 27, 2024

Let me close the issue since it happens on the model's creator side.

from llama.cpp.

jim-plus avatar jim-plus commented on June 27, 2024

Sure. I have a more focused question regarding convert-hf-to-gguf.py and its choice of default pre-tokenizer, but I will explore the script more before asking it.

from llama.cpp.

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.