Skip to content

Commit 9d865cf

Browse files
committed
support tome-llava
1 parent 9b89bad commit 9d865cf

File tree

3 files changed

+432
-0
lines changed

3 files changed

+432
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
base:
2+
seed: &seed 42
3+
model:
4+
type: Llava
5+
path: model path
6+
torch_dtype: auto
7+
eval:
8+
eval_pos: [pretrain, transformed]
9+
type: vqa
10+
name: [mme]
11+
download: False
12+
path: MME dataset path
13+
bs: 1
14+
inference_per_block: False
15+
sparse:
16+
vision:
17+
method: TokenReduction
18+
special:
19+
method: ToMe
20+
r: 16 # 16 or (16, -1.0) or [16,16,16,16,16,16]
21+
22+
save:
23+
save_trans: False
24+
save_fake: False
25+
save_path: /path/to/save/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
from .base_blockwise_token_reduction import TokenReduction
22
from .fastv import FastV
3+
from .tome import ToMe

0 commit comments

Comments
 (0)