hmahadik commited on
Commit
78658b9
·
verified ·
1 Parent(s): e7ff352

Add token_map.json (function-token <-> tool-name map)

Browse files
Files changed (1) hide show
  1. token_map.json +54 -0
token_map.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.1.0",
3
+ "description": "Compressed token map for FunctionGemma CPU inference on SL2619. Shrinks tool-call output ~4-6x vs canonical JSON to hit sub-1s voice UX on 2-core A55.",
4
+ "tokens": {
5
+ "turn_on_lights": "<tool_0>",
6
+ "turn_off_lights": "<tool_1>",
7
+ "set_led_color": "<tool_2>",
8
+ "blink_lights": "<tool_3>",
9
+ "set_neopixel_pattern": "<tool_4>",
10
+ "play_buzzer": "<tool_5>",
11
+ "set_alarm": "<tool_6>",
12
+ "cancel_alarm": "<tool_7>",
13
+ "list_alarms": "<tool_8>",
14
+ "get_system_status": "<tool_9>",
15
+ "capture_photo": "<tool_10>",
16
+ "describe_scene": "<tool_11>",
17
+ "respond": "<tool_12>"
18
+ },
19
+ "reverse": {
20
+ "<tool_0>": "turn_on_lights",
21
+ "<tool_1>": "turn_off_lights",
22
+ "<tool_2>": "set_led_color",
23
+ "<tool_3>": "blink_lights",
24
+ "<tool_4>": "set_neopixel_pattern",
25
+ "<tool_5>": "play_buzzer",
26
+ "<tool_6>": "set_alarm",
27
+ "<tool_7>": "cancel_alarm",
28
+ "<tool_8>": "list_alarms",
29
+ "<tool_9>": "get_system_status",
30
+ "<tool_10>": "capture_photo",
31
+ "<tool_11>": "describe_scene",
32
+ "<tool_12>": "respond",
33
+ "<tool_none>": null
34
+ },
35
+ "special_tokens": [
36
+ "<tool_0>",
37
+ "<tool_1>",
38
+ "<tool_2>",
39
+ "<tool_3>",
40
+ "<tool_4>",
41
+ "<tool_5>",
42
+ "<tool_6>",
43
+ "<tool_7>",
44
+ "<tool_8>",
45
+ "<tool_9>",
46
+ "<tool_10>",
47
+ "<tool_11>",
48
+ "<tool_12>",
49
+ "<tool_none>",
50
+ "<end>"
51
+ ],
52
+ "output_format": "<tool_N>(\"arg1\",\"arg2\",...)<end>",
53
+ "notes": "Argument order must match the canonical schema's 'required' list first, then optional params in schema declaration order. Converter normalizes canonical JSON -> positional args at training time."
54
+ }