Transformers.js - Enable external data format in Node.js
Browse filesSee https://github.com/huggingface/transformers.js/pull/1212 for more information.
- config.json +74 -61
config.json
CHANGED
@@ -1,65 +1,78 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
},
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
"
|
40 |
-
"
|
41 |
-
|
42 |
-
|
43 |
-
"
|
44 |
-
|
45 |
-
"fused_layer_norm": false,
|
46 |
-
"head_width": 64,
|
47 |
-
"image_size": 512,
|
48 |
-
"intp_freq": true,
|
49 |
-
"layers": 24,
|
50 |
-
"ls_init_value": null,
|
51 |
-
"mlp_ratio": 2.6667,
|
52 |
-
"model_type": "jina_clip_vision",
|
53 |
-
"naive_swiglu": true,
|
54 |
-
"patch_dropout": 0.1,
|
55 |
-
"patch_size": 14,
|
56 |
-
"post_norm": false,
|
57 |
-
"proj_type": null,
|
58 |
-
"pt_hw_seq_len": 16,
|
59 |
-
"qkv_bias": true,
|
60 |
-
"rope_embeddings": true,
|
61 |
-
"subln": true,
|
62 |
-
"width": 1024,
|
63 |
-
"x_attention": true
|
64 |
}
|
|
|
65 |
}
|
|
|
1 |
{
|
2 |
+
"add_projections": false,
|
3 |
+
"architectures": [
|
4 |
+
"JinaCLIPModel"
|
5 |
+
],
|
6 |
+
"auto_map": {
|
7 |
+
"AutoConfig": "jinaai/jina-clip-implementation--configuration_clip.JinaCLIPConfig",
|
8 |
+
"AutoModel": "jinaai/jina-clip-implementation--modeling_clip.JinaCLIPModel"
|
9 |
+
},
|
10 |
+
"initializer_factor": 1.0,
|
11 |
+
"logit_scale_init_value": 2.6592,
|
12 |
+
"matryoshka_dimensions": [
|
13 |
+
32,
|
14 |
+
64,
|
15 |
+
128,
|
16 |
+
256,
|
17 |
+
512,
|
18 |
+
768,
|
19 |
+
1024
|
20 |
+
],
|
21 |
+
"model_type": "jina_clip",
|
22 |
+
"projection_dim": 1024,
|
23 |
+
"text_config": {
|
24 |
+
"default_instruction_task": null,
|
25 |
+
"default_lora_task": "retrieval.query",
|
26 |
+
"embed_dim": 1024,
|
27 |
+
"hf_model_config_kwargs": {
|
28 |
+
"load_trained_adapters": false,
|
29 |
+
"lora_adaptations": [
|
30 |
+
"retrieval.query"
|
31 |
+
],
|
32 |
+
"lora_alpha": 4,
|
33 |
+
"lora_dropout_p": 0.0,
|
34 |
+
"lora_main_params_trainable": false,
|
35 |
+
"lora_rank": 4,
|
36 |
+
"task_instructions": {
|
37 |
+
"retrieval.query": "Represent the query for retrieving evidence documents: "
|
38 |
+
},
|
39 |
+
"use_flash_attn": true
|
40 |
},
|
41 |
+
"hf_model_name_or_path": "jinaai/jina-embeddings-v3",
|
42 |
+
"model_type": "jina_clip_text",
|
43 |
+
"pooler_type": "mean_pooler",
|
44 |
+
"proj_bias": false,
|
45 |
+
"proj_type": null
|
46 |
+
},
|
47 |
+
"torch_dtype": "bfloat16",
|
48 |
+
"truncate_dim": null,
|
49 |
+
"use_text_flash_attn": null,
|
50 |
+
"use_vision_xformers": null,
|
51 |
+
"vision_config": {
|
52 |
+
"embed_dim": 1024,
|
53 |
+
"fused_layer_norm": false,
|
54 |
+
"head_width": 64,
|
55 |
+
"image_size": 512,
|
56 |
+
"intp_freq": true,
|
57 |
+
"layers": 24,
|
58 |
+
"ls_init_value": null,
|
59 |
+
"mlp_ratio": 2.6667,
|
60 |
+
"model_type": "jina_clip_vision",
|
61 |
+
"naive_swiglu": true,
|
62 |
+
"patch_dropout": 0.1,
|
63 |
+
"patch_size": 14,
|
64 |
+
"post_norm": false,
|
65 |
+
"proj_type": null,
|
66 |
+
"pt_hw_seq_len": 16,
|
67 |
+
"qkv_bias": true,
|
68 |
+
"rope_embeddings": true,
|
69 |
+
"subln": true,
|
70 |
+
"width": 1024,
|
71 |
+
"x_attention": true
|
72 |
+
},
|
73 |
+
"transformers.js_config": {
|
74 |
+
"use_external_data_format": {
|
75 |
+
"model.onnx": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
+
}
|
78 |
}
|