Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

8.0 KB
Raw Blame
{
  "name": "json_escaping",
  "state": {
    "subject": "Tom & Jerry <[email protected]> said \"refund\" / 'now'",
    "body": "Line1\nLine2\tTabbed \\ backslash",
    "accents": "naïve résumé Müller",
    "ratio": 0.5,
    "whole": 2.0,
    "big": 1e+21,
    "small": 1e-07,
    "neg": -0.125,
    "third": 0.3333333333333333
  },
  "serialized_state": "{\"subject\": \"Tom & Jerry <[email protected]> said \\\"refund\\\" / 'now'\", \"body\": \"Line1\\nLine2\\tTabbed \\\\ backslash\", \"accents\": \"naïve résumé Müller\", \"ratio\": 0.5, \"whole\": 2.0, \"big\": 1e+21, \"small\": 1e-07, \"neg\": -0.125, \"third\": 0.3333333333333333}",
  "questions": {
    "spam": {
      "type": "noul",
      "instructions": "This message is spam."
    }
  },
  "per_question": [
    {
      "id": "spam",
      "type": "noul",
      "qtype": 2,
      "instructions": "This message is spam.",
      "head_text": "noul question: This message is spam.",
      "options": [
        "false: no, the statement does not hold",
        "true: yes, the statement holds"
      ],
      "input_ids": [
        2,
        552,
        6311,
        2872,
        235292,
        1417,
        3969,
        603,
        31967,
        235265,
        1,
        4,
        1566,
        235292,
        793,
        235269,
        573,
        6218,
        1721,
        780,
        3385,
        4,
        1382,
        235292,
        7778,
        235269,
        573,
        6218,
        12723,
        1,
        19946,
        15029,
        1192,
        664,
        9983,
        724,
        31656,
        968,
        71151,
        235348,
        7310,
        235265,
        872,
        235313,
        1180,
        30044,
        69419,
        13663,
        1148,
        777,
        1032,
        58242,
        664,
        2168,
        1192,
        664,
        4056,
        235274,
        235286,
        235254,
        4056,
        235284,
        235286,
        235251,
        154838,
        1138,
        39043,
        4326,
        824,
        664,
        7906,
        990,
        1192,
        664,
        556,
        236370,
        524,
        96537,
        46692,
        824,
        664,
        30643,
        1192,
        235248,
        235276,
        235265,
        235308,
        235269,
        664,
        43219,
        1192,
        235248,
        235284,
        235265,
        235276,
        235269,
        664,
        7773,
        1192,
        235248,
        235274,
        235249,
        235340,
        235284,
        235274,
        235269,
        664,
        10498,
        1192,
        235248,
        235274,
        235249,
        235290,
        235276,
        235324,
        235269,
        664,
        14637,
        1192,
        728,
        235276,
        235265,
        235274,
        235284,
        235308,
        235269,
        664,
        23635,
        1192,
        235248,
        235276,
        235265,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235270,
        1
      ],
      "markers": [
        11,
        21
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        2,
        552,
        6311,
        2872,
        235292,
        1417,
        3969,
        603,
        31967,
        235265,
        1,
        4,
        1566,
        235292,
        793,
        235269,
        573,
        6218,
        1721,
        780,
        3385,
        4,
        1382,
        235292,
        7778,
        235269,
        573,
        6218,
        12723,
        1,
        19946,
        15029,
        1192,
        664,
        9983,
        724,
        31656,
        968,
        71151,
        235348,
        7310,
        235265,
        872,
        235313,
        1180,
        30044,
        69419,
        13663,
        1148,
        777,
        1032,
        58242,
        664,
        2168,
        1192,
        664,
        4056,
        235274,
        235286,
        235254,
        4056,
        235284,
        235286,
        235251,
        154838,
        1138,
        39043,
        4326,
        824,
        664,
        7906,
        990,
        1192,
        664,
        556,
        236370,
        524,
        96537,
        46692,
        824,
        664,
        30643,
        1192,
        235248,
        235276,
        235265,
        235308,
        235269,
        664,
        43219,
        1192,
        235248,
        235284,
        235265,
        235276,
        235269,
        664,
        7773,
        1192,
        235248,
        235274,
        235249,
        235340,
        235284,
        235274,
        235269,
        664,
        10498,
        1192,
        235248,
        235274,
        235249,
        235290,
        235276,
        235324,
        235269,
        664,
        14637,
        1192,
        728,
        235276,
        235265,
        235274,
        235284,
        235308,
        235269,
        664,
        23635,
        1192,
        235248,
        235276,
        235265,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235304,
        235270,
        1
      ]
    ],
    "attention_mask": [
      [
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1
      ]
    ],
    "marker_pos": [
      [
        11,
        21
      ]
    ],
    "marker_mask": [
      [
        true,
        true
      ]
    ],
    "qtype": [
      2
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      -2.1366775035858154,
      17.420978546142578
    ]
  ],
  "act_logits": [
    [
      1012.65576171875,
      -1208.8389892578125
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "spam": {
        "type": "noul",
        "noul": 1.0,
        "confidence": 1.0,
        "answer_confidence": 1.0,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 150,
      "output_tokens": 0,
      "state_tokens": 119,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}