H2O-Lightning-4B for LM-Kit

This repository holds H2O-Lightning-4B packaged for LM-Kit.NET, LM-Kit's on-device AI SDK for .NET, and for LM-Kit One.

File Content
h2o-lightning-4b-Q4_K_M.lmk The model and its vision projector in one archive. This is the file LM-Kit downloads.
h2o-lightning-4b-Q4_K_M.gguf The decision model, Q4_K_M.
mmproj-lightning-f16.gguf Its vision projector at full precision (F16).

The GGUF files are the ones published in h2oai/h2o-lightning-4b-gguf, unchanged: the archive packs the same bytes.

About H2O-Lightning-4B

H2O-Lightning-4B is a 4B decision model from H2O.ai, built on Qwen3.5 4B. In the LM-Kit catalog it is the general decision model with the widest language coverage: text, JSON and images.

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: h2o-lightning:4b.

Usage

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

using LM model = LM.LoadFromModelID("h2o-lightning:4b");
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

The model also answers about images. Add them to the request; the engine sizes each one the way the model's own processor does:

using LMKit.Media.Image;

using ImageBuffer photo = ImageBuffer.LoadAsRGB("delivery.jpg");

DecisionResult onPhoto = engine.Decide(
    new DecisionRequest("A photo sent with a delivery complaint.")
        .AddQuestion("damaged", DecisionQuestion.YesNo("Does the photo show a damaged parcel?"))
        .AddImage(photo));

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 H2O.ai under the Apache License 2.0. See the original model card for training details and the authors' evaluation.

Downloads last month
-
GGUF
Model size
4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for lm-kit/h2o-lightning-4b-lmk

Finetuned
Qwen/Qwen3.5-4B
Quantized
(8)
this model