-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_figures.py
More file actions
59 lines (52 loc) · 1.43 KB
/
generate_figures.py
File metadata and controls
59 lines (52 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from bayesadapt.viz.latex import make_latex_table, make_latex_ood_table
from bayesadapt.viz import load_df, reduce_seeds, load_json, query, CLS_METRICS
from bayesadapt.viz.style import style_dict, metric2arrow, wrapper2label
from bayesadapt.viz import plot
root = '/project/synthesis/bayesadapt/logs/'
id_df = load_df(root=root, mode='id')
ood_df = load_df(root=root, mode='ood')
active_df = load_df(root=root, mode='active_learn')
model = 'Qwen3-8B'
plot.plot_winogrande(
id_df,
model=model,
prompt_type='instruct',
save_path=f'figs/winogrande_size_comparison_{model}.png'
)
# sizes = [0.6, 1.7, 4, 8, 14]
plot.plot_resource(
id_df,
dataset='winogrande_s',
prompt_type='instruct',
save_path=f'figs/resource_usage.png'
)
plot.plot_id(
id_df,
dataset='obqa',
prompt_type='instruct',
save_path=f'figs/obqa_id.png'
)
model = 'Qwen3-0.6B'
plot.plot_active_learn(
active_df,
dataset='expression_logic',
prompt_type='instruct',
model=model,
save_path=f'figs/elogic_active_learn_{model}.png'
)
sizes = [2, 4, 8]
for size in sizes:
model = f'Qwen3-VL-{size}B-Instruct'
plot.plot_noisy_slake(
id_df,
ood_df,
model=model,
save_path=f'figs/noisy_slake_{model}.png'
)
plot.plot_active_learn(
active_df,
dataset='srqa',
prompt_type='vlm',
model=model,
save_path=f'figs/srqa_active_learn_{model}.png'
)