htlou commited on
Commit
615587d
·
verified ·
1 Parent(s): 3c5eb85

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. Evaluation.log +0 -0
  3. arguments.yaml +12 -10
  4. environ.txt +6 -4
  5. script.sh +23 -26
  6. slice_12210/added_tokens.json +4 -0
  7. slice_12210/chat_template.json +3 -0
  8. slice_12210/config.json +85 -0
  9. slice_12210/preprocessor_config.json +52 -0
  10. slice_12210/processor_config.json +7 -0
  11. slice_12210/pytorch_model.bin +3 -0
  12. slice_12210/special_tokens_map.json +31 -0
  13. slice_12210/tokenizer.json +0 -0
  14. slice_12210/tokenizer.model +3 -0
  15. slice_12210/tokenizer_config.json +69 -0
  16. slice_14652/added_tokens.json +4 -0
  17. slice_14652/chat_template.json +3 -0
  18. slice_14652/config.json +85 -0
  19. slice_14652/preprocessor_config.json +52 -0
  20. slice_14652/processor_config.json +7 -0
  21. slice_14652/pytorch_model.bin +3 -0
  22. slice_14652/special_tokens_map.json +31 -0
  23. slice_14652/tokenizer.json +0 -0
  24. slice_14652/tokenizer.model +3 -0
  25. slice_14652/tokenizer_config.json +69 -0
  26. slice_2442/added_tokens.json +4 -0
  27. slice_2442/chat_template.json +3 -0
  28. slice_2442/config.json +85 -0
  29. slice_2442/preprocessor_config.json +52 -0
  30. slice_2442/processor_config.json +7 -0
  31. slice_2442/pytorch_model.bin +3 -0
  32. slice_2442/special_tokens_map.json +31 -0
  33. slice_2442/tokenizer.json +0 -0
  34. slice_2442/tokenizer.model +3 -0
  35. slice_2442/tokenizer_config.json +69 -0
  36. slice_4884/added_tokens.json +4 -0
  37. slice_4884/chat_template.json +3 -0
  38. slice_4884/config.json +85 -0
  39. slice_4884/preprocessor_config.json +52 -0
  40. slice_4884/processor_config.json +7 -0
  41. slice_4884/pytorch_model.bin +3 -0
  42. slice_4884/special_tokens_map.json +31 -0
  43. slice_4884/tokenizer.json +0 -0
  44. slice_4884/tokenizer.model +3 -0
  45. slice_4884/tokenizer_config.json +69 -0
  46. slice_7326/added_tokens.json +4 -0
  47. slice_7326/chat_template.json +3 -0
  48. slice_7326/config.json +85 -0
  49. slice_7326/preprocessor_config.json +52 -0
  50. slice_7326/processor_config.json +7 -0
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  wandb/run-20250331_174515-0lcg01si/run-0lcg01si.wandb filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  wandb/run-20250331_174515-0lcg01si/run-0lcg01si.wandb filter=lfs diff=lfs merge=lfs -text
37
+ wandb/run-20250329_013436-woy6qs03/run-woy6qs03.wandb filter=lfs diff=lfs merge=lfs -text
Evaluation.log ADDED
File without changes
arguments.yaml CHANGED
@@ -1,27 +1,29 @@
1
  data_cfgs:
2
  eval_data_files: {}
3
  eval_datasets: {}
 
4
  eval_optional_args: []
5
  eval_size: {}
6
  eval_split: {}
7
  eval_subset: {}
8
  eval_template: {}
 
9
  train_data_files: {}
10
- train_datasets: /aifs4su/yaodong/hantao/datasets/AA_preference_cosi/val/merged/top1-20
11
  train_name: text-image-to-text
12
  train_optional_args: []
13
  train_size: {}
14
  train_split: train
15
- train_template: AA_TI2T_LLAVA
16
  logger_cfgs:
17
  cache_dir: {}
18
  log_project: align-anything
19
- log_run_name: dpo
20
  log_type: wandb
21
- output_dir: ../outputs/llava_1.6_mistral_7b_val/top1-20
22
- save_total_limit: 3
23
  model_cfgs:
24
- model_max_length: 4096
25
  model_name_or_path: /aifs4su/yaodong/hantao/models/llava-v1.6-mistral-7b-hf
26
  trust_remote_code: true
27
  special_tokens: {}
@@ -29,6 +31,7 @@ train_cfgs:
29
  adam_betas:
30
  - 0.9
31
  - 0.95
 
32
  bf16: true
33
  ds_cfgs: ds_z3_config.json
34
  epochs: 3
@@ -38,16 +41,15 @@ train_cfgs:
38
  freeze_language_model: false
