GithubHelp home page GithubHelp logo

Comments (7)

dustydecapod avatar dustydecapod commented on August 15, 2024

this impacts both 4-bit and 3-bit quantization

from gptq-for-llama.

dustydecapod avatar dustydecapod commented on August 15, 2024

I was able to fix this by removing line 142 from file quant.py, which sets self.bias. self.bias isn't even used in that function, so this line is unnecessary, and bias is None on pretty much every layer for this model.

from gptq-for-llama.

qwopqwop200 avatar qwopqwop200 commented on August 15, 2024

This is because llama uses a linear layer with bias set to False.
This is an easily fixable problem by changing that line as you said.

from gptq-for-llama.

qwopqwop200 avatar qwopqwop200 commented on August 15, 2024

i solved it.

from gptq-for-llama.

 avatar commented on August 15, 2024

@qwopqwop200 sorry for pinging you here, but I just wanted to ask - how much VRAM would a 3-bit version of LLAMA-30B require (e.g. can it run on 16GB VRAM), and would it be fast enough (like at least a few tokens per second) on e.g. RTX A4000?

from gptq-for-llama.

qwopqwop200 avatar qwopqwop200 commented on August 15, 2024

If you do 3-bit quantization, it seems to consume about 14gb of memory at 30B. The inference rate is expected to be less than 0.1s/token.

from gptq-for-llama.

 avatar commented on August 15, 2024

@qwopqwop200 wow, thanks for all of your efforts, that's amazing! I can tolerate accuracy loss as it'll still be much better than 4-bit LLAMA 13b.

from gptq-for-llama.

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.