Skip to content

Relationship to llama.cpp #10

Closed
Closed

Description

First of all: CONGRATS ON YOUR AMAZING RESEARCH WORK.

Considering that this is using GGML and seems based directly on llama.cpp:

Why is this a separate project to llama.cpp, given that llama.cpp already supports BitNet ternary quants? (ggml-org/llama.cpp#8151)

Are these simply more optimised kernels?
If so, how do they compare to llama's implementation?
Can/should they be contributed back to llama.cpp?

Activity

  1. sd983527 commented on Oct 20, 2024

    @sd983527
    Contributor

    Great question! Yes this is inherited from llama.cpp as noted in the Acknowledge section, we had pushed our model support code into llama.cpp via ggml-org/llama.cpp#7931, however there are some framework refinements in bitnet.cpp that have hard conflicts with original llama.cpp code, so that a new repo might be needed.
    Comparing to llama.cpp, bitnet.cpp's inference result is exact the same as the "ground truth" one, we will add more explanations in the Readme file later, thanks.

  2. eabase commented on Oct 20, 2024

    @eabase

    Yan Xia (@sd983527)

    ..there are some framework refinements in bitnet.cpp that have hard conflicts...

    Sorry, but this doesn't sound like a very credible reason. Especially given the MS history of taking over other (often FOSS) code and make it their own. It should be stated clearly up-front and not as a footnote, that this code is a fork from llama.cpp, and exactly why this fork was needed.

    Still waiting for someone to address the questions from Mathijs de Bruin (@dokterbob) .

  3. ZipingL commented on Oct 21, 2024

    @ZipingL

    Can someone just do a pull request of what’s been done in here to llama.cpp? Thanks this is a better practice for me.

  4. ExtReMLapin commented on Oct 21, 2024

    @ExtReMLapin

    Can someone just do a pull request of what’s been done in here to llama.cpp? Thanks this is a better practice for me.

    Maybe try reading the contributor answer next time

  5. ozbillwang commented on Oct 22, 2024

    @ozbillwang

    I share the same concerns.

    After checking the submodule in this repository (I personally dislike using submodules in Git), I found that it relies on an outdated fork of the original llama.cpp project. it is 320 commits behind

    https://github.com/Eddie-Wang1120/llama.cpp.git

    https://github.com/microsoft/BitNet/blob/main/.gitmodules#L3

    [submodule "3rdparty/llama.cpp"]
    	path = 3rdparty/llama.cpp
    	url = https://github.com/Eddie-Wang1120/llama.cpp.git
    	branch = merge-dev
    

    Will Microsoft seriously support this project? This repository appears more like a personal project.

  6. eabase commented on Oct 22, 2024

    @eabase

    Bill Wang (@ozbillwang)

    Thanks for investigating! 💯

    Will Microsoft seriously support this project?
    This repository appears more like a personal project.

    Indeed very suspicions, and seem more like some kind of clickbait project. They racked up 10,000 stars in no time, and nearly no commits or useful feedback, since. I hate to sound negative, but I hate even more to get involved in these kind of unethical/corporate side hustles. In addition, I also hate sub-modules! :( Avoiding huge number of various external files may be the very reason why llama.cpp was so successful:

    1 screen, 1 editor, 1 page, 1 tab and 1 file! 🥇

  7. eugenehp commented on Nov 8, 2024

    @eugenehp

    It would be great to see the upstream PR from their fork of llama.cpp

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