Instructions to use yhyet/FLEX34-PureLoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yhyet/FLEX34-PureLoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("liuhaotian/llava-v1.5-7b") model = PeftModel.from_pretrained(base_model, "yhyet/FLEX34-PureLoRA") - Notebooks
- Google Colab
- Kaggle
Release FLEX34 PureLoRA checkpoint and inference guide
Browse files- README.md +72 -0
- SHA256SUMS +7 -0
- adapter_config.json +35 -0
- adapter_model.safetensors +3 -0
- config.json +48 -0
- eval_results.json +248 -0
- purelora_state.pt +3 -0
- task_mapping.json +175 -0
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
base_model: liuhaotian/llava-v1.5-7b
|
| 4 |
+
base_model_relation: adapter
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- flex
|
| 9 |
+
- purelora
|
| 10 |
+
- lora
|
| 11 |
+
- continual-learning
|
| 12 |
+
- multimodal
|
| 13 |
+
inference: false
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# FLEX34-PureLoRA
|
| 17 |
+
|
| 18 |
+
Final PureLoRA checkpoint after all 34 FLEX tasks, containing every trained
|
| 19 |
+
expert and the NCM routing prototypes. The default router uses softmax logit
|
| 20 |
+
scale 28 and equal image/text weights. Different routers can reuse these same
|
| 21 |
+
experts without retraining.
|
| 22 |
+
|
| 23 |
+
- [Code and environment setup](https://github.com/RINC-CL/FLEX/tree/ba5bbccbfbad4ab9ba2985a56930a814aa1076be)
|
| 24 |
+
- [FLEX instructions and image sources](https://huggingface.co/datasets/yhyet/FLEX)
|
| 25 |
+
- [Task-to-expert mapping](task_mapping.json) and [per-task Base results](eval_results.json)
|
| 26 |
+
|
| 27 |
+
The Base reference scores are **M = 54.60**, **G = 60.81%**, and **R = 83.77%**.
|
| 28 |
+
This is a custom `PURELORA` adapter: use the FLEX repository's bundled `PEFT`
|
| 29 |
+
implementation and loading code. Download the base model and CLIP separately.
|
| 30 |
+
|
| 31 |
+
## Download
|
| 32 |
+
|
| 33 |
+
```bash
|
| 34 |
+
hf download yhyet/FLEX34-PureLoRA --local-dir ./checkpoints/FLEX34-PureLoRA
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
The checkpoint consists of `adapter_model.safetensors`, `adapter_config.json`,
|
| 38 |
+
`config.json`, and `purelora_state.pt`. Keep all four in the same directory.
|
| 39 |
+
To verify the downloaded files, run `sha256sum -c SHA256SUMS` in that directory.
|
| 40 |
+
|
| 41 |
+
## Inference
|
| 42 |
+
|
| 43 |
+
Install the FLEX code and prepare the instructions and images following its
|
| 44 |
+
README. In `config/paths/llava_paths.py`, set `BASE_MODEL_PATH` to your local
|
| 45 |
+
[LLaVA-1.5-7B snapshot](https://huggingface.co/liuhaotian/llava-v1.5-7b/tree/4481d270cc22fd5c4d1bb5df129622006ccd9234)
|
| 46 |
+
and `CLIP_PATH` to your local
|
| 47 |
+
[CLIP ViT-L/14-336 snapshot](https://huggingface.co/openai/clip-vit-large-patch14-336/tree/ce19dc912ca5cd21c8a653c79e251e808ccabcd1).
|
| 48 |
+
|
| 49 |
+
From the FLEX code directory, after downloading this checkpoint there:
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
export FLEX_INSTRUCTION_ROOT=/path/to/datasets/FLEX/instructions
|
| 53 |
+
export PURELORA_MIXTURE_LOGIT_SCALE=28
|
| 54 |
+
export PURELORA_IMAGE_WEIGHT=0.5
|
| 55 |
+
export PURELORA_TEXT_WEIGHT=0.5
|
| 56 |
+
|
| 57 |
+
python run.py infer $(seq 0 33) \
|
| 58 |
+
--benchmark flex --method purelora --backbone llava \
|
| 59 |
+
--model-path ./checkpoints/FLEX34-PureLoRA \
|
| 60 |
+
--checkpoint-task 33 --cl-task-num 34 --stage last \
|
| 61 |
+
--gpus 0 --batch-size 1 --temperature 0 --conv-mode vicuna_v1 \
|
| 62 |
+
--no-top1-expert-routing --no-oracle-expert-routing \
|
| 63 |
+
--accel-eval --run-stamp flex34-purelora-ncm28
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
For a short run, replace `$(seq 0 33)` with `0`. The command uses the FLEX
|
| 67 |
+
code's default bfloat16 inference. For task-oracle inference, replace
|
| 68 |
+
`--no-oracle-expert-routing` with `--oracle-expert-routing`.
|
| 69 |
+
|
| 70 |
+
Base model revision: `4481d270cc22fd5c4d1bb5df129622006ccd9234`.
|
| 71 |
+
Expert IDs 0–33 follow the fixed FLEX task order in `task_mapping.json`.
|
| 72 |
+
Use of the adapters is subject to the upstream base model and dataset terms.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
afd8ce343e25f841040bed383e244d24c5ce1e7e64c7ee1088f4d079dd269c58 README.md
|
| 2 |
+
7c7341580d4c43d2d6ccdc62bbf5f912c7c72b986535a4e9dc5c15a5e7a785d7 adapter_config.json
|
| 3 |
+
597951d81d90e35d326e8c14228b4f569a68229f5ef1a711a943d77002db5e61 adapter_model.safetensors
|
| 4 |
+
6958e8e7088c55fa67a7b5976f1f235117ae848b7dbbcc5c7032bac2bc8d5f52 config.json
|
| 5 |
+
2d89b941f0af87e41ac0ee977b19797b67a98c7ce2fe60c29cd435d703344752 eval_results.json
|
| 6 |
+
3978e74de33a605ae258f96ba0399d1ba49c4128307d9b62bf93ad6eef9452cb purelora_state.pt
|
| 7 |
+
c1ceb31a85614996577a0323df506bc8ee1693ad389b3100bd743a08b5b1c5c3 task_mapping.json
|
adapter_config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"auto_mapping": null,
|
| 3 |
+
"base_model_name_or_path": "liuhaotian/llava-v1.5-7b",
|
| 4 |
+
"bias": "none",
|
| 5 |
+
"cur_task": 33,
|
| 6 |
+
"exclude_module_path_segments": [
|
| 7 |
+
"mm_projector",
|
| 8 |
+
"vision_tower",
|
| 9 |
+
"text_tower",
|
| 10 |
+
"vision_resampler"
|
| 11 |
+
],
|
| 12 |
+
"expert_num": 34,
|
| 13 |
+
"fan_in_fan_out": false,
|
| 14 |
+
"inference_mode": true,
|
| 15 |
+
"init_lora_weights": true,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"lora_alpha": 544,
|
| 19 |
+
"lora_dropout": 0.05,
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "PURELORA",
|
| 22 |
+
"r": 272,
|
| 23 |
+
"revision": "4481d270cc22fd5c4d1bb5df129622006ccd9234",
|
| 24 |
+
"target_modules": [
|
| 25 |
+
"down_proj",
|
| 26 |
+
"gate_proj",
|
| 27 |
+
"k_proj",
|
| 28 |
+
"o_proj",
|
| 29 |
+
"q_proj",
|
| 30 |
+
"up_proj",
|
| 31 |
+
"v_proj"
|
| 32 |
+
],
|
| 33 |
+
"task_embedding_dim": 64,
|
| 34 |
+
"task_type": "CAUSAL_LM"
|
| 35 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:597951d81d90e35d326e8c14228b4f569a68229f5ef1a711a943d77002db5e61
|
| 3 |
+
size 1361477384
|
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "liuhaotian/llava-v1.5-7b",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlavaLlamaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"freeze_mm_mlp_adapter": true,
|
| 9 |
+
"freeze_mm_vision_resampler": false,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 4096,
|
| 12 |
+
"image_aspect_ratio": "pad",
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 11008,
|
| 15 |
+
"max_length": 4096,
|
| 16 |
+
"max_position_embeddings": 4096,
|
| 17 |
+
"mm_hidden_size": 1024,
|
| 18 |
+
"mm_projector_lr": 2e-05,
|
| 19 |
+
"mm_projector_type": "mlp2x_gelu",
|
| 20 |
+
"mm_resampler_type": null,
|
| 21 |
+
"mm_text_select_layer": -1,
|
| 22 |
+
"mm_text_tower": "openai/clip-vit-large-patch14-336",
|
| 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": "openai/clip-vit-large-patch14-336",
|
| 28 |
+
"model_type": "llava",
|
| 29 |
+
"num_attention_heads": 32,
|
| 30 |
+
"num_hidden_layers": 32,
|
| 31 |
+
"num_key_value_heads": 32,
|
| 32 |
+
"pad_token_id": 0,
|
| 33 |
+
"pretraining_tp": 1,
|
| 34 |
+
"rms_norm_eps": 1e-05,
|
| 35 |
+
"rope_scaling": null,
|
| 36 |
+
"routing_vision_tower": "openai/clip-vit-large-patch14-336",
|
| 37 |
+
"tie_word_embeddings": false,
|
| 38 |
+
"tokenizer_model_max_length": 2048,
|
| 39 |
+
"tokenizer_padding_side": "right",
|
| 40 |
+
"torch_dtype": "float16",
|
| 41 |
+
"transformers_version": "4.31.0",
|
| 42 |
+
"tune_mm_mlp_adapter": false,
|
| 43 |
+
"tune_mm_vision_resampler": false,
|
| 44 |
+
"unfreeze_mm_vision_tower": false,
|
| 45 |
+
"use_cache": false,
|
| 46 |
+
"use_mm_proj": true,
|
| 47 |
+
"vocab_size": 32000
|
| 48 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"benchmark": "FLEX34",
|
| 3 |
+
"routing": "NCM with softmax logit scale 28",
|
| 4 |
+
"num_tasks": 34,
|
| 5 |
+
"macro_score": 54.59617647058823,
|
| 6 |
+
"ground_truth_weight_percent": 60.805504155038214,
|
| 7 |
+
"strict_expert_match_percent": 83.76706610063854,
|
| 8 |
+
"tasks": [
|
| 9 |
+
{
|
| 10 |
+
"expert_id": 0,
|
| 11 |
+
"task": "ImageNet200_1",
|
| 12 |
+
"score": 54.03,
|
| 13 |
+
"ground_truth_weight_percent": 35.895350189507006,
|
| 14 |
+
"strict_expert_match_percent": 69.5
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"expert_id": 1,
|
| 18 |
+
"task": "ImageNet200_2",
|
| 19 |
+
"score": 58.53,
|
| 20 |
+
"ground_truth_weight_percent": 34.22922151659925,
|
| 21 |
+
"strict_expert_match_percent": 73.5
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"expert_id": 2,
|
| 25 |
+
"task": "ImageNet200_3",
|
| 26 |
+
"score": 58.47,
|
| 27 |
+
"ground_truth_weight_percent": 26.508872203777234,
|
| 28 |
+
"strict_expert_match_percent": 49.833333333333336
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"expert_id": 3,
|
| 32 |
+
"task": "ImageNet200_4",
|
| 33 |
+
"score": 58.87,
|
| 34 |
+
"ground_truth_weight_percent": 26.688444763918717,
|
| 35 |
+
"strict_expert_match_percent": 52.06666666666667
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"expert_id": 4,
|
| 39 |
+
"task": "ImageNet200_5",
|
| 40 |
+
"score": 55.3,
|
| 41 |
+
"ground_truth_weight_percent": 26.8756500462691,
|
| 42 |
+
"strict_expert_match_percent": 50.23333333333333
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"expert_id": 5,
|
| 46 |
+
"task": "ArxivQA",
|
| 47 |
+
"score": 94.1,
|
| 48 |
+
"ground_truth_weight_percent": 88.33787338789553,
|
| 49 |
+
"strict_expert_match_percent": 97.56666666666666
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"expert_id": 6,
|
| 53 |
+
"task": "Vizcap",
|
| 54 |
+
"score": 56.5,
|
| 55 |
+
"ground_truth_weight_percent": 83.80169021685919,
|
| 56 |
+
"strict_expert_match_percent": 99.13333333333333
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expert_id": 7,
|
| 60 |
+
"task": "IconQA",
|
| 61 |
+
"score": 64.67,
|
| 62 |
+
"ground_truth_weight_percent": 62.13553921754161,
|
| 63 |
+
"strict_expert_match_percent": 98.86666666666667
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"expert_id": 8,
|
| 67 |
+
"task": "CLEVR",
|
| 68 |
+
"score": 61.57,
|
| 69 |
+
"ground_truth_weight_percent": 97.89418778419494,
|
| 70 |
+
"strict_expert_match_percent": 100.0
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"expert_id": 9,
|
| 74 |
+
"task": "Flickr30k",
|
| 75 |
+
"score": 57.53,
|
| 76 |
+
"ground_truth_weight_percent": 83.78250439961751,
|
| 77 |
+
"strict_expert_match_percent": 99.73333333333333
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"expert_id": 10,
|
| 81 |
+
"task": "ScienceQA",
|
| 82 |
+
"score": 81.13,
|
| 83 |
+
"ground_truth_weight_percent": 43.252303133602254,
|
| 84 |
+
"strict_expert_match_percent": 69.03333333333333
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"expert_id": 11,
|
| 88 |
+
"task": "TextVQA",
|
| 89 |
+
"score": 54.13,
|
| 90 |
+
"ground_truth_weight_percent": 72.68710916787387,
|
| 91 |
+
"strict_expert_match_percent": 97.56666666666666
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"expert_id": 12,
|
| 95 |
+
"task": "GQA",
|
| 96 |
+
"score": 59.0,
|
| 97 |
+
"ground_truth_weight_percent": 25.983873347441357,
|
| 98 |
+
"strict_expert_match_percent": 54.800000000000004
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"expert_id": 13,
|
| 102 |
+
"task": "VQAv2",
|
| 103 |
+
"score": 65.3,
|
| 104 |
+
"ground_truth_weight_percent": 25.272837529331444,
|
| 105 |
+
"strict_expert_match_percent": 54.56666666666666
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"expert_id": 14,
|
| 109 |
+
"task": "OCRVQA",
|
| 110 |
+
"score": 64.27,
|
| 111 |
+
"ground_truth_weight_percent": 75.30345542225987,
|
| 112 |
+
"strict_expert_match_percent": 97.63333333333334
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"expert_id": 15,
|
| 116 |
+
"task": "PMCVQA",
|
| 117 |
+
"score": 40.9,
|
| 118 |
+
"ground_truth_weight_percent": 84.34286612238114,
|
| 119 |
+
"strict_expert_match_percent": 96.33333333333334
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"expert_id": 16,
|
| 123 |
+
"task": "DocVQA",
|
| 124 |
+
"score": 30.18,
|
| 125 |
+
"ground_truth_weight_percent": 59.29709263934443,
|
| 126 |
+
"strict_expert_match_percent": 79.93333333333334
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"expert_id": 17,
|
| 130 |
+
"task": "ChartQA",
|
| 131 |
+
"score": 16.76,
|
| 132 |
+
"ground_truth_weight_percent": 74.67188779175281,
|
| 133 |
+
"strict_expert_match_percent": 94.24
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"expert_id": 18,
|
| 137 |
+
"task": "InfographicVQA",
|
| 138 |
+
"score": 39.4,
|
| 139 |
+
"ground_truth_weight_percent": 73.91684024246601,
|
| 140 |
+
"strict_expert_match_percent": 96.67975722956086
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"expert_id": 19,
|
| 144 |
+
"task": "Roadside",
|
| 145 |
+
"score": 10.37,
|
| 146 |
+
"ground_truth_weight_percent": 87.63944706817468,
|
| 147 |
+
"strict_expert_match_percent": 100.0
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"expert_id": 20,
|
| 151 |
+
"task": "ChemVQA",
|
| 152 |
+
"score": 38.3,
|
| 153 |
+
"ground_truth_weight_percent": 98.77906088394424,
|
| 154 |
+
"strict_expert_match_percent": 99.73333333333333
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"expert_id": 21,
|
| 158 |
+
"task": "FloodNetVQA",
|
| 159 |
+
"score": 81.07,
|
| 160 |
+
"ground_truth_weight_percent": 89.63124896097365,
|
| 161 |
+
"strict_expert_match_percent": 100.0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"expert_id": 22,
|
| 165 |
+
"task": "AI2D",
|
| 166 |
+
"score": 75.47,
|
| 167 |
+
"ground_truth_weight_percent": 63.82172591674477,
|
| 168 |
+
"strict_expert_match_percent": 72.34927234927235
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"expert_id": 23,
|
| 172 |
+
"task": "AOKVQA",
|
| 173 |
+
"score": 56.91,
|
| 174 |
+
"ground_truth_weight_percent": 26.03233747755488,
|
| 175 |
+
"strict_expert_match_percent": 61.46666666666667
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"expert_id": 24,
|
| 179 |
+
"task": "OKVQA",
|
| 180 |
+
"score": 64.26,
|
| 181 |
+
"ground_truth_weight_percent": 28.618040108615745,
|
| 182 |
+
"strict_expert_match_percent": 74.03369672943508
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"expert_id": 25,
|
| 186 |
+
"task": "ArtVQA",
|
| 187 |
+
"score": 24.43,
|
| 188 |
+
"ground_truth_weight_percent": 75.91621518408259,
|
| 189 |
+
"strict_expert_match_percent": 99.56666666666666
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"expert_id": 26,
|
| 193 |
+
"task": "MathVista",
|
| 194 |
+
"score": 26.4,
|
| 195 |
+
"ground_truth_weight_percent": 39.09591959747486,
|
| 196 |
+
"strict_expert_match_percent": 62.6
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"expert_id": 27,
|
| 200 |
+
"task": "PathVQA",
|
| 201 |
+
"score": 51.93,
|
| 202 |
+
"ground_truth_weight_percent": 60.848953806267424,
|
| 203 |
+
"strict_expert_match_percent": 92.56666666666666
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"expert_id": 28,
|
| 207 |
+
"task": "PlantVillageVQA",
|
| 208 |
+
"score": 56.8,
|
| 209 |
+
"ground_truth_weight_percent": 93.20231916951015,
|
| 210 |
+
"strict_expert_match_percent": 98.5
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"expert_id": 29,
|
| 214 |
+
"task": "SLAKE",
|
| 215 |
+
"score": 63.88,
|
| 216 |
+
"ground_truth_weight_percent": 64.36512597726778,
|
| 217 |
+
"strict_expert_match_percent": 83.74524714828897
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"expert_id": 30,
|
| 221 |
+
"task": "VQARAD",
|
| 222 |
+
"score": 45.68,
|
| 223 |
+
"ground_truth_weight_percent": 62.03738841540004,
|
| 224 |
+
"strict_expert_match_percent": 90.2439024390244
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"expert_id": 31,
|
| 228 |
+
"task": "ACL_OCR",
|
| 229 |
+
"score": 39.48,
|
| 230 |
+
"ground_truth_weight_percent": 28.67049870774182,
|
| 231 |
+
"strict_expert_match_percent": 80.04338394793926
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"expert_id": 32,
|
| 235 |
+
"task": "TQA",
|
| 236 |
+
"score": 61.78,
|
| 237 |
+
"ground_truth_weight_percent": 50.9868276419702,
|
| 238 |
+
"strict_expert_match_percent": 77.32170343766033
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"expert_id": 33,
|
| 242 |
+
"task": "StockQA",
|
| 243 |
+
"score": 88.87,
|
| 244 |
+
"ground_truth_weight_percent": 96.86443323294321,
|
| 245 |
+
"strict_expert_match_percent": 100.0
|
| 246 |
+
}
|
| 247 |
+
]
|
| 248 |
+
}
|
purelora_state.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3978e74de33a605ae258f96ba0399d1ba49c4128307d9b62bf93ad6eef9452cb
|
| 3 |
+
size 142673
|
task_mapping.json
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"num_experts": 34,
|
| 3 |
+
"experts": [
|
| 4 |
+
{
|
| 5 |
+
"expert_id": 0,
|
| 6 |
+
"task": "ImageNet200_1",
|
| 7 |
+
"instruction_directory": "ImageNet200_1"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"expert_id": 1,
|
| 11 |
+
"task": "ImageNet200_2",
|
| 12 |
+
"instruction_directory": "ImageNet200_2"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"expert_id": 2,
|
| 16 |
+
"task": "ImageNet200_3",
|
| 17 |
+
"instruction_directory": "ImageNet200_3"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"expert_id": 3,
|
| 21 |
+
"task": "ImageNet200_4",
|
| 22 |
+
"instruction_directory": "ImageNet200_4"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"expert_id": 4,
|
| 26 |
+
"task": "ImageNet200_5",
|
| 27 |
+
"instruction_directory": "ImageNet200_5"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expert_id": 5,
|
| 31 |
+
"task": "ArxivQA",
|
| 32 |
+
"instruction_directory": "ArxivQA"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"expert_id": 6,
|
| 36 |
+
"task": "Vizcap",
|
| 37 |
+
"instruction_directory": "Vizcap"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"expert_id": 7,
|
| 41 |
+
"task": "IconQA",
|
| 42 |
+
"instruction_directory": "IconQA"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"expert_id": 8,
|
| 46 |
+
"task": "CLEVR",
|
| 47 |
+
"instruction_directory": "CLEVR"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"expert_id": 9,
|
| 51 |
+
"task": "Flickr30k",
|
| 52 |
+
"instruction_directory": "Flickr30k"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"expert_id": 10,
|
| 56 |
+
"task": "ScienceQA",
|
| 57 |
+
"instruction_directory": "ScienceQA"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"expert_id": 11,
|
| 61 |
+
"task": "TextVQA",
|
| 62 |
+
"instruction_directory": "TextVQA"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"expert_id": 12,
|
| 66 |
+
"task": "GQA",
|
| 67 |
+
"instruction_directory": "GQA"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"expert_id": 13,
|
| 71 |
+
"task": "VQAv2",
|
| 72 |
+
"instruction_directory": "VQAv2"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"expert_id": 14,
|
| 76 |
+
"task": "OCRVQA",
|
| 77 |
+
"instruction_directory": "OCRVQA"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"expert_id": 15,
|
| 81 |
+
"task": "PMCVQA",
|
| 82 |
+
"instruction_directory": "PMCVQA"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"expert_id": 16,
|
| 86 |
+
"task": "DocVQA",
|
| 87 |
+
"instruction_directory": "DocVQA_v2"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"expert_id": 17,
|
| 91 |
+
"task": "ChartQA",
|
| 92 |
+
"instruction_directory": "ChartQA"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"expert_id": 18,
|
| 96 |
+
"task": "InfographicVQA",
|
| 97 |
+
"instruction_directory": "InfographicVQA"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"expert_id": 19,
|
| 101 |
+
"task": "Roadside",
|
| 102 |
+
"instruction_directory": "Roadside"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"expert_id": 20,
|
| 106 |
+
"task": "ChemVQA",
|
| 107 |
+
"instruction_directory": "ChemVQA"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"expert_id": 21,
|
| 111 |
+
"task": "FloodNetVQA",
|
| 112 |
+
"instruction_directory": "FloodNetVQA"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"expert_id": 22,
|
| 116 |
+
"task": "AI2D",
|
| 117 |
+
"instruction_directory": "AI2D_v2"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"expert_id": 23,
|
| 121 |
+
"task": "AOKVQA",
|
| 122 |
+
"instruction_directory": "AOKVQA"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"expert_id": 24,
|
| 126 |
+
"task": "OKVQA",
|
| 127 |
+
"instruction_directory": "OKVQA"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"expert_id": 25,
|
| 131 |
+
"task": "ArtVQA",
|
| 132 |
+
"instruction_directory": "ArtVQA"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"expert_id": 26,
|
| 136 |
+
"task": "MathVista",
|
| 137 |
+
"instruction_directory": "MathVista_v2"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"expert_id": 27,
|
| 141 |
+
"task": "PathVQA",
|
| 142 |
+
"instruction_directory": "PathVQA"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"expert_id": 28,
|
| 146 |
+
"task": "PlantVillageVQA",
|
| 147 |
+
"instruction_directory": "PlantVillageVQA"
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"expert_id": 29,
|
| 151 |
+
"task": "SLAKE",
|
| 152 |
+
"instruction_directory": "SLAKE"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"expert_id": 30,
|
| 156 |
+
"task": "VQARAD",
|
| 157 |
+
"instruction_directory": "VQARAD"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"expert_id": 31,
|
| 161 |
+
"task": "ACL_OCR",
|
| 162 |
+
"instruction_directory": "ACL_OCR_v2"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"expert_id": 32,
|
| 166 |
+
"task": "TQA",
|
| 167 |
+
"instruction_directory": "TQA"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"expert_id": 33,
|
| 171 |
+
"task": "StockQA",
|
| 172 |
+
"instruction_directory": "StockQA"
|
| 173 |
+
}
|
| 174 |
+
]
|
| 175 |
+
}
|