Xenova HF Staff commited on
Commit
7a7a393
·
verified ·
1 Parent(s): ca8657a

Transformers.js - Enable external data format in Node.js

Browse files

See https://github.com/huggingface/transformers.js/pull/1212 for more information.

Files changed (1) hide show
  1. config.json +74 -61
config.json CHANGED
@@ -1,65 +1,78 @@
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": [32, 64, 128, 256, 512, 768, 1024],
13
- "model_type": "jina_clip",
14
- "projection_dim": 1024,
15
- "text_config": {
16
- "default_instruction_task": null,
17
- "default_lora_task": "retrieval.query",
18
- "embed_dim": 1024,
19
- "hf_model_config_kwargs": {
20
- "load_trained_adapters": false,
21
- "lora_adaptations": [
22
- "retrieval.query"
23
- ],
24
- "lora_alpha": 4,
25
- "lora_dropout_p": 0.0,
26
- "lora_main_params_trainable": false,
27
- "lora_rank": 4,
28
- "task_instructions": {
29
- "retrieval.query": "Represent the query for retrieving evidence documents: "
30
- },
31
- "use_flash_attn": true
32
- },
33
- "hf_model_name_or_path": "jinaai/jina-embeddings-v3",
34
- "model_type": "jina_clip_text",
35
- "pooler_type": "mean_pooler",
36
- "proj_bias": false,
37
- "proj_type": null
38
- },
39
- "torch_dtype": "bfloat16",
40
- "truncate_dim": null,
41
- "use_text_flash_attn": null,
42
- "use_vision_xformers": null,
43
- "vision_config": {
44
- "embed_dim": 1024,
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
  }