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.

5.0 KB
Raw Blame
{
  "name": "list_state",
  "state": [
    {
      "role": "user",
      "content": "where is my refund?"
    },
    {
      "role": "assistant",
      "content": "I can check that for you."
    },
    {
      "role": "user",
      "content": "you said that last week"
    }
  ],
  "serialized_state": "[{\"role\": \"user\", \"content\": \"where is my refund?\"}, {\"role\": \"assistant\", \"content\": \"I can check that for you.\"}, {\"role\": \"user\", \"content\": \"you said that last week\"}]",
  "questions": {
    "resolved": {
      "type": "noul",
      "instructions": "The issue is resolved."
    }
  },
  "per_question": [
    {
      "id": "resolved",
      "type": "noul",
      "qtype": 2,
      "instructions": "The issue is resolved.",
      "head_text": "noul question: The issue is resolved.",
      "options": [
        "false: no, the statement does not hold",
        "true: yes, the statement holds"
      ],
      "input_ids": [
        50281,
        79,
        3941,
        1953,
        27,
        380,
        2523,
        310,
        11512,
        15,
        50282,
        50284,
        3221,
        27,
        642,
        13,
        253,
        3908,
        1057,
        417,
        2186,
        50284,
        2032,
        27,
        4754,
        13,
        253,
        3908,
        6556,
        50282,
        60,
        9819,
        14337,
        1381,
        346,
        4537,
        995,
        346,
        6071,
        1381,
        346,
        2811,
        310,
        619,
        23005,
        865,
        2023,
        17579,
        14337,
        1381,
        346,
        515,
        5567,
        995,
        346,
        6071,
        1381,
        346,
        42,
        476,
        2451,
        326,
        323,
        368,
        449,
        2023,
        17579,
        14337,
        1381,
        346,
        4537,
        995,
        346,
        6071,
        1381,
        346,
        5658,
        753,
        326,
        1390,
        2129,
        986,
        62,
        50282
      ],
      "markers": [
        11,
        21
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        50281,
        79,
        3941,
        1953,
        27,
        380,
        2523,
        310,
        11512,
        15,
        50282,
        50284,
        3221,
        27,
        642,
        13,
        253,
        3908,
        1057,
        417,
        2186,
        50284,
        2032,
        27,
        4754,
        13,
        253,
        3908,
        6556,
        50282,
        60,
        9819,
        14337,
        1381,
        346,
        4537,
        995,
        346,
        6071,
        1381,
        346,
        2811,
        310,
        619,
        23005,
        865,
        2023,
        17579,
        14337,
        1381,
        346,
        515,
        5567,
        995,
        346,
        6071,
        1381,
        346,
        42,
        476,
        2451,
        326,
        323,
        368,
        449,
        2023,
        17579,
        14337,
        1381,
        346,
        4537,
        995,
        346,
        6071,
        1381,
        346,
        5658,
        753,
        326,
        1390,
        2129,
        986,
        62,
        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
      ]
    ],
    "marker_pos": [
      [
        11,
        21
      ]
    ],
    "marker_mask": [
      [
        true,
        true
      ]
    ],
    "qtype": [
      2
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      4.156437397003174,
      -0.30927616357803345
    ]
  ],
  "act_logits": [
    [
      4628.326171875,
      -3775.91357421875
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "resolved": {
        "type": "noul",
        "noul": 0.0952,
        "confidence": 0.9048,
        "answer_confidence": 0.9048,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 84,
      "output_tokens": 0,
      "state_tokens": 53,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}