Instructions to use onnx-community/glm-edge-1.5b-chat-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/glm-edge-1.5b-chat-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'onnx-community/glm-edge-1.5b-chat-ONNX');
Update config.json
Browse files- config.json +3 -0
config.json
CHANGED
|
@@ -28,6 +28,9 @@
|
|
| 28 |
"tie_word_embeddings": true,
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
"transformers_version": "4.49.0.dev0",
|
|
|
|
|
|
|
|
|
|
| 31 |
"use_cache": true,
|
| 32 |
"vocab_size": 59264
|
| 33 |
}
|
|
|
|
| 28 |
"tie_word_embeddings": true,
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
"transformers_version": "4.49.0.dev0",
|
| 31 |
+
"transformers.js_config": {
|
| 32 |
+
"dtype": "q4"
|
| 33 |
+
},
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 59264
|
| 36 |
}
|