Transformers.js - Enable external data format in Node.js
Browse filesSee https://github.com/huggingface/transformers.js/pull/1212 for more information.
- config.json +40 -34
config.json
CHANGED
@@ -1,35 +1,41 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "microsoft/Phi-3-mini-4k-instruct-onnx",
|
3 |
-
"architectures": [
|
4 |
-
"Phi3ForCausalLM"
|
5 |
-
],
|
6 |
-
"attention_dropout": 0.0,
|
7 |
-
"auto_map": {
|
8 |
-
"AutoConfig": "configuration_phi3.Phi3Config",
|
9 |
-
"AutoModelForCausalLM": "modeling_phi3.Phi3ForCausalLM"
|
10 |
-
},
|
11 |
-
"bos_token_id": 1,
|
12 |
-
"embd_pdrop": 0.0,
|
13 |
-
"eos_token_id": 32000,
|
14 |
-
"hidden_act": "silu",
|
15 |
-
"hidden_size": 3072,
|
16 |
-
"initializer_range": 0.02,
|
17 |
-
"intermediate_size": 8192,
|
18 |
-
"max_position_embeddings": 4096,
|
19 |
-
"model_type": "phi3",
|
20 |
-
"num_attention_heads": 32,
|
21 |
-
"num_hidden_layers": 32,
|
22 |
-
"num_key_value_heads": 32,
|
23 |
-
"original_max_position_embeddings": 4096,
|
24 |
-
"pad_token_id": 32000,
|
25 |
-
"resid_pdrop": 0.0,
|
26 |
-
"rms_norm_eps": 1e-05,
|
27 |
-
"rope_scaling": null,
|
28 |
-
"rope_theta": 10000.0,
|
29 |
-
"sliding_window": 2047,
|
30 |
-
"tie_word_embeddings": false,
|
31 |
-
"torch_dtype": "bfloat16",
|
32 |
-
"transformers_version": "4.39.3",
|
33 |
-
"use_cache": true,
|
34 |
-
"vocab_size": 32064
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/Phi-3-mini-4k-instruct-onnx",
|
3 |
+
"architectures": [
|
4 |
+
"Phi3ForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "configuration_phi3.Phi3Config",
|
9 |
+
"AutoModelForCausalLM": "modeling_phi3.Phi3ForCausalLM"
|
10 |
+
},
|
11 |
+
"bos_token_id": 1,
|
12 |
+
"embd_pdrop": 0.0,
|
13 |
+
"eos_token_id": 32000,
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 3072,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 8192,
|
18 |
+
"max_position_embeddings": 4096,
|
19 |
+
"model_type": "phi3",
|
20 |
+
"num_attention_heads": 32,
|
21 |
+
"num_hidden_layers": 32,
|
22 |
+
"num_key_value_heads": 32,
|
23 |
+
"original_max_position_embeddings": 4096,
|
24 |
+
"pad_token_id": 32000,
|
25 |
+
"resid_pdrop": 0.0,
|
26 |
+
"rms_norm_eps": 1e-05,
|
27 |
+
"rope_scaling": null,
|
28 |
+
"rope_theta": 10000.0,
|
29 |
+
"sliding_window": 2047,
|
30 |
+
"tie_word_embeddings": false,
|
31 |
+
"torch_dtype": "bfloat16",
|
32 |
+
"transformers_version": "4.39.3",
|
33 |
+
"use_cache": true,
|
34 |
+
"vocab_size": 32064,
|
35 |
+
"transformers.js_config": {
|
36 |
+
"use_external_data_format": {
|
37 |
+
"model_q4.onnx": true,
|
38 |
+
"model_q4f16.onnx": true
|
39 |
+
}
|
40 |
+
}
|
41 |
}
|