Instructions to use zai-org/WebGLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/WebGLM with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("zai-org/WebGLM", trust_remote_code=True) model = AutoModelForSeq2SeqLM.from_pretrained("zai-org/WebGLM", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
File size: 466 Bytes
39bff6f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
"name_or_path": "THUDM/glm-10b",
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>",
"cls_token": "[CLS]",
"mask_token": "[MASK]",
"unk_token": "[UNK]",
"additional_special_tokens": ["<|startofpiece|>", "<|endofpiece|>", "[gMASK]", "[sMASK]"],
"add_prefix_space": false,
"tokenizer_class": "GLMGPT2Tokenizer",
"use_fast": false,
"auto_map": {
"AutoTokenizer": [
"tokenization_glm.GLMGPT2Tokenizer",
null
]
}
}
|