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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b-int4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
for transformers 4.47
zRVerified signaturea954550 -
support transformers 4.47
zRVerified signature548388c
-
Update README.md
Verified signatured93643f -
Update README.md
Verified signature63d11d4
-
Fix use_cache=False
duzx1666ecaf1
-
Fix tokenizer for transformers 0.34
duzx16833de79
-
Update use case
duzx16382cc70
-
Update quantized gemm kernel
duzx165579a9f -
Fix prefix projection
duzx16Use inference mode8049563 -
Fix tokenization space
duzx1671189e7
-
Add prefix prompt
duzx16eb3e683
-
Update slack link
duzx16cdb65fd
-
Add default model type
duzx16939776a -
Update modeling_chatglm.py
duzx1699564c0
-
Add pad_token_id
duzx16ccb0160 -
Fix arange_cpu
duzx16be192fb -
Update requirement
duzx165b97c61 -
Add cpu kernel
duzx168b97bf2
-
Merge branch 'main' of https://huggingface.co/THUDM/chatglm2-6b-int4
duzx163cbefb1 -
Init commit
duzx168668ecb -
Upload tokenizer.model with huggingface_hub
8fa9b79 -
Upload pytorch_model.bin with huggingface_hub
aa7d1bd -
initial commit
Zhengxiao Du85dc392