Instructions to use zai-org/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
add missing `model_type`
#9
by songyouwei - opened
- config.json +1 -0
config.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "THUDM/chatglm2-6b",
|
|
|
|
| 3 |
"architectures": [
|
| 4 |
"ChatGLMModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "THUDM/chatglm2-6b",
|
| 3 |
+
"model_type": "chatglm",
|
| 4 |
"architectures": [
|
| 5 |
"ChatGLMModel"
|
| 6 |
],
|