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.

6.6 KB
Raw Blame
{
  "name": "long_special_tokens",
  "state": "The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos> [MASK] <mask> and emojis 😀 🚀. ",
  "questions": {
    "topic": {
      "type": "choice",
      "instructions": "What is the request about?",
      "criteria": {
        "refund": "money back, duplicate charge",
        "technical": "bugs and outages",
        "other": null
      }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is this request?",
      "criteria": [
        "not urgent",
        "this week",
        "today"
      ]
    },
    "cancel": {
      "type": "noul",
      "instructions": "The customer threatens to cancel the account."
    }
  },
  "options": {
    "window": 64,
    "batch_size": 2
  },
  "state_tokens": 421,
  "effective_window": 64,
  "effective_stride": 32,
  "effective_room": 478,
  "windows": [
    {
      "token_start": 0,
      "token_end": 64,
      "text": "The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <"
    },
    {
      "token_start": 32,
      "token_end": 96,
      "text": "[CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <e"
    },
    {
      "token_start": 64,
      "token_end": 128,
      "text": "bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <"
    },
    {
      "token_start": 96,
      "token_end": 160,
      "text": "os>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and em"
    },
    {
      "token_start": 128,
      "token_end": 192,
      "text": "mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀"
    },
    {
      "token_start": 160,
      "token_end": 224,
      "text": "ojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀."
    },
    {
      "token_start": 192,
      "token_end": 256,
      "text": " 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes "
    },
    {
      "token_start": 224,
      "token_end": 288,
      "text": " The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <"
    },
    {
      "token_start": 256,
      "token_end": 320,
      "text": "[CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <e"
    },
    {
      "token_start": 288,
      "token_end": 352,
      "text": "bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <"
    },
    {
      "token_start": 320,
      "token_end": 384,
      "text": "os>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and em"
    },
    {
      "token_start": 352,
      "token_end": 416,
      "text": "mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀"
    },
    {
      "token_start": 384,
      "token_end": 421,
      "text": "ojis 😀 🚀. The text includes [CLS] [SEP] <bos> <eos>   <mask> and emojis 😀 🚀. "
    }
  ],
  "result": {
    "model": "laya-rl-agent-onnx",
    "answers": {
      "topic": {
        "type": "choice",
        "choice": "other",
        "probabilities": {
          "refund": 0.1677,
          "technical": 0.2108,
          "other": 0.6215
        },
        "confidence": 0.1597,
        "answer_confidence": 0.6215,
        "action": {
          "act_probability": 1.0
        },
        "window": {
          "index": 3,
          "token_start": 96,
          "token_end": 160,
          "count": 13
        }
      },
      "urgency": {
        "type": "score",
        "score": 1.4285,
        "legend": {
          "0": "not urgent",
          "1": "this week",
          "2": "today"
        },
        "probabilities": {
          "0": 0.2439,
          "1": 0.0837,
          "2": 0.6724
        },
        "confidence": 0.2549,
        "answer_confidence": 0.6724,
        "action": {
          "act_probability": 1.0
        },
        "window": {
          "index": 12,
          "token_start": 384,
          "token_end": 421,
          "count": 13
        }
      },
      "cancel": {
        "type": "noul",
        "noul": 0.6175,
        "confidence": 0.6175,
        "answer_confidence": 0.6175,
        "action": {
          "act_probability": 1.0
        },
        "window": {
          "index": 3,
          "token_start": 96,
          "token_end": 160,
          "count": 13
        }
      }
    },
    "usage": {
      "input_tokens": 3637,
      "output_tokens": 0,
      "state_tokens": 805,
      "state_tokens_dropped": 0,
      "truncated": 0,
      "truncated_questions": [],
      "windows": 13
    }
  }
}