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, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
73a1403
1
Parent(s): 5c8ffab
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"auto_map": {
|
| 8 |
"AutoConfig": "configuration_chatglm.ChatGLMConfig",
|
| 9 |
"AutoModel": "modeling_chatglm.ChatGLMForConditionalGeneration",
|
|
|
|
| 10 |
"AutoModelForSeq2SeqLM": "modeling_chatglm.ChatGLMForConditionalGeneration"
|
| 11 |
},
|
| 12 |
"add_bias_linear": false,
|
|
|
|
| 7 |
"auto_map": {
|
| 8 |
"AutoConfig": "configuration_chatglm.ChatGLMConfig",
|
| 9 |
"AutoModel": "modeling_chatglm.ChatGLMForConditionalGeneration",
|
| 10 |
+
"AutoModelForCausalLM": "modeling_chatglm.ChatGLMForConditionalGeneration",
|
| 11 |
"AutoModelForSeq2SeqLM": "modeling_chatglm.ChatGLMForConditionalGeneration"
|
| 12 |
},
|
| 13 |
"add_bias_linear": false,
|