Instructions to use zai-org/chatglm3-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm3-6b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm3-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update tokenization_chatglm.py
zRVerified signaturee9e0406
-
update tokenizer for compatibility with new transformers (#64)
zR +1: katuni4ka Verified signature- update tokenizer for compatibility with new transformers (bbb5eacef5efb6b1d0b75c89296f576417bed4e1) Co-authored-by: Ekaterina Aidova <katuni4ka@users.noreply.huggingface.co>741f31c -
update tokenizer for compatibility with new transformers (#64)
zR +1: katuni4ka Verified signature- update tokenizer for compatibility with new transformers (bbb5eacef5efb6b1d0b75c89296f576417bed4e1) Co-authored-by: Ekaterina Aidova <katuni4ka@users.noreply.huggingface.co>3afaed6
-
compatibility with new transformers (#60)
zR +1: katuni4ka Verified signature- compatibility with new transformers (9e21dac48837929ca4df28e3dcb6ae04c184573d) - Update modeling_chatglm.py (c59cdd3bafd43d5f9b3e82c88c088eccb3925e02) Co-authored-by: Ekaterina Aidova <katuni4ka@users.noreply.huggingface.co>67d005d
-
fix rmsnorm init weight bug. (#59)
zR +1: Shan1990
Verified signature- fix rmsnorm init weight bug. (9d3d7be563d07295abb119ff28714aa9267580b8) Co-authored-by: Ben <Shan1990@users.noreply.huggingface.co>91a0561
-
Update README.md
Verified signatureb3121c8
-
Update README.md
zRVerified signature06c7c87
-
Update MODEL_LICENSE
zRVerified signature6f3b58e
-
fix github issue for quantize (#49)
Yuxuan ZhangVerified signature- fix github issue for quantize (bdcc33fa91bf8b0668645674f89255e13d144727)103caa4
-
修改 quantization.py 中待量化权重的移动逻辑 (#47)
Yuxuan Zhang +1: MikuRabbit
Verified signature- 修改 quantization.py 中待量化权重的移动逻辑 (4e17ef37342ef49abe1bfcc54cd43ded06b51347) Co-authored-by: Miku <MikuRabbit@users.noreply.huggingface.co>a5ba550
-
revert "auto_map" in tokenizer_config.json (#41)
Yuxuan Zhang +1: jinmingyi Verified signature- revert "auto_map" in tokenizer_config.json (b6bfc5e13266450348259ed8eec4e41e8035ca0b) Co-authored-by: Mingyi Jin <jinmingyi@users.noreply.huggingface.co>fa5a1b0
-
對tokenizer增加special tokens使其能被.apply_chat_template正確轉換 (#36)
Yuxuan Zhang +1: p208p2002 Verified signature- 對tokenizer增加special tokens使其能被.apply_chat_template正確轉換 (fa96a49c9c51c84f9b85a7ddde27d9241ca82901) Co-authored-by: Philip Huang <p208p2002@users.noreply.huggingface.co>9addbe0
-
add set_input_embeddings(self, value):
Yuxuan ZhangVerified signaturef308259 -
support transformers>=4.37.2 for finetuning
Yuxuan ZhangVerified signature37fe000
-
fix for apply_chat_template
Yuxuan ZhangVerified signature37f2196
-
Adding `safetensors` variant of this model (#23)
Yuxuan Zhang +1: SFconvertbot - Adding `safetensors` variant of this model (c2d28f08b86bacac392140d0f6b26c05d567321f) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>b098244 -
增加對tokenizer.chat_template的支援 (#22)
Yuxuan Zhang +1: p208p2002 - Update tokenizer_config.json (8c4bd56f3f760417ee95b6d20b9f78302f80e78d) Co-authored-by: Philip Huang <p208p2002@users.noreply.huggingface.co>1cfbbfd -
fix can't set attribute 'eos_token' when loading the saved tokenizer (#27)
Yuxuan Zhang +1: hiyouga - fix can't set attribute 'eos_token' when loading the saved tokenizer (72e7f646bc14c58534be3abd4001116bf20c18cc) Co-authored-by: hoshi hiyouga <hiyouga@users.noreply.huggingface.co>6d10497
-
fix piece id out of range (#20)
Yuxuan Zhang- fix piece id out of range (7a8cbaadbd1a69143089c30a5cb8ec66d5443dc3)456aa87 -
fix issue https://github.com/THUDM/ChatGLM3/issues/227 (#9)
Yuxuan Zhang +1: Alexyo
- fix issue https://github.com/THUDM/ChatGLM3/issues/227 (9c01557f168549c2f022b96904335f0e21ecb11d) Co-authored-by: y A n g <Alexyo@users.noreply.huggingface.co>340a2eb
-
Add encode_special_tokens option
duzx16e46a148
-
Merge branch 'main' of https://huggingface.co/THUDM/chatglm3-6b
duzx16d3fe58f -
Fix type hint
duzx16bba4277
-
Update README.md
bf51f4b -
add en doc
a81d4e8
-
Fix links
duzx16fc3235f
-
Add missing file
duzx1621ff72f -
Remove unused
duzx16d4cd7d0 -
Update model
duzx169efadf3 -
Merge branch 'main' of https://huggingface.co/THUDM/chatglm3-6b
duzx163254353 -
Upload pytorch_model-00006-of-00007.bin with huggingface_hub
c09ebef -
Upload pytorch_model-00004-of-00007.bin with huggingface_hub
1ae6e6a -
Upload pytorch_model-00007-of-00007.bin with huggingface_hub
968e0d2 -
Upload pytorch_model-00001-of-00007.bin with huggingface_hub
0730bcd -
Upload pytorch_model-00002-of-00007.bin with huggingface_hub
47fedc7 -
Update config
duzx165777b27 -
Upload pytorch_model-00005-of-00007.bin with huggingface_hub
21579a0 -
Upload pytorch_model-00003-of-00007.bin with huggingface_hub
62acdaa -
Init commit
duzx1629f2cbe -
Add MODEL LICENSE
duzx1600f2a12 -
Fix stream_chat
duzx1638fbc7c -
Implement new interface
duzx161676f07 -
Add system prompt
duzx16591fa87
-
Implement new chat method
duzx1685ba2d2 -
initial commit
Zhengxiao Du1842cda