GithubHelp home page GithubHelp logo

Comments (5)

nviet avatar nviet commented on May 24, 2024 3

That is because phoGPT uses tensors with bias parameter in addition to weight parameter and llama.cpp currently does not support MPT-trained model with such feature. I created a fork of llama.cpp here some months back to make it able to run phoGPT. Perhaps applying same method will also work with latest version of llama.cpp

from phogpt.

datquocnguyen avatar datquocnguyen commented on May 24, 2024 1

Thanks. I will take a look and respond back soon.

from phogpt.

datquocnguyen avatar datquocnguyen commented on May 24, 2024 1

Thanks @nviet and @xtfocus
Here is the PR I just made for llama.cpp to address this issue, following @nviet's commit with minor modifications to make 'bias' parameters optional (i.e. now it works for both MPT and PhoGPT):
ggerganov/llama.cpp#5638

from phogpt.

datquocnguyen avatar datquocnguyen commented on May 24, 2024 1

PR was merged.
I will close this issue.

from phogpt.

nntadotzip avatar nntadotzip commented on May 24, 2024

@xtfocus I faced the same issue. Then I found @nviet's solution on Huggingface, and it worked!

cd llama-cpp-python
git checkout e9bc4c4baf3f121a178dec215770ccd0ac86c28e
cd vendor
git clone https://github.com/nviet/llama.cpp
cd ..
pip install .

from phogpt.

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.