Run this model with HF Jobs

Run micrictor/LFM2.5-350M-ShellAI on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/micrictor/LFM2.5-350M-ShellAI. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/micrictor/LFM2.5-350M-ShellAI on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/micrictor/LFM2.5-350M-ShellAI. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/micrictor/LFM2.5-350M-ShellAI. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
Docker Model Runner
docker model run hf.co/micrictor/LFM2.5-350M-ShellAI
Quick Links

LFM2.5-350M-ShellAI

ShellAI Bash-command model distilled at the response level from LiquidAI/LFM2.5-2.6B into LiquidAI/LFM2.5-350M.

This repository contains the merged BF16 training checkpoint.

The model is trained to emit exactly one command inside:

<shellai-command>command</shellai-command>

General chat anchors, assistant-only loss, LoRA, one training epoch, early stopping, and a pre-publication retention gate are used to reduce catastrophic forgetting. No generated command was executed during dataset construction or evaluation.

Distillation

The two models have different vocabularies (128K teacher versus 65,536 student), so this uses sequence-level response distillation rather than token-logit KL. Teacher candidates that fail the command envelope, primary-utility, or reference- similarity gates fall back to the verified dataset reference.

Evaluation

Held-out repository test split (300 examples, BF16 Transformers):

Model Exact Utility match Token F1 Valid envelope
Base 350M 5.7% 23.0% 0.225 100.0%
Distilled 350M 4.0% 39.7% 0.305 100.0%

Chat retention used 50 non-shell prompts: shell-envelope leakage remained 0.0%; anchor similarity retained 84.9% of baseline.

Q8_0 llama.cpp CPU test (same 50-example subset):

Threads Token F1 Utility match Median latency Decode
1 0.268 36.0% 1278 ms 16.6 tok/s
2 0.268 36.0% 641 ms 32.5 tok/s

License

This is a modified derivative of Liquid AI's LFM2.5 weights and is distributed under the included LFM Open License v1.0. See NOTICE for modification details.

Downloads last month
15
Safetensors
Model size
0.4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for micrictor/LFM2.5-350M-ShellAI

Finetuned
(116)
this model