Instructions to use lm-kit/laya-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lm-kit/laya-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf lm-kit/laya-gguf:BF16 # Run inference directly in the terminal: llama cli -hf lm-kit/laya-gguf:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lm-kit/laya-gguf:BF16 # Run inference directly in the terminal: llama cli -hf lm-kit/laya-gguf:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf lm-kit/laya-gguf:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf lm-kit/laya-gguf:BF16
Use Docker
docker model run hf.co/lm-kit/laya-gguf:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use lm-kit/laya-gguf with Ollama:
ollama run hf.co/lm-kit/laya-gguf:BF16
- Unsloth Desktop
- Docker Model Runner
How to use lm-kit/laya-gguf with Docker Model Runner:
docker model run hf.co/lm-kit/laya-gguf:BF16
- Lemonade
How to use lm-kit/laya-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lm-kit/laya-gguf:BF16
Run and chat with the model
lemonade run user.laya-gguf-BF16
List all available models
lemonade list
- Atomic Chat
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
8-bit
16-bit
Model tree for lm-kit/laya-gguf
Base model
convaiinnovations/laya