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');
| { | |
| "_attn_implementation_autoset": true, | |
| "_name_or_path": "THUDM/glm-edge-1.5b-chat", | |
| "architectures": [ | |
| "GlmForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "eos_token_id": [ | |
| 59246, | |
| 59253, | |
| 59255 | |
| ], | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 6144, | |
| "max_position_embeddings": 8192, | |
| "model_type": "glm", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 59246, | |
| "partial_rotary_factor": 1.0, | |
| "rms_norm_eps": 1e-05, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.49.0.dev0", | |
| "transformers.js_config": { | |
| "dtype": "q4", | |
| "use_external_data_format": { | |
| "model.onnx": true, | |
| "model_fp16.onnx": true | |
| } | |
| }, | |
| "use_cache": true, | |
| "vocab_size": 59264 | |
| } |