MatteoOmenetti commited on
Commit
a9b8b10
·
verified ·
1 Parent(s): b54ee96

Upload SamOPTForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +42 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/dccstor/doc_fig_class/DocFM-Vision-Pretrainer/Vary-master/checkpoints_new_code_equation_model/to_upload",
3
+ "_remove_final_layer_norm": false,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "SamOPTForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 2,
11
+ "do_layer_norm_before": true,
12
+ "dropout": 0.1,
13
+ "enable_bias": true,
14
+ "eos_token_id": 2,
15
+ "ffn_dim": 3072,
16
+ "freeze_vision_tower": false,
17
+ "hidden_size": 768,
18
+ "im_end_token": 50826,
19
+ "im_patch_token": 50265,
20
+ "im_start_token": 50825,
21
+ "image_token_len": 256,
22
+ "init_std": 0.02,
23
+ "layer_norm_elementwise_affine": true,
24
+ "layerdrop": 0.0,
25
+ "max_position_embeddings": 4096,
26
+ "model_type": "sam_opt",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 1,
30
+ "prefix": "</s>",
31
+ "sam_image_size": 1024,
32
+ "sam_mm_projector_in": 1024,
33
+ "sam_mm_projector_out": 768,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.46.3",
36
+ "use_cache": true,
37
+ "use_im_start_end": true,
38
+ "vision_select_layer": -1,
39
+ "vision_tower": "~/.cache/huggingface/hub/models--openai--clip-vit-large-patch14/snapshots/8d052a0f05efbaefbc9e8786ba291cfdf93e5bff/",
40
+ "vocab_size": 50827,
41
+ "word_embed_proj_dim": 768
42
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.46.3"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3fc49e303f7df4c46a0eb488fb6427ef05b6e91f3555e3b3add140e19d39220
3
+ size 894421832