39
  freeze_mm_proj: false
40
  freeze_vision_tower: true
41
- gradient_accumulation_steps: 1
42
  gradient_checkpointing: true
43
- learning_rate: 1.0e-06
44
  load_checkpoint: false
45
  lr_scheduler_type: cosine
46
  lr_warmup_ratio: 0.03
 
47
  per_device_eval_batch_size: 1
48
  per_device_train_batch_size: 1
49
- regularization: 0.001
50
  save_checkpoint: false
51
- scale_coeff: 0.1
52
  seed: 42
53
  weight_decay: 0.0
 
1
  data_cfgs:
2
  eval_data_files: {}
3
  eval_datasets: {}
4
+ eval_name: {}
5
  eval_optional_args: []
6
  eval_size: {}
7
  eval_split: {}
8
  eval_subset: {}
9
  eval_template: {}
10
+ load_multi_datasets: false
11
  train_data_files: {}
12
+ train_datasets: /aifs4su/yaodong/hantao/datasets/MMInstruct-GPT4V_mistral-7b_cosi_cut/merged/top1-20
13
  train_name: text-image-to-text
14
  train_optional_args: []
15
  train_size: {}
16
  train_split: train
17
+ train_template: MM_TI2T_LLAVA
18
  logger_cfgs:
19
  cache_dir: {}
20
  log_project: align-anything
21
+ log_run_name: sft
22
  log_type: wandb
23
+ output_dir: ../outputs/LLAVA_7B_cosi/top1-20
24
+ save_total_limit: 6
25
  model_cfgs:
26
+ model_max_length: 2048
27
  model_name_or_path: /aifs4su/yaodong/hantao/models/llava-v1.6-mistral-7b-hf
28
  trust_remote_code: true
29
  special_tokens: {}
 
31
  adam_betas:
32
  - 0.9
33
  - 0.95
34
+ adam_epsilon: 1.0e-08
35
  bf16: true
36
  ds_cfgs: ds_z3_config.json
37
  epochs: 3
 
41
  freeze_language_model: false
42
  freeze_mm_proj: false
43
  freeze_vision_tower: true
44
+ gradient_accumulation_steps: 16
45
  gradient_checkpointing: true
46
+ learning_rate: 2.0e-05
47
  load_checkpoint: false
48
  lr_scheduler_type: cosine
49
  lr_warmup_ratio: 0.03
50
+ max_grad_norm: 1.0
51
  per_device_eval_batch_size: 1
52
  per_device_train_batch_size: 1
 
53
  save_checkpoint: false
 
54
  seed: 42
55
  weight_decay: 0.0
environ.txt CHANGED
@@ -192,7 +192,7 @@ LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd
192
  MANPATH=/usr/mpi/gcc/openmpi-4.1.7a1/share/man:/cm/shared/apps/slurm/current/man:/cm/local/apps/environment-modules/4.5.3/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/cm/local/apps/environment-modules/current/share/man:/cm/local/apps/environment-modules/current/share/man
193
  MANPATH_modshare=/usr/local/share/man:1:/usr/mpi/gcc/openmpi-4.1.7a1/share/man:1:/cm/local/apps/environment-modules/current/share/man:1:/cm/local/apps/environment-modules/4.5.3/share/man:1:/usr/local/man:1:/usr/share/man:1:/cm/shared/apps/slurm/current/man:1
194
  MASTER_ADDR=127.0.0.1
195
- MASTER_PORT=36456
196
  MIG_PARTED_CHECKPOINT_FILE=/var/lib/nvidia-mig-manager/checkpoint.json
197
  MIG_PARTED_CONFIG_FILE=/etc/nvidia-mig-manager/config.yaml
198
  MIG_PARTED_HOOKS_FILE=/etc/nvidia-mig-manager/hooks.yaml
@@ -209,12 +209,14 @@ NVCC_PREPEND_FLAGS_BACKUP= -ccbin=/aifs4su/yaodong/miniconda3/bin/x86_64-conda-l
209
  NVITOP_MONITOR_MODE=colorful
210
  OBJCOPY=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-objcopy
211
  OBJDUMP=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-objdump
212
- OLDPWD=/aifs4su/yaodong/hantao/align-anything/scripts/llava
213
  PATH=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin:/aifs4su/yaodong/miniconda3/condabin:/usr/mpi/gcc/openmpi-4.1.7a1/bin:/usr/lpp/mmfs/bin:/usr/local/cuda/bin:/opt/bin:/usr/lpp/mmfs/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/usr/local/cuda/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/4.5.3/bin
