THUDM / ChatGLM-6B

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
Apache License 2.0
40.47k stars 5.19k forks source link

AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf' #1393

Open JR-s763 opened 1 year ago

JR-s763 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Is this a model check point for proper loading or an int4 issue, has anyone encountered it?

Expected Behavior

none

Steps To Reproduce

none

Environment

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

Anything else?

none

eric-0x72 commented 1 year ago

any solution?

JR-s763 commented 1 year ago

Yes,make sure you have executed "pip install -r requirements.txt"

eric-0x72 commented 1 year ago

pip install cpm_kernels