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, dtype="auto") - Notebooks
- Google Colab
- Kaggle
fix GLM6BBlock name typo
#20
by richbrain - opened
- modeling_chatglm.py +1 -1
modeling_chatglm.py
CHANGED
|
@@ -655,7 +655,7 @@ class ChatGLMPreTrainedModel(PreTrainedModel):
|
|
| 655 |
supports_gradient_checkpointing = True
|
| 656 |
config_class = ChatGLMConfig
|
| 657 |
base_model_prefix = "transformer"
|
| 658 |
-
_no_split_modules = ["
|
| 659 |
|
| 660 |
def __init__(self, *inputs, **kwargs):
|
| 661 |
super().__init__(*inputs, **kwargs)
|
|
|
|
| 655 |
supports_gradient_checkpointing = True
|
| 656 |
config_class = ChatGLMConfig
|
| 657 |
base_model_prefix = "transformer"
|
| 658 |
+
_no_split_modules = ["GLMBlock"]
|
| 659 |
|
| 660 |
def __init__(self, *inputs, **kwargs):
|
| 661 |
super().__init__(*inputs, **kwargs)
|