File size: 2,682 Bytes
85b1c5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
  "engine": "onnx",
  "family": "clef",
  "layout": "clef-joint-v1",
  "upstream": {
    "repo": "Cloudflare/clef-flash",
    "revision": "17f0b0ad64efb65d273590632833508766b2aae6",
    "code": "joint_schema_model.py in the model repository (encode_record, JointSchemaHead)"
  },
  "contract": {
    "inputs": {
      "input_ids": {
        "dtype": "int64",
        "shape": [
          1,
          "seq"
        ],
        "note": "the request's ids; seq a multiple of 64; right-pad with the pad id"
      },
      "token_positions": {
        "dtype": "int64",
        "shape": [
          "tokens"
        ],
        "note": "0..tokens-1"
      },
      "question_spans": {
        "dtype": "int64",
        "shape": [
          "questions",
          2
        ],
        "note": "instruction tokens [start, end) per question"
      },
      "question_types": {
        "dtype": "int64",
        "shape": [
          "questions"
        ],
        "note": "type_index"
      },
      "option_spans": {
        "dtype": "int64",
        "shape": [
          "options",
          2
        ],
        "note": "option tokens [start, end), every question's options in order"
      },
      "option_question": {
        "dtype": "int64",
        "shape": [
          "options"
        ],
        "note": "the question index of each option"
      }
    },
    "outputs": {
      "logits": {
        "dtype": "float32",
        "shape": [
          "options"
        ],
        "note": "raw option logits"
      }
    },
    "seq_multiple": 64,
    "positions": "0..seq-1, implicit",
    "attention": "causal; no mask input"
  },
  "prompt": {
    "prefix": "<|im_start|>system\nRead the complete state and schema. Decide every field jointly. Each answer must be exactly one of that field's allowed options.<|im_end|>\n<|im_start|>user\nSTATE:\n",
    "schema": "\n\nSCHEMA FIELDS:\n",
    "field": "\nFIELD {n}\nID: {id}\nTYPE: {type}\nINSTRUCTION: ",
    "options": "\nALLOWED OPTIONS:\n",
    "option": "OPTION {n}: ",
    "option_end": "\n",
    "field_end": "END FIELD\n",
    "suffix": "\n<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\nJOINT SCHEMA DECISIONS:"
  },
  "noul_criteria": {
    "true": "The proposition is true or the answer is yes.",
    "false": "The proposition is false or the answer is no."
  },
  "max_tokens": 4096,
  "pad": 248044,
  "type_index": {
    "noul": 0,
    "choice": 1,
    "score": 2
  },
  "option_logits": {
    "noul": "[true, false]",
    "choice": "labels sorted by code point",
    "score": "levels in order"
  },
  "opset": 20,
  "precision": "fp32 compute; weights BF16 (widened by Cast)",
  "weights_in_memory": "bf16"
}