File size: 2,134 Bytes
6fc089e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "engine": "onnx",
  "family": "clm",
  "layout": "clm-v1",
  "upstream": {
    "repo": "Contrastive-LM/CLM-v0.1-8B",
    "revision": "e939398d4556fcd9400c76fa8c5a513202f42b0a",
    "head": "CLM_v0.1-8B.pt",
    "base": "Qwen/Qwen3-8B",
    "base_revision": "b968826d9c46dd6066d109eabc6255188de91218",
    "code": "https://github.com/Contrastive-LM/CLM"
  },
  "contract": {
    "inputs": {
      "input_ids": {
        "dtype": "int64",
        "shape": [
          "rows",
          "seq"
        ],
        "note": "one text per row; right-pad with any id"
      },
      "last_pos": {
        "dtype": "int64",
        "shape": [
          "rows"
        ],
        "note": "position of the row's last token"
      },
      "action": {
        "dtype": "int64",
        "shape": [
          "rows"
        ],
        "note": "1 = option text (action head), 0 = state text"
      }
    },
    "outputs": {
      "z": {
        "dtype": "float32",
        "shape": [
          "rows",
          512
        ],
        "note": "L2-normalised projection"
      }
    },
    "positions": "0..seq-1, implicit",
    "attention": "causal; no mask input (right padding cannot reach earlier positions)"
  },
  "scale": 100.0,
  "max_text_tokens": 2048,
  "special_tokens": {
    "pad": 151643,
    "add_special_tokens": false
  },
  "templates": {
    "state": "clm.schema.state_text: to_text(state).strip() + '\\n\\n' + to_text(instructions).strip()",
    "choice_option": "to_text(description), or the key when the description is null or ''",
    "score_option": "to_text(level)",
    "noul_options": [
      "false: {description or 'No. This is false: ' + instructions}",
      "true: {description or 'Yes. This is true: ' + instructions}"
    ],
    "to_text": "clm.schema.to_text: str verbatim; bool true/false; numbers Python str(); dict 'k: v' (top level joined by a blank line, nested indented 2); list '- item' lines"
  },
  "option_logits": "scale * z[option row] . z[state row], in option order",
  "opset": 20,
  "precision": "fp32 compute; Qwen3-8B weights BF16, widened by Cast; heads F32",
  "weights_in_memory": "bf16"
}