Instructions to use zai-org/chatglm-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm-6b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturebf0f5cf -
Update README.md
Verified signature60a0a53
-
Update README
duzx168b7d335
-
Update README
duzx16619e736
-
Merge branch 'main' of https://huggingface.co/THUDM/chatglm-6b
duzx16# Conflicts: # README.md4d458d0 -
Update README
duzx160cae2a5
-
Update README.md for typo (#87)
- Update README.md for typo (2822cf3b1d28e38c2f53dba72c20f6e22a9edc3e) Co-authored-by: Bojun Feng <Bojun-Feng@users.noreply.huggingface.co>294cb13 -
Update license
duzx16d5afd73
-
Update slack link
duzx16a70fe6b
-
Update model license
duzx161d240ba
-
Update change log
duzx16a10da4c
-
Upload 8 files
942945d
-
Update slack link
55cced3
-
Update decode method in tokenizer
duzx164d0fc39
-
Add version
duzx16658202d
-
Fix position ids in 1d position encoding
duzx16a8ede82
-
Add test for modeling_chatglm
duzx16f831824
-
Fix input embeds
duzx1635ca523
-
Update slack link
duzx160829959
-
Change mask positions to batch
duzx164de8efe -
Always add gmask in token ids
duzx163a99d79 -
Fix bug
duzx1653f0197
-
Add empty_init option
duzx16eb55ff0 -
Update README
duzx169692905
-
Fix eos token in tokenizer
duzx16aa51e62
-
Fix attention score on mps
duzx16cde457b
-
Update dependency
duzx16acd41f7 -
Merge branch 'main' of https://huggingface.co/THUDM/chatglm-6b
duzx166650ae3 -
Fix tokenizer config saving
duzx167e69b85 -
Fix LogitsProcessor using slim checkpoint (#29)
- Fix LogitsProcessor using slim checkpoint (7f8f01fee41efeaac4f926bdb96aea42f1c6076b) Co-authored-by: bcol <bcol@users.noreply.huggingface.co>61eee50
-
Use gmask in first place
duzx169324de7 -
Update slim checkpoint (#28)
- Update slim checkpoint (674b8f6771ae11bec06f050cd38755ae5abe5eaa)d467eff -
Merge branch 'slim' of https://huggingface.co/THUDM/chatglm-6b into slim
duzx1606a22a3 -
Add gmask token id
duzx1636b7f2d -
Update slim checkpoint
6461061 -
Update code for slim
duzx1663ce1ba -
Drop icetk dependency
duzx1672985e8
-
fix typo in use_gmask (#21)
- fix typo in use_gmask (d6504255afdd555d12137fc3af04646f099b5785) Co-authored-by: Fan Zhang <fzhang@users.noreply.huggingface.co>551a50e -
Fix decode method for torch tensor
duzx1623ad39b
-
Support single integer or empty list as input to decode (#7)
- Update tokenization_chatglm.py (dffe870a7ef1558ebbc6f3dfdf46491cdb2b3e31) Co-authored-by: Yichao 'Peak' Ji <peakji@users.noreply.huggingface.co>fdb7a60
-
Fix position ids expand
duzx16f82b180
-
Fix generate
duzx16fb23542
-
Fix attention mask for prefix prompt
duzx1608bc851 -
No padding for chat function
duzx164b7ffbf -
Fix attention_mask and position_ids
duzx16373fd6b -
Fix encode method
duzx16e22cddf -
Fix batch input
duzx16e1494f2 -
Implement batch generation
duzx16cc96a22
-
Fix position id for training
duzx1611c270c -
fix GLM6BBlock name typo (#20)
- fix GLM6BBlock name typo (2a180534c5f2b4860598a9caef798b55a77cfb72) Co-authored-by: rich brain <richbrain@users.noreply.huggingface.co>9c7416d