Instructions to use zai-org/chatglm-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
duzx16 commited on
Commit ·
f9f74fd
1
Parent(s): 8492687
Set is_parallelizable to False
Browse files- modeling_chatglm.py +1 -1
modeling_chatglm.py
CHANGED
|
@@ -610,7 +610,7 @@ class ChatGLMPreTrainedModel(PreTrainedModel):
|
|
| 610 |
a simple interface for downloading and loading pretrained models.
|
| 611 |
"""
|
| 612 |
|
| 613 |
-
is_parallelizable =
|
| 614 |
supports_gradient_checkpointing = False
|
| 615 |
config_class = ChatGLMConfig
|
| 616 |
base_model_prefix = "transformer"
|
|
|
|
| 610 |
a simple interface for downloading and loading pretrained models.
|
| 611 |
"""
|
| 612 |
|
| 613 |
+
is_parallelizable = False
|
| 614 |
supports_gradient_checkpointing = False
|
| 615 |
config_class = ChatGLMConfig
|
| 616 |
base_model_prefix = "transformer"
|