GithubHelp home page GithubHelp logo

Comments (5)

casper-hansen avatar casper-hansen commented on August 17, 2024

I’m not quite sure. I have seen this error before, but I am not sure what is causing it to happen.

Did you compile from main or did you use the pypi package?

from autoawq.

cal066 avatar cal066 commented on August 17, 2024

This is from main, git revision 8788fe1. I pointed pip to github.

from autoawq.

casper-hansen avatar casper-hansen commented on August 17, 2024

I think I understand better now. DeepSpeed is trying to copy data that does not exist. This happens because we start by initializing the model with empty weights:

AutoAWQ/awq/models/base.py

Lines 337 to 338 in 8788fe1

with init_empty_weights():
model = AutoModelForCausalLM.from_config(config=config, torch_dtype=torch_dtype, trust_remote_code=trust_remote_code)

In general, I am not sure AutoAWQ is even compatible with DeepSpeed since we rely on accelerate.
huggingface/accelerate#1530 (comment)

from autoawq.

cal066 avatar cal066 commented on August 17, 2024

That was what I suspected when I saw some comments on DeepSpeed about copying empty weights. Hopefully there is a way to stop DeepSpeed from kicking in for model types that are incompatible.

from autoawq.

casper-hansen avatar casper-hansen commented on August 17, 2024

Closing this since we use accelerate.

from autoawq.

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.