File size: 2,277 Bytes
a54f8cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
  "backend": "tokenizers",
  "boi_token": "<start_of_image>",
  "bos_token": "<bos>",
  "clean_up_tokenization_spaces": false,
  "eoi_token": "<end_of_image>",
  "eos_token": "<eos>",
  "image_token": "<image_soft_token>",
  "is_local": true,
  "mask_token": "<mask>",
  "model_max_length": 1000000000000000019884624838656,
  "model_specific_special_tokens": {
    "boi_token": "<start_of_image>",
    "eoi_token": "<end_of_image>",
    "image_token": "<image_soft_token>",
    "sfr_token": "<start_function_response>"
  },
  "pad_token": "<pad>",
  "padding_side": "left",
  "response_schema": {
    "properties": {
      "content": {
        "type": "string",
        "x-regex": "^\\s*(?:<start_function_call>.*?<end_function_call>|<start_function_response>|<end_of_turn>|\\s+)*((?:(?!<start_function_call>|<start_function_response>|<end_of_turn>).)+)(?:<start_function_call>.*?<end_function_call>|<start_function_response>|<end_of_turn>|\\s+)*$"
      },
      "role": {
        "const": "assistant"
      },
      "tool_calls": {
        "items": {
          "properties": {
            "function": {
              "properties": {
                "arguments": {
                  "additionalProperties": {
                    "x-parser": "json",
                    "x-parser-args": {
                      "allow_non_json": true
                    }
                  },
                  "type": "object",
                  "x-regex-key-value": "\\{(?P<key>\\w+):(?P<value>.*)\\}"
                },
                "name": {
                  "type": "string",
                  "x-regex": "call:([^\\{]*)"
                }
              },
              "type": "object",
              "x-mapping-regex": {
                "\\<escape\\>": "\""
              }
            },
            "type": {
              "const": "function"
            }
          },
          "type": "object"
        },
        "type": "array",
        "x-regex-iterator": "\\<start_function_call\\>(.*?)(?:\\<end_function_call\\>)"
      }
    },
    "type": "object"
  },
  "sfr_token": "<start_function_response>",
  "sp_model_kwargs": null,
  "spaces_between_special_tokens": false,
  "tokenizer_class": "GemmaTokenizer",
  "unk_token": "<unk>",
  "use_default_system_prompt": false
}