Skip to content

Laya : Bye TypeSafe Jev AI

Read the Portuguese translation →

Author: Data Science in your pocket · Watch on YouTube

Video authored by the channel shown, not by IANIA; all rights belong to the creator. Transcript and summary generated automatically; the original-language content is preserved.

Original language: English

Original video: Laya : Bye TypeSafe Jev AI · Channel: Data Science in your pocket · 05:43 · Watch on YouTube

Topics: AI agents, Task and workflow automation, AI models, Local and open-source models

The video introduces Laya as an open-source, non-autoregressive model designed to return structured decisions rather than generate paragraphs of text. It describes the model’s claimed speed, multilingual support, typed outputs, and calibration, and compares its approach with generative LLM pipelines that require parsing and validation. The presenter outlines Laya’s decision primitives, architecture, benchmarks, and possible production uses, while noting that its zero-shot performance is weak and multilingual results are uneven. The video closes with a brief installation and usage overview and invites viewers to try the model.

  • Laya is presented as a decision model that returns typed answers in a single forward pass.
  • The video describes Laya as non-autoregressive, meaning it does not generate output token by token.
  • The presenter says the model supports more than 100 languages and reports latency of about 30 milliseconds.
  • Laya is described as using a modern BERT large encoder backbone with about 420 million parameters.
  • Its three stated decision primitives are choice, score, and probability estimation.
  • The video contrasts direct structured output from Laya with generative LLM pipelines that generate text and then parse and validate it.
  • The presenter reports benchmark results and compares Laya’s speed and calibration with TypeSafeGPT.
  • The video cautions that Laya is not a universal zero-shot model, noting weak zero-shot performance, uneven multilingual results, and the need to recalibrate probabilities.
  • Suggested use cases include support and agent routing, fraud and risk workflows, content moderation, and workflow automation.
Start Chapter Summary
00:00 Introducing Laya and its reported benchmarks The presenter introduces Laya as a multilingual decision model and describes its claimed speed, calibration, and benchmark comparisons.
01:34 Architecture and the decision-model approach The video describes Laya’s BERT-based backbone and explains how structured decisions can avoid the generation, parsing, and validation steps of a generative LLM pipeline.
02:36 Decision primitives and single-pass inference The presenter outlines Laya’s typed outputs, choice, score, and probability primitives, and its one-pass inference process.
04:11 Comparisons, limitations, and use cases The video compares Laya with a generative approach, gives reported evaluation figures, and notes limitations alongside potential production applications.
05:11 Installation and closing remarks The presenter mentions installation and prediction steps, then closes by encouraging viewers to try the model.

Give it a state and a typed question and it returns typed answer — 00:00

built for decisions, not text. — 02:05

Three primitives, one forward pass: choice, score, and null. — 03:08

Llama is a fast base, not a universal zero-shot oracle. — 04:41

Sometimes it’s a much smaller model that simply makes the right decision. — 05:43

Laya, TypeSafe Jev, modern BERT large, Apache License 2.0, non-autoregressive, proper scoring rules, Conway Innovations, Hugging Face

00:00 So, hi everyone. Welcome back to Data Science in a pocket and we have a new competitor for Type Face J that is Laya and we have a new model in the decision-making LLM series that has been quite like catching some trend on the internet as you can see Laya. Multilingual non-autoregressive system one decision model. Give it a state and a typed question and it returns typed answer with mathematically calibrated probabilities and single forward pass. If you look at the speed, this is very

00:31 good. 33 milliseconds across 100 languages trained with reinforcement learning against strictly proper scoring rules RLCD. If you look at Laya versus Type Face J, if you look at the benchmarks, they are quite interesting. Type decision 2.0 decisions engine use four labels, die emotions six labels. Fast, better calibrated, language usable, self-hosted a pocket. As you can see where Laya lands, 7.8 times faster, three times better

01:03 calibrated. Language are about 45 to 51 and it costs you $0. Looking at different benchmarks also, the numbers are quite good. English versus the rest. Speed on one T4, calibration, type decision, all 51 languages routed via preload the matters. If you look here, this repo holds all three checkpoints and is the hub for the family. The English checkpoint is at the top repo root. The other two are bundles of sub folders. If you look here,

01:34 Laya check It is built on a backbone encoder of modern BERT large with about 420 million parameters. Multilingual and type decision 320 and 420 million again. So, now let’s jump on to more details and how you can use Laya. Quite easy to use as you can see they have given all the codes here and every result carry full routing metadata explaining why the choices are made. Laya, the 30 millisecond decision model. A non-autoregressive open-source

02:05 challenger to Type Script Gen, built for decisions, not text. Not every AI problem needs a paragraph. A support ticket needs three answers: department, urgency, churn risk. A generative alien produces text, then a parser, and then a validation. That extra layer costs tokens, latency, and engineering surface areas. As you can see here, for This is a major difference between a generative LLM and a Laya model that is from Decision LLMs. Pipeline A looks like, if you look at

02:36 the generative LLM, ticket, then an auto awesome description, code verification, data object is created after that. But in case of Laya, you provide the ticket, it runs and gives you a data object single-handedly. Meet Laya, system one decision model. 30 millisecond latency, 100 plus languages, typed answers, Apache 2.0. A backbone built for decisions, not dialogue. Input state, modern BERT large backbone, decision head, option marker scorer, act escalate head. If you look

03:08 at the total parameter, it’s 420 million, model size 0.4 billion, and schemas are defined as request time. So, it has infinite schemas. Whatever schema you give it, it is able to take that. Three primitives, one forward pass: choice, score, and null. Choice select one option from predefined set. Score place the answer on ordinal scale. Annual calibrate probability that a statement is true. Non-auto Auto regressive means one shot, not token by token. That is most important.

03:41 Uh a generative LLM eliminates emits tokens sequentially, while each token feeds the next. Laya processes the input and the decision questions in a single forward pass. No generation loop, no parsing layer. If you look at question one, the 9 second 10 questions 158 seconds milliseconds 50 questions 771 milliseconds. One question takes about on Tesla T4 it takes about 32 milliseconds. Llama versus Type Safe Jeff. So this is

04:11 the most important differentiation thing that we are seeing. Llama is very fast as you can see this costing about eight to 10 cross faster. Uh talking about Type Safe Jeff, generate structured text, parse, validate, vendor operated. While talking about Llama, it is non auto regressive single forward pass, return types JSON directly, and self-hostable multilingual. Speed is only useful if the decisions are reliable. Proper scoring, GRPO style

04:41 update, calibration first. What is the overall accuracy? 0.766. Soft accuracy is 0.471. Bryce score is 0.062. EC is 0.213. Score MA is 242. And cases in ends are 400 to 2,000. If you look at the speed, this is very crazily good. Llama is a fast base, not a universal zero-shot oracle. Do remember that. Zero-shot is quite weak as you’ve given the numbers.

05:11 Multilingual is a little uneven and probabilities need recalibration. Where Llama fits in productions? Support routing, AI agent routing, fraud and risk incident drag, content moderation, workflow automation. High volume plus low latency plus structured output equals to where Llama earns its keep. Install, load, decide. So first of all, I’m not saying that you should use it directly, just use it from hugging face and these are the codes to use. Install, load the checkpoint, and predict your

05:43 schema. Maybe the future isn’t always a bigger LM. Sometimes it’s a much smaller model that simply makes the right decision. 30 milliseconds Apache 2.0 fine-tune first. Pip install LLaMA. Going to Conway Innovations LLaMA huggingface on GitHub. With this, it’s a wrap. I hope you try out the model and let me know in the comment section how you feel about it.