Instructions to use sunzeyeah/glm-10B-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sunzeyeah/glm-10B-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="sunzeyeah/glm-10B-chinese", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("sunzeyeah/glm-10B-chinese", trust_remote_code=True) model = AutoModel.from_pretrained("sunzeyeah/glm-10B-chinese", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from sunzeyeah/glm-10B-chinese: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/sunzeyeah/glm-10B-chinese/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://sunzeyeah/glm-10B-chinese/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/sunzeyeah/glm-10B-chinese/resolve/main/tokenizer_config.json
504 Bytes
| { | |
| "name_or_path": "BAAI/glm-large-chinese", | |
| "eos_token": "<|endoftext|>", | |
| "pad_token": "<|endoftext|>", | |
| "cls_token": "[CLS]", | |
| "mask_token": "[MASK]", | |
| "unk_token": "[UNK]", | |
| "sep_token": "[SEP]", | |
| "additional_special_tokens": ["<|startofpiece|>", "<|endofpiece|>", "[gMASK]", "[sMASK]"], | |
| "add_prefix_space": false, | |
| "tokenizer_class": "GLMChineseTokenizer", | |
| "use_fast": false, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_glm.GLMChineseTokenizer", | |
| null | |
| ] | |
| } | |
| } |