How to use from
Docker Model Runner
docker model run hf.co/lm-kit/laya-gguf:BF16
Quick Links

Laya for LM-Kit

This repository holds Laya packaged for LM-Kit.NET, LM-Kit's on-device AI SDK for .NET, and for LM-Kit One.

File Content
Laya-Q8_0.gguf The decision model, Q8_0. This is the file LM-Kit downloads.
Laya-BF16.gguf The decision model at full precision (BF16).

The GGUF files are the ones published in ggml-org/Laya-GGUF, unchanged.

About Laya

Laya is a compact decision model on an encoder, for English text. It is the decision model of the LM-Kit catalog that runs on a processor: strongest at routing a request among options, weaker on graded and yes or no questions.

A decision model does not write: you give it a content and typed questions (one option among several, a level on an ordered scale, yes or no) and it returns the probability of every answer in one forward pass. The answer is always one of your options, with a number a rule can act on.

LM-Kit model ID: laya.

Usage

using LMKit.Classification.Decisions;
using LMKit.Model;

using LM model = LM.LoadFromModelID("laya");
var engine = new DecisionEngine(model);

var request = new DecisionRequest("I was charged twice for order 7731 this morning. Can you refund one of the two charges?")
    .AddQuestion("team", DecisionQuestion.Choice(
        "Which team should handle this ticket?",
        new Dictionary<string, string>
        {
            ["billing"] = "charges, refunds, invoices and payment methods",
            ["shipping"] = "deliveries, tracking and returns",
            ["technical"] = "bugs, errors and things that do not work",
        }))
    .AddQuestion("urgency", DecisionQuestion.Score("How urgent is this ticket?", "can wait", "this week", "today", "right now"))
    .AddQuestion("person", DecisionQuestion.YesNo("Must a person handle this ticket?"));

DecisionResult result = engine.Decide(request);

Console.WriteLine(result.Answers["team"].Choice);          // the option picked
Console.WriteLine(result.Answers["team"].Confidence);      // its probability
Console.WriteLine(result.Answers["urgency"].Score);        // the expected level
Console.WriteLine(result.Answers["person"].Probability);   // the probability of yes

In LM-Kit One the same model answers POST /v1/systemone, the decide tool of agents and workflows, and the Decide playground.

License

The model weights are released by Convai Innovations under the Apache License 2.0. See the original model card for training details and the authors' evaluation.

Downloads last month
90
GGUF
Model size
0.4B params
Architecture
modern-bert
Hardware compatibility
Log In to add your hardware

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for lm-kit/laya-gguf

Quantized
(98)
this model