Code Monkey home page Code Monkey logo

Comments (5)

CISC avatar CISC commented on July 17, 2024 1

Before that PR this would be true as long as there are no subnormal weights, after the PR this would always be true.

from llama.cpp.

SteelPh0enix avatar SteelPh0enix commented on July 17, 2024 1

I can confirm that in fact your PR fixes this issue :)
(and that quantizing a model to f32 and then requantizing to q8_0 produces the same GGUF as quantizing to bf16 and requantizing to q8_0 with this PR, diff says there's no difference in output files and SHA256 is the same - at least in case of Llama3-Instruct-8B)

from llama.cpp.

CISC avatar CISC commented on July 17, 2024

Try #7843 this is most likely caused by a specific version of numpy (have you updated to 2.x?) and an upcasting side-effect of the conversion.

from llama.cpp.

SteelPh0enix avatar SteelPh0enix commented on July 17, 2024

Yes, i do have numpy 2.0.0 installed, so it's most likely related - i'll check it out, thanks!

from llama.cpp.

SteelPh0enix avatar SteelPh0enix commented on July 17, 2024

one question; do i assume correctly that quantizing a bf16 model to f32, and then requantizing to q8 should result in the same model as the one directly quantized from original bf16 to q8?

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.