Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'LlamaModel' object has no attribute 'split_gpus' #4

Open
seeyourcell opened this issue Mar 5, 2024 · 1 comment
Open

Comments

@seeyourcell
Copy link

when I try
CUDA_VISIBLE_DEVICES=0 python llama_simquant.py --abits 4 --nsamples 16 --seqlen 2048 --nuq --fisher --quantize --include_sparse --sparsity-threshold 0.99 --quantizer_path quantizers.pickle ;

get this error
AttributeError: 'LlamaModel' object has no attribute 'split_gpus'

what is the problem

@chooper1
Copy link
Collaborator

chooper1 commented Mar 6, 2024

Are you using an environment where you have installed the transformers library from either the "gradients" or "deployment" folder? I believe this issue is caused by a mismatch between the quantization code and the modified transformers library for gradient computation / deployment. At the moment, the quantization code isn't compatible with these environments, so to run simulated quantization you need to install transformers using pip into the kvquant conda environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants