Instructions to use zai-org/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signatured2e2d91
-
Fix use_cache=False
duzx167fabe56 -
fix when use_cache = False,inference 乱码 (#85)
- fix when use_cache = False,inference 乱码 (2cdf703899afca945a221ece195758e33d9c433d) Co-authored-by: YuanXiaofei <ShiJueXiaofei@users.noreply.huggingface.co>efb7a1e
-
Fix tokenizer for transformers 0.34
duzx16a8c811e
-
Merge branch 'classifier'
duzx168fd7fba
-
Update README
duzx165f46132
-
Add classifier
duzx167c48048
-
Fix typo in README
duzx16b1502f4
-
Update README
duzx168773934 -
Update README
duzx1696ff87f
-
Fix clean_up_tokenization_spaces
duzx164e38bef
-
use inference_mode
duzx168eb45c8
-
Fix decode
duzx16487aa2f
-
Update README
duzx16009d463 -
Update MODEL_LICENSE
duzx16f777d05
-
Update config
duzx16162b620
-
Fix prefix projection
duzx160ecfe0b
-
Remove redundant
duzx1631d45da
-
Fix prefix prompt in evaluation
duzx16c57e892
-
Fix gradient checkpointing and prefix prompt
duzx16fc442f7 -
Fix checkpointing
duzx16Fix prefix prompt5fe53eb -
Add gradient checkpointing
duzx1674d61a6 -
Update slack link
duzx164d01789
-
Fix name_or_path in tokenizer_config.json
duzx16e186c89 -
add default model_type (#10)
- add default model_type (230388e3127427e4f339bcf3532a60e6795617f8) Co-authored-by: S <Youwei@users.noreply.huggingface.co>5f2cf33 -
Remove pipeline tag
754e0ad -
Change default max length
duzx16b259b27
-
Fix invalid token returned by stream_chat
duzx16a1170c5 -
Add pad_token_id
duzx1622f6409 -
add missing `model_type` (#9)
- add missing `model_type` (d51ed93e713d978609c34a576548d0815c5c743a) Co-authored-by: S <Youwei@users.noreply.huggingface.co>05b0e4e -
Add task to model card for discoverability (#6)
- Add task to model card for discoverability (8cdd79fa6820f522d9790ecf48267ebbf7093729) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>a87be29 -
Add get_input_embeddings
duzx16189e5df -
Fix arange_cpu
duzx16f2191d0 -
Update requirement
duzx16b9c9fe6 -
Add vocab_file in tokenizer
duzx16c0203e1
-
Update repo link
duzx16a6d54fa -
Update change log
duzx160ade0d3 -
Update README.md
duzx16d0886d5 -
Add index
duzx1690387f4 -
Update config
ad75f89 -
Update implementation
c3b3141 -
Upload tokenizer.model with huggingface_hub
e9b655e -
Init commit
duzx16a5172e3
-
Upload pytorch_model-00005-of-00007.bin with huggingface_hub
554c591 -
Upload pytorch_model-00002-of-00007.bin with huggingface_hub
3648948 -
Upload pytorch_model-00006-of-00007.bin with huggingface_hub
677d082 -
Upload pytorch_model-00004-of-00007.bin with huggingface_hub
86aa951 -
Upload pytorch_model-00001-of-00007.bin with huggingface_hub
5dfd653 -
Upload pytorch_model-00007-of-00007.bin with huggingface_hub
2c5cb63 -
Upload pytorch_model-00003-of-00007.bin with huggingface_hub
ea56687