Code Monkey home page Code Monkey logo

Comments (4)

Chuge0335 avatar Chuge0335 commented on May 12, 2024

1)我们也发现了这个问题 ,量化后的评估占据了大部分时间,并在第一时间更新了tools/readme.md
相比于之前的命令加上了--eval 参数可以只进行量化不进行评估

python llama_quant.py decapoda-research/llama-7b-hf c4 --wbits 2 --save pyllama-7B2b.pt --eval

2)中文数据评估暂未考虑

from chinese-vicuna.

GUORUIWANG avatar GUORUIWANG commented on May 12, 2024

1)我们也发现了这个问题 ,量化后的评估占据了大部分时间,并在第一时间更新了tools/readme.md 相比于之前的命令加上了--eval 参数可以只进行量化不进行评估

python llama_quant.py decapoda-research/llama-7b-hf c4 --wbits 2 --save pyllama-7B2b.pt --eval

2)中文数据评估暂未考虑

你好,llama_quant.py 439 line 中 449行 dataloader 的作用是啥呀,为啥这里也要引入数据集呢
quantizers = llama_sequential(model, dataloader, args, dev)

from chinese-vicuna.

Chuge0335 avatar Chuge0335 commented on May 12, 2024

1)我们也发现了这个问题 ,量化后的评估占据了大部分时间,并在第一时间更新了tools/readme.md 相比于之前的命令加上了--eval 参数可以只进行量化不进行评估

python llama_quant.py decapoda-research/llama-7b-hf c4 --wbits 2 --save pyllama-7B2b.pt --eval

2)中文数据评估暂未考虑

你好,llama_quant.py 439 line 中 449行 dataloader 的作用是啥呀,为啥这里也要引入数据集呢 quantizers = llama_sequential(model, dataloader, args, dev)

1.量化过程中,需要将数据输入到模型中以确定放缩系数(scale)和上下界(max ,min)。
2.模型量化过程中参数和数据需要都需要被量化,而不是仅仅量化模型权重,所以必须输入一定的数据。
关于transformer量化的更多技术可以参考:https://lilianweng.github.io/posts/2023-01-10-inference-optimization/

from chinese-vicuna.

GUORUIWANG avatar GUORUIWANG commented on May 12, 2024

好的谢谢

from chinese-vicuna.

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.