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

NameError: name 'round_up' is not defined[BUG/Help] <title> #272

Open
1 task done
cuizhiyan opened this issue Jul 10, 2023 · 4 comments
Open
1 task done

NameError: name 'round_up' is not defined[BUG/Help] <title> #272

cuizhiyan opened this issue Jul 10, 2023 · 4 comments

Comments

@cuizhiyan
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

p-tuning method is used to tune the ADGEN dataset. The default super parameters are used.
so how to fix it?

delete " –quantization_bit 4 " works for me.
but i need to use it with quantization.

Expected Behavior

No response

Steps To Reproduce

bash train.sh

Environment

- OS:Linux
- Python:3.8
- Transformers:4.30.2
- PyTorch:2.0.0
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :True

Anything else?

No response

@Dicer-Zz
Copy link

Quantization rely on cpm_kernels. Install it by:

pip install cpm_kernels

@cuizhiyan
Copy link
Author

pip install cpm_kernels

it works. Thanks a lot

@todochenxi
Copy link

Thanks!

@RonaldoPeng
Copy link

Quantization rely on cpm_kernels. Install it by:

pip install cpm_kernels

It really works. Thanks.

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

4 participants