214
  PATH_modshare=/usr/mpi/gcc/openmpi-4.1.7a1/bin:1:/opt/bin/:1:/usr/bin:1:/usr/local/bin:1:/cm/shared/apps/slurm/current/bin:1:/cm/shared/apps/slurm/current/sbin:1:/bin:1:/snap/bin:1:/sbin:1:/usr/sbin:1:/cm/local/apps/environment-modules/4.5.3/bin:1:/usr/games:1:/usr/local/sbin:1:/usr/lpp/mmfs/bin:1:/usr/local/cuda/bin:1:/usr/local/games:1
215
  PWD=/aifs4su/yaodong/hantao/align-anything/scripts
216
  PYTHONHASHSEED=42
217
- PYTHONPATH=/aifs4su/yaodong/hantao/align-anything/scripts:/aifs4su/yaodong/hantao/align-anything/scripts
 
 
218
  RANK=0
219
  RANLIB=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-ranlib
220
  READELF=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-readelf
@@ -234,7 +236,7 @@ TMUX=/tmp/tmux-1028/default,2764504,18
234
  TMUX_PANE=%18
235
  USER=yangyaodong
236
  WANDB_API_KEY=7e2dcc0c310ebcb7cdcafd5e9320d6be55cf1a33
237
- WANDB_SERVICE=2-1830086-tcp-localhost-39699
238
  WORLD_SIZE=8
239
  XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
240
  XDG_RUNTIME_DIR=/run/user/1028
 
192
  MANPATH=/usr/mpi/gcc/openmpi-4.1.7a1/share/man:/cm/shared/apps/slurm/current/man:/cm/local/apps/environment-modules/4.5.3/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/cm/local/apps/environment-modules/current/share/man:/cm/local/apps/environment-modules/current/share/man
193
  MANPATH_modshare=/usr/local/share/man:1:/usr/mpi/gcc/openmpi-4.1.7a1/share/man:1:/cm/local/apps/environment-modules/current/share/man:1:/cm/local/apps/environment-modules/4.5.3/share/man:1:/usr/local/man:1:/usr/share/man:1:/cm/shared/apps/slurm/current/man:1
194
  MASTER_ADDR=127.0.0.1
195
+ MASTER_PORT=55074
196
  MIG_PARTED_CHECKPOINT_FILE=/var/lib/nvidia-mig-manager/checkpoint.json
197
  MIG_PARTED_CONFIG_FILE=/etc/nvidia-mig-manager/config.yaml
198
  MIG_PARTED_HOOKS_FILE=/etc/nvidia-mig-manager/hooks.yaml
 
209
  NVITOP_MONITOR_MODE=colorful
210
  OBJCOPY=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-objcopy
211
  OBJDUMP=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-objdump
212
+ OLDPWD=/aifs4su/yaodong/hantao/LLaMA-Factory
213
  PATH=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin:/aifs4su/yaodong/miniconda3/condabin:/usr/mpi/gcc/openmpi-4.1.7a1/bin:/usr/lpp/mmfs/bin:/usr/local/cuda/bin:/opt/bin:/usr/lpp/mmfs/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/usr/local/cuda/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/4.5.3/bin
214
  PATH_modshare=/usr/mpi/gcc/openmpi-4.1.7a1/bin:1:/opt/bin/:1:/usr/bin:1:/usr/local/bin:1:/cm/shared/apps/slurm/current/bin:1:/cm/shared/apps/slurm/current/sbin:1:/bin:1:/snap/bin:1:/sbin:1:/usr/sbin:1:/cm/local/apps/environment-modules/4.5.3/bin:1:/usr/games:1:/usr/local/sbin:1:/usr/lpp/mmfs/bin:1:/usr/local/cuda/bin:1:/usr/local/games:1
215
  PWD=/aifs4su/yaodong/hantao/align-anything/scripts
216
  PYTHONHASHSEED=42
217
+ PYTHONPATH=/aifs4su/yaodong/hantao/align-anything/scripts
218
+ QT_QPA_FONTDIR=/aifs4su/yaodong/miniconda3/envs/hantao_llama/lib/python3.11/site-packages/cv2/qt/fonts
219
+ QT_QPA_PLATFORM_PLUGIN_PATH=/aifs4su/yaodong/miniconda3/envs/hantao_llama/lib/python3.11/site-packages/cv2/qt/plugins
220
  RANK=0
221
  RANLIB=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-ranlib
222
  READELF=/aifs4su/yaodong/miniconda3/envs/hantao_llama/bin/x86_64-conda-linux-gnu-readelf
 
236
  TMUX_PANE=%18
237
  USER=yangyaodong
238
  WANDB_API_KEY=7e2dcc0c310ebcb7cdcafd5e9320d6be55cf1a33
