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.

7.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": [
        50281,
        79,
        3941,
        1953,
        27,
        831,
        3935,
        310,
        29296,
        15,
        50282,
        50284,
        3221,
        27,
        642,
        13,
        253,
        3908,
        1057,
        417,
        2186,
        50284,
        2032,
        27,
        4754,
        13,
        253,
        3908,
        6556,
        50282,
        9819,
        19091,
        1381,
        346,
        15883,
        708,
        21122,
        654,
        67,
        3867,
        33,
        11667,
        15,
        681,
        31,
        753,
        12114,
        709,
        1504,
        10632,
        1227,
        686,
        2666,
        8,
        995,
        346,
        2915,
        1381,
        346,
        7557,
        18,
        61,
        79,
        7557,
        19,
        61,
        85,
        10297,
        3026,
        3202,
        896,
        20861,
        995,
        346,
        3649,
        592,
        1381,
        346,
        2072,
        30180,
        9568,
        2204,
        860,
        49290,
        995,
        346,
        29603,
        1381,
        470,
        15,
        22,
        13,
        346,
        40338,
        1381,
        374,
        15,
        17,
        13,
        346,
        2760,
        1381,
        337,
        70,
        12,
        1797,
        13,
        346,
        6795,
        1381,
        337,
        70,
        14,
        2922,
        13,
        346,
        8265,
        1381,
        428,
        17,
        15,
        9312,
        13,
        346,
        19016,
        1381,
        470,
        15,
        26409,
        26409,
        26409,
        26409,
        94,
        50282
      ],
      "markers": [
        11,
        21
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        50281,
        79,
        3941,
        1953,
        27,
        831,
        3935,
        310,
        29296,
        15,
        50282,
        50284,
        3221,
        27,
        642,
        13,
        253,
        3908,
        1057,
        417,
        2186,
        50284,
        2032,
        27,
        4754,
        13,
        253,
        3908,
        6556,
        50282,
        9819,
        19091,
        1381,
        346,
        15883,
        708,
        21122,
        654,
        67,
        3867,
        33,
        11667,
        15,
        681,
        31,
        753,
        12114,
        709,
        1504,
        10632,
        1227,
        686,
        2666,
        8,
        995,
        346,
        2915,
        1381,
        346,
        7557,
        18,
        61,
        79,
        7557,
        19,
        61,
        85,
        10297,
        3026,
        3202,
        896,
        20861,
        995,
        346,
        3649,
        592,
        1381,
        346,
        2072,
        30180,
        9568,
        2204,
        860,
        49290,
        995,
        346,
        29603,
        1381,
        470,
        15,
        22,
        13,
        346,
        40338,
        1381,
        374,
        15,
        17,
        13,
        346,
        2760,
        1381,
        337,
        70,
        12,
        1797,
        13,
        346,
        6795,
        1381,
        337,
        70,
        14,
        2922,
        13,
        346,
        8265,
        1381,
        428,
        17,
        15,
        9312,
        13,
        346,
        19016,
        1381,
        470,
        15,
        26409,
        26409,
        26409,
        26409,
        94,
        50282
      ]
    ],
    "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
      ]
    ],
    "marker_pos": [
      [
        11,
        21
      ]
    ],
    "marker_mask": [
      [
        true,
        true
      ]
    ],
    "qtype": [
      2
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      2.0836265087127686,
      0.5918163061141968
    ]
  ],
  "act_logits": [
    [
      4576.21875,
      -3738.359375
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "spam": {
        "type": "noul",
        "noul": 0.3204,
        "confidence": 0.6796,
        "answer_confidence": 0.6796,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 134,
      "output_tokens": 0,
      "state_tokens": 103,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}