Instructions to use Mike0021/MiniCPM5-2B-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Mike0021/MiniCPM5-2B-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Mike0021/MiniCPM5-2B-ONNX');
Download config.json from Mike0021/MiniCPM5-2B-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 822 Bytes
-
https://huggingface.co/Mike0021/MiniCPM5-2B-ONNX/resolve/main/config.json
- Command line
-
hf download hf://Mike0021/MiniCPM5-2B-ONNX/config.json
-
curl -L -o config.json https://huggingface.co/Mike0021/MiniCPM5-2B-ONNX/resolve/main/config.json
822 Bytes
| { | |
| "_name_or_path": "openbmb/MiniCPM5-2B", | |
| "architectures": [ | |
| "LlamaForCausalLM" | |
| ], | |
| "bos_token_id": 0, | |
| "eos_token_id": [ | |
| 1, | |
| 130073 | |
| ], | |
| "pad_token_id": 1, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 6144, | |
| "max_position_embeddings": 131072, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 42, | |
| "num_key_value_heads": 2, | |
| "head_dim": 128, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 5000000, | |
| "rope_scaling": null, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "5.6.2", | |
| "use_cache": true, | |
| "vocab_size": 130560, | |
| "transformers.js_config": { | |
| "kv_cache_dtype": { | |
| "q4f16": "float16" | |
| }, | |
| "use_external_data_format": { | |
| "model_q4f16.onnx": 7 | |
| } | |
| } | |
| } |