Instructions to use zai-org/chatglm2-6b-int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b-int4 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b-int4", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'
#15
by father123 - opened
AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'
请验证是否安装了cpm_kernels库
pip install cpm_kernels
请判断是硬件是否支持int4