End of training
Browse files- README.md +50 -0
- config.json +52 -0
- mm_projector.bin +3 -0
- trainer_state.json +27 -0
README.md
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/llava-med-v1.5-mistral-7b
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: llava-med-v1.5-mistral-7b-pretrain
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# llava-med-v1.5-mistral-7b-pretrain
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [microsoft/llava-med-v1.5-mistral-7b](https://huggingface.co/microsoft/llava-med-v1.5-mistral-7b) on an unknown dataset.
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 1e-05
|
36 |
+
- train_batch_size: 1
|
37 |
+
- eval_batch_size: 1
|
38 |
+
- seed: 42
|
39 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
40 |
+
- lr_scheduler_type: cosine
|
41 |
+
- lr_scheduler_warmup_ratio: 0.03
|
42 |
+
- num_epochs: 1.0
|
43 |
+
- mixed_precision_training: Native AMP
|
44 |
+
|
45 |
+
### Framework versions
|
46 |
+
|
47 |
+
- Transformers 4.37.2
|
48 |
+
- Pytorch 2.0.1+cu117
|
49 |
+
- Datasets 2.16.0
|
50 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/llava-med-v1.5-mistral-7b",
|
3 |
+
"architectures": [
|
4 |
+
"LlavaMistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"feature_outs": "encoder+decoder",
|
11 |
+
"freeze_mm_mlp_adapter": false,
|
12 |
+
"hidden_act": "silu",
|
13 |
+
"hidden_size": 4096,
|
14 |
+
"image_aspect_ratio": "square",
|
15 |
+
"img_size": 640,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 14336,
|
18 |
+
"max_position_embeddings": 32768,
|
19 |
+
"mm_hidden_size": 1024,
|
20 |
+
"mm_patch_merge_type": "flat",
|
21 |
+
"mm_projector_lr": null,
|
22 |
+
"mm_projector_type": "mlp2x_gelu",
|
23 |
+
"mm_use_im_patch_token": false,
|
24 |
+
"mm_use_im_start_end": false,
|
25 |
+
"mm_vision_select_feature": "patch",
|
26 |
+
"mm_vision_select_layer": -2,
|
27 |
+
"mm_vision_tower": "hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224",
|
28 |
+
"model_type": "llava_llama",
|
29 |
+
"num_attention_heads": 32,
|
30 |
+
"num_hidden_layers": 32,
|
31 |
+
"num_key_value_heads": 8,
|
32 |
+
"pretraining_tp": 1,
|
33 |
+
"proj_vis_to_txt_tokens": false,
|
34 |
+
"prompt_segtok_w_instruct": false,
|
35 |
+
"rms_norm_eps": 1e-05,
|
36 |
+
"rope_scaling": null,
|
37 |
+
"rope_theta": 1000000.0,
|
38 |
+
"segtok_posembed": "sincos",
|
39 |
+
"sliding_window": null,
|
40 |
+
"tie_word_embeddings": false,
|
41 |
+
"tokenizer_model_max_length": 2048,
|
42 |
+
"tokenizer_padding_side": "right",
|
43 |
+
"torch_dtype": "bfloat16",
|
44 |
+
"transformers_version": "4.37.2",
|
45 |
+
"tune_mm_mlp_adapter": true,
|
46 |
+
"tune_vision_tokenizer": "none",
|
47 |
+
"use_cache": true,
|
48 |
+
"use_mm_proj": true,
|
49 |
+
"vision_backbone": "convnextlarge",
|
50 |
+
"vision_tokenizer_lr": null,
|
51 |
+
"vocab_size": 32000
|
52 |
+
}
|
mm_projector.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4238151288ef5f7e701b9441ace2172a1be10808190624e688a3755b0f81fc97
|
3 |
+
size 83920509
|
trainer_state.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.5509478613073355e-05,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 9,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.0,
|
13 |
+
"learning_rate": 1.6854879487611667e-09,
|
14 |
+
"loss": 2.313,
|
15 |
+
"step": 1
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"logging_steps": 50,
|
19 |
+
"max_steps": 197761,
|
20 |
+
"num_input_tokens_seen": 0,
|
21 |
+
"num_train_epochs": 1,
|
22 |
+
"save_steps": 19776,
|
23 |
+
"total_flos": 7717069559808.0,
|
24 |
+
"train_batch_size": 1,
|
25 |
+
"trial_name": null,
|
26 |
+
"trial_params": null
|
27 |
+
}
|