239
+ WANDB_SERVICE=2-125374-tcp-localhost-39903
240
  WORLD_SIZE=8
241
  XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
242
  XDG_RUNTIME_DIR=/run/user/1028
script.sh CHANGED
@@ -15,38 +15,35 @@
15
  # limitations under the License.
16
  # ==============================================================================
17
 
18
- DATASETS_NAME=("top1-10" "top1-20" "top1-30" "top1-40" "top1-50" "top1-60" "top1-70" "top1-80" "top1-90" "top1-100")
19
- # DATASETS_NAME=("top1-10")
20
- #
21
- MODEL_NAME_OR_PATH="/aifs4su/yaodong/hantao/models/llava-v1.6-mistral-7b-hf" # model path
22
 
23
- # HOSTFILE="/aifs4su/yaodong/hantao/align-anything/scripts/.hostfile"
24
 
25
- for DATASET_NAME in ${DATASETS_NAME[@]}; do
26
- TRAIN_DATASETS="/aifs4su/yaodong/hantao/datasets/AA_preference_cosi/val/merged/${DATASET_NAME}" # dataset path
27
- TRAIN_TEMPLATE="AA_TI2T_LLAVA" # dataset template
28
  TRAIN_NAME="text-image-to-text" # dataset name
29
  TRAIN_SPLIT="train" # split the dataset
30
 
31
- OUTPUT_DIR="../outputs/llava_1.6_mistral_7b_val/${DATASET_NAME}" # output dir
32
 
33
- # For wandb online logging
34
- export WANDB_API_KEY="7e2dcc0c310ebcb7cdcafd5e9320d6be55cf1a33"
35
 
36
- # Source the setup script
37
- source ./setup.sh
38
 
39
- # Execute deepspeed command
40
- deepspeed \
41
- --master_port ${MASTER_PORT} \
42
- --module align_anything.trainers.text_image_to_text.dpo \
43
- --model_name_or_path ${MODEL_NAME_OR_PATH} \
44
- --train_datasets ${TRAIN_DATASETS} \
45
- --train_template ${TRAIN_TEMPLATE} \
46
- --train_split ${TRAIN_SPLIT} \
47
- --train_name ${TRAIN_NAME} \
48
- --output_dir ${OUTPUT_DIR} \
49
- --save_total_limit 3 \
50
- --train_batch_size 8 \
51
- --epochs 3
52
  done
 
15
  # limitations under the License.
16
  # ==============================================================================
17
 
18
+ DATASETS_NAME=("top1-20" "top1-40" "top1-100")
 
 
 
19
 
20
+ MODEL_NAME_OR_PATH="/aifs4su/yaodong/hantao/models/llava-v1.6-mistral-7b-hf" # model path
21
 
22
+ for DATASET_NAME in "${DATASETS_NAME[@]}"; do
23
+ TRAIN_DATASETS="/aifs4su/yaodong/hantao/datasets/MMInstruct-GPT4V_mistral-7b_cosi_cut/merged/${DATASET_NAME}" # dataset path
24
+ TRAIN_TEMPLATE="MM_TI2T_LLAVA" # dataset template
25
  TRAIN_NAME="text-image-to-text" # dataset name
26
  TRAIN_SPLIT="train" # split the dataset
27
 
28
+ OUTPUT_DIR="../outputs/LLAVA_7B_cosi/${DATASET_NAME}" # output dir
29
 
30
+ # For wandb online logging
31
+ export WANDB_API_KEY="7e2dcc0c310ebcb7cdcafd5e9320d6be55cf1a33"
32
 
33
+ # Source the setup script
34
+ source ./setup.sh
35
 
36
+ # Execute deepspeed command
37
+ deepspeed \
38
+ --master_port ${MASTER_PORT} \
39
+ --module align_anything.trainers.text_image_to_text.sft \
40
+ --model_name_or_path ${MODEL_NAME_OR_PATH} \
41
+ --train_datasets ${TRAIN_DATASETS} \
42
+ --train_template ${TRAIN_TEMPLATE} \
43
+ --train_split ${TRAIN_SPLIT} \
44
+ --train_name ${TRAIN_NAME} \
45
+ --output_dir ${OUTPUT_DIR} \
46
+ --save_total_limit 6 \
47
+ --train_batch_size 16 \
48
+ --epochs 3
49
  done
