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
INT4 model shows bad perf than FP32 on Intel CPU,why?
#13
by Sakura10151 - opened
int4 model log shows it will consume hundreds of times more time than the fp32 model on SelfAttention