Instructions to use zai-org/glm-10b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/glm-10b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="zai-org/glm-10b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("zai-org/glm-10b", trust_remote_code=True) model = AutoModel.from_pretrained("zai-org/glm-10b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from zai-org/glm-10b: direct link, hf CLI and curl.
- Browser
- Download file 174 Bytes
-
https://huggingface.co/zai-org/glm-10b/resolve/main/added_tokens.json
- Command line
-
hf download hf://zai-org/glm-10b/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/zai-org/glm-10b/resolve/main/added_tokens.json
174 Bytes
| { | |
| "<|startofpiece|>": 50257, | |
| "<|endofpiece|>": 50258, | |
| "[CLS]": 50259, | |
| "[MASK]": 50260, | |
| "[SEP]": 50261, | |
| "[UNUSED]": 50262, | |
| "[gMASK]": 50263, | |
| "[sMASK]": 50264 | |
| } |