Instructions to use zai-org/glm-large-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/glm-large-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="zai-org/glm-large-chinese", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("zai-org/glm-large-chinese", trust_remote_code=True) model = AutoModel.from_pretrained("zai-org/glm-large-chinese", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
| { | |
| "<|endoftext|>": 50000, | |
| "[SEP]": 50001, | |
| "[CLS]": 50002, | |
| "[MASK]": 50003, | |
| "[UNUSED1]": 50004, | |
| "[UNUSED2]": 50005, | |
| "<|startofpiece|>": 50006, | |
| "<|endofpiece|>": 50007, | |
| "[sMASK]": 50008, | |
| "[gMASK]": 50009 | |
| } |