slice_12210/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
slice_12210/chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}"
3
+ }
slice_12210/config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "ignore_index": -100,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 336,
12
+ 672
13
+ ],
14
+ [
15
+ 672,
16
+ 336
17
+ ],
18
+ [
19
+ 672,
20
+ 672
21
+ ],
22
+ [
23
+ 1008,
24
+ 336
25
+ ],
26
+ [
27
+ 336,
28
+ 1008
29
+ ]
30
+ ],
31
+ "image_seq_length": 576,
32
+ "image_token_index": 32000,
33
+ "model_type": "llava_next",
34
+ "multimodal_projector_bias": true,
35
+ "pad_token_id": 32001,
36
+ "projector_hidden_act": "gelu",
37
+ "text_config": {
38
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
39
+ "architectures": [
40
+ "MistralForCausalLM"
41
+ ],
42
+ "attention_dropout": 0.0,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 32768,
49
+ "model_type": "mistral",
50
+ "num_attention_heads": 32,
51
+ "num_hidden_layers": 32,
52
+ "num_key_value_heads": 8,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": null,
56
+ "torch_dtype": "bfloat16",
57
+ "use_cache": true,
58
+ "vocab_size": 32064
59
+ },
60
+ "tie_word_embeddings": false,
61
+ "torch_dtype": "bfloat16",
62
+ "transformers_version": "4.50.0",
63
+ "use_image_newline_parameter": true,
64
+ "vision_config": {
65
+ "attention_dropout": 0.0,
66
+ "hidden_act": "quick_gelu",
67
+ "hidden_size": 1024,
68
+ "image_size": 336,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 4096,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 16,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 24,
77
+ "patch_size": 14,
78
+ "projection_dim": 768,
79
+ "torch_dtype": "bfloat16",
80
+ "vocab_size": 32000
81
+ },
82
+ "vision_feature_layer": -2,
83
+ "vision_feature_select_strategy": "default",
84
+ "vocab_size": 32064
85
+ }
slice_12210/preprocessor_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_grid_pinpoints": [
14
+ [
15
+ 336,
16
+ 672
17
+ ],
18
+ [
19
+ 672,
20
+ 336
21
+ ],
22
+ [
23
+ 672,
24
+ 672
25
+ ],
26
+ [
27
+ 1008,
28
+ 336
29
+ ],
30
+ [
31
+ 336,
32
+ 1008
33
+ ]
34
+ ],
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_processor_type": "LlavaNextImageProcessor",
41
+ "image_std": [
42
+ 0.26862954,
43
+ 0.26130258,
44
+ 0.27577711
45
+ ],
46
+ "processor_class": "LlavaNextProcessor",
47
+ "resample": 3,
48
+ "rescale_factor": 0.00392156862745098,
49
+ "size": {
50
+ "shortest_edge": 336
51
+ }
52
+ }
slice_12210/processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaNextProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }
slice_12210/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50fe23894954dfe7a380eff5e1d6c3825980defc6339958183afb240541d7dce
3
+ size 15133733934
slice_12210/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "image_token": "<image>",
17
+ "pad_token": {
18
+ "content": "<pad>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "unk_token": {
25
+ "content": "<unk>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
slice_12210/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
slice_12210/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
slice_12210/tokenizer_config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<image>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "</s>",
52
+ "extra_special_tokens": {
53
+ "image_token": "<image>"
54
+ },
55
+ "image_token": "<image>",
56
+ "legacy": true,
57
+ "max_length": null,
58
+ "model_max_length": 2048,
59
+ "pad_to_multiple_of": null,
60
+ "pad_token": "<pad>",
61
+ "pad_token_type_id": 0,
62
+ "padding_side": "right",
63
+ "processor_class": "LlavaNextProcessor",
64
+ "sp_model_kwargs": {},
65
+ "spaces_between_special_tokens": false,
66
+ "tokenizer_class": "LlamaTokenizer",
67
+ "unk_token": "<unk>",
68
+ "use_default_system_prompt": false
69
+ }
slice_14652/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
slice_14652/chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}"
3
+ }
slice_14652/config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "ignore_index": -100,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 336,
12
+ 672
13
+ ],
14
+ [
15
+ 672,
16
+ 336
17
+ ],
18
+ [
19
+ 672,
20
+ 672
21
+ ],
22
+ [
23
+ 1008,
24
+ 336
25
+ ],
26
+ [
27
+ 336,
28
+ 1008
29
+ ]
30
+ ],
31
+ "image_seq_length": 576,
32
+ "image_token_index": 32000,
33
+ "model_type": "llava_next",
34
+ "multimodal_projector_bias": true,
35
+ "pad_token_id": 32001,
36
+ "projector_hidden_act": "gelu",
37
+ "text_config": {
38
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
39
+ "architectures": [
40
+ "MistralForCausalLM"
41
+ ],
42
+ "attention_dropout": 0.0,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 32768,
49
+ "model_type": "mistral",
50
+ "num_attention_heads": 32,
51
+ "num_hidden_layers": 32,
52
+ "num_key_value_heads": 8,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": null,
56
+ "torch_dtype": "bfloat16",
57
+ "use_cache": true,
58
+ "vocab_size": 32064
59
+ },
60
+ "tie_word_embeddings": false,
61
+ "torch_dtype": "bfloat16",
62
+ "transformers_version": "4.50.0",
63
+ "use_image_newline_parameter": true,
64
+ "vision_config": {
65
+ "attention_dropout": 0.0,
66
+ "hidden_act": "quick_gelu",
67
+ "hidden_size": 1024,
68
+ "image_size": 336,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 4096,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 16,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 24,
77
+ "patch_size": 14,
78
+ "projection_dim": 768,
79
+ "torch_dtype": "bfloat16",
80
+ "vocab_size": 32000
81
+ },
82
+ "vision_feature_layer": -2,
83
+ "vision_feature_select_strategy": "default",
84
+ "vocab_size": 32064
85
+ }
slice_14652/preprocessor_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_grid_pinpoints": [
14
+ [
15
+ 336,
16
+ 672
17
+ ],
18
+ [
19
+ 672,
20
+ 336
21
+ ],
22
+ [
23
+ 672,
24
+ 672
25
+ ],
26
+ [
27
+ 1008,
28
+ 336
29
+ ],
30
+ [
31
+ 336,
32
+ 1008
33
+ ]
34
+ ],
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_processor_type": "LlavaNextImageProcessor",
41
+ "image_std": [
42
+ 0.26862954,
43
+ 0.26130258,
44
+ 0.27577711
45
+ ],
46
+ "processor_class": "LlavaNextProcessor",
47
+ "resample": 3,
48
+ "rescale_factor": 0.00392156862745098,
49
+ "size": {
50
+ "shortest_edge": 336
51
+ }
52
+ }
slice_14652/processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaNextProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }
slice_14652/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfb0a6769ac3b4acd0c5e0107a5d5fc7d31c94e81e0df91904edf89d26130aeb
3
+ size 15133733934
slice_14652/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "image_token": "<image>",
17
+ "pad_token": {
18
+ "content": "<pad>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "unk_token": {
25
+ "content": "<unk>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
slice_14652/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
slice_14652/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
slice_14652/tokenizer_config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<image>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "</s>",
52
+ "extra_special_tokens": {
53
+ "image_token": "<image>"
54
+ },
55
+ "image_token": "<image>",
56
+ "legacy": true,
57
+ "max_length": null,
58
+ "model_max_length": 2048,
59
+ "pad_to_multiple_of": null,
60
+ "pad_token": "<pad>",
61
+ "pad_token_type_id": 0,
62
+ "padding_side": "right",
63
+ "processor_class": "LlavaNextProcessor",
64
+ "sp_model_kwargs": {},
65
+ "spaces_between_special_tokens": false,
66
+ "tokenizer_class": "LlamaTokenizer",
67
+ "unk_token": "<unk>",
68
+ "use_default_system_prompt": false
69
+ }
slice_2442/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
slice_2442/chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}"
3
+ }
slice_2442/config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "ignore_index": -100,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 336,
12
+ 672
13
+ ],
14
+ [
15
+ 672,
16
+ 336
17
+ ],
18
+ [
19
+ 672,
20
+ 672
21
+ ],
22
+ [
23
+ 1008,
24
+ 336
25
+ ],
26
+ [
27
+ 336,
28
+ 1008
29
+ ]
30
+ ],
31
+ "image_seq_length": 576,
32
+ "image_token_index": 32000,
33
+ "model_type": "llava_next",
34
+ "multimodal_projector_bias": true,
35
+ "pad_token_id": 32001,
36
+ "projector_hidden_act": "gelu",
37
+ "text_config": {
38
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
39
+ "architectures": [
40
+ "MistralForCausalLM"
41
+ ],
42
+ "attention_dropout": 0.0,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 32768,
49
+ "model_type": "mistral",
50
+ "num_attention_heads": 32,
51
+ "num_hidden_layers": 32,
52
+ "num_key_value_heads": 8,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": null,
56
+ "torch_dtype": "bfloat16",
57
+ "use_cache": true,
58
+ "vocab_size": 32064
59
+ },
60
+ "tie_word_embeddings": false,
61
+ "torch_dtype": "bfloat16",
62
+ "transformers_version": "4.50.0",
63
+ "use_image_newline_parameter": true,
64
+ "vision_config": {
65
+ "attention_dropout": 0.0,
66
+ "hidden_act": "quick_gelu",
67
+ "hidden_size": 1024,
68
+ "image_size": 336,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 4096,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 16,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 24,
77
+ "patch_size": 14,
78
+ "projection_dim": 768,
79
+ "torch_dtype": "bfloat16",
80
+ "vocab_size": 32000
81
+ },
82
+ "vision_feature_layer": -2,
83
+ "vision_feature_select_strategy": "default",
84
+ "vocab_size": 32064
85
+ }
slice_2442/preprocessor_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_grid_pinpoints": [
14
+ [
15
+ 336,
16
+ 672
17
+ ],
18
+ [
19
+ 672,
20
+ 336
21
+ ],
22
+ [
23
+ 672,
24
+ 672
25
+ ],
26
+ [
27
+ 1008,
28
+ 336
29
+ ],
30
+ [
31
+ 336,
32
+ 1008
33
+ ]
34
+ ],
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_processor_type": "LlavaNextImageProcessor",
41
+ "image_std": [
42
+ 0.26862954,
43
+ 0.26130258,
44
+ 0.27577711
45
+ ],
46
+ "processor_class": "LlavaNextProcessor",
47
+ "resample": 3,
48
+ "rescale_factor": 0.00392156862745098,
49
+ "size": {
50
+ "shortest_edge": 336
51
+ }
52
+ }
slice_2442/processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaNextProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }
slice_2442/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c365664346750308bad7b4c2d090d2a4d9c9ff5493227a5c0a7e88454cf5e09e
3
+ size 15133733934
slice_2442/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "image_token": "<image>",
17
+ "pad_token": {
18
+ "content": "<pad>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "unk_token": {
25
+ "content": "<unk>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
slice_2442/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
slice_2442/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
slice_2442/tokenizer_config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<image>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "</s>",
52
+ "extra_special_tokens": {
53
+ "image_token": "<image>"
54
+ },
55
+ "image_token": "<image>",
56
+ "legacy": true,
57
+ "max_length": null,
58
+ "model_max_length": 2048,
59
+ "pad_to_multiple_of": null,
60
+ "pad_token": "<pad>",
61
+ "pad_token_type_id": 0,
62
+ "padding_side": "right",
63
+ "processor_class": "LlavaNextProcessor",
64
+ "sp_model_kwargs": {},
65
+ "spaces_between_special_tokens": false,
66
+ "tokenizer_class": "LlamaTokenizer",
67
+ "unk_token": "<unk>",
68
+ "use_default_system_prompt": false
69
+ }
slice_4884/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
slice_4884/chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}"
3
+ }
slice_4884/config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "ignore_index": -100,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 336,
12
+ 672
13
+ ],
14
+ [
15
+ 672,
16
+ 336
17
+ ],
18
+ [
19
+ 672,
20
+ 672
21
+ ],
22
+ [
23
+ 1008,
24
+ 336
25
+ ],
26
+ [
27
+ 336,
28
+ 1008
29
+ ]
30
+ ],
31
+ "image_seq_length": 576,
32
+ "image_token_index": 32000,
33
+ "model_type": "llava_next",
34
+ "multimodal_projector_bias": true,
35
+ "pad_token_id": 32001,
36
+ "projector_hidden_act": "gelu",
37
+ "text_config": {
38
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
39
+ "architectures": [
40
+ "MistralForCausalLM"
41
+ ],
42
+ "attention_dropout": 0.0,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 32768,
49
+ "model_type": "mistral",
50
+ "num_attention_heads": 32,
51
+ "num_hidden_layers": 32,
52
+ "num_key_value_heads": 8,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": null,
56
+ "torch_dtype": "bfloat16",
57
+ "use_cache": true,
58
+ "vocab_size": 32064
59
+ },
60
+ "tie_word_embeddings": false,
61
+ "torch_dtype": "bfloat16",
62
+ "transformers_version": "4.50.0",
63
+ "use_image_newline_parameter": true,
64
+ "vision_config": {
65
+ "attention_dropout": 0.0,
66
+ "hidden_act": "quick_gelu",
67
+ "hidden_size": 1024,
68
+ "image_size": 336,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 4096,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 16,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 24,
77
+ "patch_size": 14,
78
+ "projection_dim": 768,
79
+ "torch_dtype": "bfloat16",
80
+ "vocab_size": 32000
81
+ },
82
+ "vision_feature_layer": -2,
83
+ "vision_feature_select_strategy": "default",
84
+ "vocab_size": 32064
85
+ }
slice_4884/preprocessor_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_grid_pinpoints": [
14
+ [
15
+ 336,
16
+ 672
17
+ ],
18
+ [
19
+ 672,
20
+ 336
21
+ ],
22
+ [
23
+ 672,
24
+ 672
25
+ ],
26
+ [
27
+ 1008,
28
+ 336
29
+ ],
30
+ [
31
+ 336,
32
+ 1008
33
+ ]
34
+ ],
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_processor_type": "LlavaNextImageProcessor",
41
+ "image_std": [
42
+ 0.26862954,
43
+ 0.26130258,
44
+ 0.27577711
45
+ ],
46
+ "processor_class": "LlavaNextProcessor",
47
+ "resample": 3,
48
+ "rescale_factor": 0.00392156862745098,
49
+ "size": {
50
+ "shortest_edge": 336
51
+ }
52
+ }
slice_4884/processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaNextProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }
slice_4884/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac6e0e7c8b2ba35bd8c92e5a2af72ef96f4dd948ab3c8571639adca8e8ef15e7
3
+ size 15133733934
slice_4884/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "image_token": "<image>",
17
+ "pad_token": {
18
+ "content": "<pad>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "unk_token": {
25
+ "content": "<unk>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
slice_4884/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
slice_4884/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
slice_4884/tokenizer_config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<image>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "</s>",
52
+ "extra_special_tokens": {
53
+ "image_token": "<image>"
54
+ },
55
+ "image_token": "<image>",
56
+ "legacy": true,
57
+ "max_length": null,
58
+ "model_max_length": 2048,
59
+ "pad_to_multiple_of": null,
60
+ "pad_token": "<pad>",
61
+ "pad_token_type_id": 0,
62
+ "padding_side": "right",
63
+ "processor_class": "LlavaNextProcessor",
64
+ "sp_model_kwargs": {},
65
+ "spaces_between_special_tokens": false,
66
+ "tokenizer_class": "LlamaTokenizer",
67
+ "unk_token": "<unk>",
68
+ "use_default_system_prompt": false
69
+ }
slice_7326/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
slice_7326/chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}"
3
+ }
slice_7326/config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "ignore_index": -100,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 336,
12
+ 672
13
+ ],
14
+ [
15
+ 672,
16
+ 336
17
+ ],
18
+ [
19
+ 672,
20
+ 672
21
+ ],
22
+ [
23
+ 1008,
24
+ 336
25
+ ],
26
+ [
27
+ 336,
28
+ 1008
29
+ ]
30
+ ],
31
+ "image_seq_length": 576,
32
+ "image_token_index": 32000,
33
+ "model_type": "llava_next",
34
+ "multimodal_projector_bias": true,
35
+ "pad_token_id": 32001,
36
+ "projector_hidden_act": "gelu",
37
+ "text_config": {
38
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
39
+ "architectures": [
40
+ "MistralForCausalLM"
41
+ ],
42
+ "attention_dropout": 0.0,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 32768,
49
+ "model_type": "mistral",
50
+ "num_attention_heads": 32,
51
+ "num_hidden_layers": 32,
52
+ "num_key_value_heads": 8,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": null,
56
+ "torch_dtype": "bfloat16",
57
+ "use_cache": true,
58
+ "vocab_size": 32064
59
+ },
60
+ "tie_word_embeddings": false,
61
+ "torch_dtype": "bfloat16",
62
+ "transformers_version": "4.50.0",
63
+ "use_image_newline_parameter": true,
64
+ "vision_config": {
65
+ "attention_dropout": 0.0,
66
+ "hidden_act": "quick_gelu",
67
+ "hidden_size": 1024,
68
+ "image_size": 336,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 4096,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 16,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 24,
77
+ "patch_size": 14,
78
+ "projection_dim": 768,
79
+ "torch_dtype": "bfloat16",
80
+ "vocab_size": 32000
81
+ },
82
+ "vision_feature_layer": -2,
83
+ "vision_feature_select_strategy": "default",
84
+ "vocab_size": 32064
85
+ }
slice_7326/preprocessor_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_grid_pinpoints": [
14
+ [
15
+ 336,
16
+ 672
17
+ ],
18
+ [
19
+ 672,
20
+ 336
21
+ ],
22
+ [
23
+ 672,
24
+ 672
25
+ ],
26
+ [
27
+ 1008,
28
+ 336
29
+ ],
30
+ [
31
+ 336,
32
+ 1008
33
+ ]
34
+ ],
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_processor_type": "LlavaNextImageProcessor",
41
+ "image_std": [
42
+ 0.26862954,
43
+ 0.26130258,
44
+ 0.27577711
45
+ ],
46
+ "processor_class": "LlavaNextProcessor",
47
+ "resample": 3,
48
+ "rescale_factor": 0.00392156862745098,
49
+ "size": {
50
+ "shortest_edge": 336
51
+ }
52
+ }
slice_7326/processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaNextProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }