Instructions to use zai-org/codegeex2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/codegeex2-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/codegeex2-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from zai-org/codegeex2-6b: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/zai-org/codegeex2-6b/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://zai-org/codegeex2-6b/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/zai-org/codegeex2-6b/resolve/main/tokenizer_config.json
245 Bytes
| { | |
| "name_or_path": "THUDM/codegeex2-6b", | |
| "remove_space": false, | |
| "do_lower_case": false, | |
| "tokenizer_class": "ChatGLMTokenizer", | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_chatglm.ChatGLMTokenizer", | |
| null | |
| ] | |
| } | |
| } | |