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": [
        2,
        552,
        6311,
        2872,
        235292,
        714,
        4295,
        603,
        23341,
        235265,
        1,
        4,
        1566,
        235292,
        793,
        235269,
        573,
        6218,
        1721,
        780,
        3385,
        4,
        1382,
        235292,
        7778,
        235269,
        573,
        6218,
        12723,
        1,
        892,
        9766,
        8247,
        1192,
        664,
        1645,
        824,
        664,
        3312,
        1192,
        664,
        2635,
        603,
        970,
        19745,
        3595,
        789,
        19946,
        8247,
        1192,
        664,
        105776,
        824,
        664,
        3312,
        1192,
        664,
        235285,
        798,
        2701,
        674,
        604,
        692,
        1464,
        789,
        19946,
        8247,
        1192,
        664,
        1645,
        824,
        664,
        3312,
        1192,
        664,
        4747,
        1180,
        674,
        2001,
        2788,
        235281,
        12765,
        1
      ],
      "markers": [
        11,
        21
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        2,
        552,
        6311,
        2872,
        235292,
        714,
        4295,
        603,
        23341,
        235265,
        1,
        4,
        1566,
        235292,
        793,
        235269,
        573,
        6218,
        1721,
        780,
        3385,
        4,
        1382,
        235292,
        7778,
        235269,
        573,
        6218,
        12723,
        1,
        892,
        9766,
        8247,
        1192,
        664,
        1645,
        824,
        664,
        3312,
        1192,
        664,
        2635,
        603,
        970,
        19745,
        3595,
        789,
        19946,
        8247,
        1192,
        664,
        105776,
        824,
        664,
        3312,
        1192,
        664,
        235285,
        798,
        2701,
        674,
        604,
        692,
        1464,
        789,
        19946,
        8247,
        1192,
        664,
        1645,
        824,
        664,
        3312,
        1192,
        664,
        4747,
        1180,
        674,
        2001,
        2788,
        235281,
        12765,
        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
      ]
    ],
    "marker_pos": [
      [
        11,
        21
      ]
    ],
    "marker_mask": [
      [
        true,
        true
      ]
    ],
    "qtype": [
      2
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      1.2456920146942139,
      0.24434435367584229
    ]
  ],
  "act_logits": [
    [
      1307.5372314453125,
      -1552.0126953125
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "resolved": {
        "type": "noul",
        "noul": 0.2687,
        "confidence": 0.7313,
        "answer_confidence": 0.7313,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 83,
      "output_tokens": 0,
      "state_tokens": 52,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}