OmniSVG commited on
Commit
90e2bbe
·
verified ·
1 Parent(s): 75fe59a

Update config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +31 -29
config.yaml CHANGED
@@ -1,62 +1,64 @@
1
- default_variant: "8B"
 
2
 
3
- # ============================================================
4
- # Variant-specific settings
5
- # ============================================================
6
- variants:
7
- 8B:
8
  tokens:
9
  num_mask_and_eom: 152066
10
  mask: 152065
11
  eom: 152066
12
- num_end_token: 5
13
- causal_pad: 3
14
- svg_end: 1
15
  base_offset: 152064
16
  coordinates:
17
- bbox: 200
18
  pix_pad_offset: 152071
19
  coord_pad_offset: 152071
20
  colors:
21
- cmd_fill: 40010
22
- color_token_start: 40010
23
- max_color_tokens: 4098
24
  color_start_offset: 192075
25
  color_end_offset: 196172
26
- default_color_token: 40010
27
- black_color_token: 40012
28
  huggingface:
29
  qwen_model: "Qwen/Qwen2.5-VL-7B-Instruct"
30
  omnisvg_model: "OmniSVG/OmniSVG1.1_8B"
31
 
32
- 4B:
33
  tokens:
34
  num_mask_and_eom: 151938
35
  mask: 151937
36
  eom: 151938
37
- num_end_token: 5
38
- causal_pad: 3
39
- svg_end: 1
40
  base_offset: 151936
41
  coordinates:
42
- bbox: 200
43
  pix_pad_offset: 151943
44
  coord_pad_offset: 151943
45
  colors:
46
- cmd_fill: 40010
47
- color_token_start: 40010
48
- max_color_tokens: 4098
49
  color_start_offset: 191946
50
  color_end_offset: 196044
51
- default_color_token: 40010
52
- black_color_token: 40012
53
  huggingface:
54
  qwen_model: "Qwen/Qwen2.5-VL-3B-Instruct"
55
  omnisvg_model: "OmniSVG/OmniSVG1.1_4B"
56
 
57
- # ============================================================
58
- # Common settings (shared by all variants)
59
- # ============================================================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  svg_commands:
61
  move: -5
62
  line: -4
@@ -72,7 +74,7 @@ model:
72
  bos_token_id: 196998
73
  eos_token_id: 196999
74
  pad_token_id: 151643
75
- max_length: 1024
76
 
77
  text:
78
  max_length: 200
 
1
+ # Default model size (can be overridden at runtime)
2
+ default_model_size: "8B"
3
 
4
+ # ==============================================================================
5
+ # Model-specific configurations
6
+ # ==============================================================================
7
+ models:
8
+ "8B":
9
  tokens:
10
  num_mask_and_eom: 152066
11
  mask: 152065
12
  eom: 152066
 
 
 
13
  base_offset: 152064
14
  coordinates:
 
15
  pix_pad_offset: 152071
16
  coord_pad_offset: 152071
17
  colors:
 
 
 
18
  color_start_offset: 192075
19
  color_end_offset: 196172
20
+ model:
21
+ vocab_size: 197000
22
  huggingface:
23
  qwen_model: "Qwen/Qwen2.5-VL-7B-Instruct"
24
  omnisvg_model: "OmniSVG/OmniSVG1.1_8B"
25
 
26
+ "4B":
27
  tokens:
28
  num_mask_and_eom: 151938
29
  mask: 151937
30
  eom: 151938
 
 
 
31
  base_offset: 151936
32
  coordinates:
 
33
  pix_pad_offset: 151943
34
  coord_pad_offset: 151943
35
  colors:
 
 
 
36
  color_start_offset: 191946
37
  color_end_offset: 196044
38
+ model:
39
+ vocab_size: 197000
40
  huggingface:
41
  qwen_model: "Qwen/Qwen2.5-VL-3B-Instruct"
42
  omnisvg_model: "OmniSVG/OmniSVG1.1_4B"
43
 
44
+ # ==============================================================================
45
+ # Shared configurations (same for both models)
46
+ # ==============================================================================
47
+ tokens:
48
+ num_end_token: 5
49
+ causal_pad: 3
50
+ svg_end: 1
51
+
52
+ coordinates:
53
+ bbox: 200
54
+
55
+ colors:
56
+ cmd_fill: 40010
57
+ color_token_start: 40010
58
+ max_color_tokens: 4098
59
+ default_color_token: 40010
60
+ black_color_token: 40012
61
+
62
  svg_commands:
63
  move: -5
64
  line: -4
 
74
  bos_token_id: 196998
75
  eos_token_id: 196999
76
  pad_token_id: 151643
77
+ max_length: 1536
78
 
79
  text:
80
  max_length: 200