Instructions to use Xenova/Phi-3-mini-4k-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/Phi-3-mini-4k-instruct with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Xenova/Phi-3-mini-4k-instruct');
Download config.json from Xenova/Phi-3-mini-4k-instruct: direct link, hf CLI and curl.
- Browser
- Download file 877 Bytes
-
https://huggingface.co/Xenova/Phi-3-mini-4k-instruct/resolve/main/config.json
- Command line
-
hf download hf://Xenova/Phi-3-mini-4k-instruct/config.json
-
curl -L -o config.json https://huggingface.co/Xenova/Phi-3-mini-4k-instruct/resolve/main/config.json
877 Bytes
| { | |
| "_name_or_path": "microsoft/Phi-3-mini-4k-instruct-onnx", | |
| "architectures": [ | |
| "Phi3ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "embd_pdrop": 0.0, | |
| "eos_token_id": 32000, | |
| "hidden_act": "silu", | |
| "hidden_size": 3072, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 8192, | |
| "max_position_embeddings": 4096, | |
| "model_type": "phi3", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 32, | |
| "original_max_position_embeddings": 4096, | |
| "pad_token_id": 32000, | |
| "resid_pdrop": 0.0, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "sliding_window": 2047, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.39.3", | |
| "transformers.js_config": { | |
| "dtype": "q4", | |
| "use_external_data_format": true | |
| }, | |
| "use_cache": true, | |
| "vocab_size": 32064 | |
| } |