Run this model with HF Jobs
Run zai-org/chatglm-6b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zai-org/chatglm-6b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zai-org/chatglm-6b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
-
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 -
Add support for loading quantized model
duzx162e1be30
-
Use dynamic dtype for prompts
duzx16c949d03 -
Fix backward for quantization
duzx160cfae21 -
Implement gradient checkpointing
duzx16aea6cef -
Fix bugs
duzx160564795
-
Add pad_token_id in config.json
duzx16Fix position_ids in ChatGLMModel Add batch position_ids2200e2b -
Change padding side
duzx16db22499 -
Set ignore_index for CrossEntropyLoss
duzx165c64357 -
Support batch training
duzx168127ab6 -
Merge branch 'main' into dev_pt
duzx16# Conflicts: # modeling_chatglm.pyfbda120 -
Add p-tuning v2
duzx16812f43f
-
Fix context length in get_position_ids
duzx16096f3de
-
Close CPU fusion on Mac
duzx164a9b711
-
Fix Chinese punctuation
duzx16d2bbc82
-
Add English
duzx162449bdc
-
Fix typo in tokenization_chatglm.py
songxxzp1b54948 -
Remove hardcode bos_token_id
duzx162460dc2 -
Add support for streaming output
duzx1642095d4
-
Fix overflow in FP16
duzx16220f772
-
Set is_parallelizable to False
duzx16f9f74fd -
Remove image tokens when decoding
duzx168492687 -
Revert "Update quantization"
duzx16This reverts commit 0101afdfa7f279e082623ee57d7ad6f84e1e82dc.0d8b08d -
Update quantization
duzx160101afd -
Add logit processor for NaN or Inf scores
duzx16c3dece3
-
Fix default history argument
duzx169d1509a -
Merge branch 'main' of https://huggingface.co/THUDM/chatglm-6b
duzx16bcb053b -
Add support for float32
duzx16d4832e8 -
Update requirements
duzx16a034f2a -
Update requirements
duzx163d0afee -
Update README.md
534e8b7 -
Update README.md
6331ebe
-
Update README.md
4cfd1ea -
Update requirements
duzx16ac23f2a -
Update README
duzx1627d477b -
Update README
duzx160f573d1 -
Fix past_key_values
duzx16cd8041e -
add ice_text.model
duzx1665bb3f0