Instructions to use bennett-xdlabs/sola-air-1.5b 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 bennett-xdlabs/sola-air-1.5b 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 bennett-xdlabs/sola-air-1.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
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 bennett-xdlabs/sola-air-1.5b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
Use Docker
docker model run hf.co/bennett-xdlabs/sola-air-1.5b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use bennett-xdlabs/sola-air-1.5b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bennett-xdlabs/sola-air-1.5b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bennett-xdlabs/sola-air-1.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bennett-xdlabs/sola-air-1.5b:Q4_K_M
- Ollama
How to use bennett-xdlabs/sola-air-1.5b with Ollama:
ollama run hf.co/bennett-xdlabs/sola-air-1.5b:Q4_K_M
- Unsloth Desktop
- Pi
How to use bennett-xdlabs/sola-air-1.5b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bennett-xdlabs/sola-air-1.5b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bennett-xdlabs/sola-air-1.5b with Docker Model Runner:
docker model run hf.co/bennett-xdlabs/sola-air-1.5b:Q4_K_M
- Lemonade
How to use bennett-xdlabs/sola-air-1.5b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bennett-xdlabs/sola-air-1.5b:Q4_K_M
Run and chat with the model
lemonade run user.sola-air-1.5b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bennett-xdlabs/sola-air-1.5b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default bennett-xdlabs/sola-air-1.5b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bennett-xdlabs/sola-air-1.5b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bennett-xdlabs/sola-air-1.5b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "bennett-xdlabs/sola-air-1.5b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Overview
When you ask a general coding model for a .sola component, it tends to slip into other frameworks. You get React useState hooks and Vue @click bindings, a "Sure! Here is your code..." before the code, and template blocks that don't close.
sola-air-1.5b is Qwen/Qwen2.5-Coder-1.5B-Instruct fine-tuned with QLoRA (rank 16, alpha 16) to write .sola files and nothing else. The training examples follow ASD-STE100 writing rules and answer first.
The current weights (Nov 16, 2026) come from a retrain on new training data: 677 examples (new components, edits, fixes and short answers about the framework), every code answer checked with sola-check and mounted before training, one epoch, loss on the answers only. The first version trained on 1,500 rows with only 258 distinct answers, and its eval set overlapped its training set.
In the benchmark run on Nov 16, 2026 (20 prompts, NVIDIA Quadro P620 through Ollama), scored with compiler 1.7.3:
- 17 of 20 outputs pass
sola-check. The previous weights passed 16. - 17 of 20 mount and render in a browser, up from 15. The base model manages 2 (see Check pass vs. runtime). A second run gave 18 and 18.
- None had a raw HTML fence or chat filler. One used Vue syntax: a
:classbinding in Badge, in both runs. The previous weights had none. - It streamed at 28.8 tokens/sec. A component takes about 13 seconds (median 13 s, range 10 to 20 s), down from about 30, mostly because the answers are shorter.
The Q4_K_M file is 986 MB, so it fits on a 2 GB GPU like the Quadro P620 or an MX-series laptop GPU, in Apple Silicon unified memory, or in plain CPU memory. Everything runs on your machine, with no cloud calls.
What is Sola AIR?
Sola AIR is a small reactive UI framework. A .sola file holds a component's script, markup and scoped styles, and the compiler turns it into plain DOM calls driven by signals, with no virtual DOM. The core runtime is about 7.8 kB.
<script>
let count = $state(0);
let double = $derived(count * 2);
function increment() {
count += 1;
}
</script>
<div class="counter-card">
<p class="value">Count: {count} (Double: {double})</p>
<button type="button" onclick={increment}>Increment</button>
</div>
<style>
.counter-card {
padding: 1rem;
border-radius: 8px;
border: 1px solid var(--sola-border, #e2e8f0);
}
</style>
Quick start with Ollama
The easiest way to run it is Ollama.
Run it straight from the Hub
ollama run hf.co/bennett-xdlabs/sola-air-1.5b
Or set it up from the Modelfile
If you downloaded sola-air-1.5b-q4_k_m.gguf and the Modelfile from this repo:
# Create the local model inside Ollama
ollama create sola-air-1.5b -f Modelfile
# Start an interactive generation session
ollama run sola-air-1.5b
Hardware
| Configuration | System memory | VRAM | Speed | Status |
|---|---|---|---|---|
| NVIDIA Quadro P620 / GTX 1650 | 8 GB | 1.2 GB | 28.8 tok/s | Measured (Quadro P620, Nov 16, 2026; 28.9 tok/s in a second run; about 13 s per component) |
| Apple Silicon (M1 to M4, unified memory) | 8 GB unified | 1.2 GB shared | β | Not measured yet |
| CPU only (x86_64 AVX2 / ARM64) | 4 GB | 0 MB | 18.8 tok/s | Measured (Intel Core i5-8500T, 6 cores, Ollama num_gpu 0, Nov 15, 2026, previous weights; about 23 s per component then) |
Compiling what it writes
In Node.js, Vite or Bun
Check and compile the output with @sola-air-ui/compiler:
import { compile } from '@sola-air-ui/compiler';
import { checkSource } from '@sola-air-ui/compiler/check';
// 1. Static AST Check
const diagnostics = checkSource(solaSource, 'DataTable.sola'); // returns Array<Diagnostic>
const errors = diagnostics.filter((d) => d.severity === 'error');
if (errors.length > 0) {
console.error("Syntax Errors:", errors);
} else {
// 2. Compile to native JavaScript and scoped CSS
const { code, css } = compile(solaSource);
console.log("Compiled code successfully generated!");
}
In Sola AIR Studio
Sola AIR Studio renders components live and lets you inspect their signals.
Examples
Segmented control
<script>
let activeTab = $state('overview');
const tabs = ['overview', 'metrics', 'logs', 'settings'];
function selectTab(tab) {
activeTab = tab;
}
</script>
<div class="segmented-control" role="tablist">
{#each tabs as tab}
<button
type="button"
role="tab"
class={activeTab === tab ? 'segment-active' : 'segment'}
aria-selected={activeTab === tab}
onclick={() => selectTab(tab)}>
{tab.toUpperCase()}
</button>
{/each}
</div>
<style>
.segmented-control {
display: inline-flex;
background: #f1f5f9;
padding: 4px;
border-radius: 8px;
gap: 4px;
}
.segment {
padding: 6px 14px;
border: none;
background: transparent;
font-size: 13px;
font-weight: 500;
color: #64748b;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
}
.segment-active {
padding: 6px 14px;
border: none;
background: #ffffff;
font-size: 13px;
font-weight: 600;
color: #0f172a;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
</style>
KPI card
<script>
let throughput = $state(28.7);
let status = $derived(throughput > 25.0 ? 'Optimal' : 'Degraded');
function simulateLoad() {
throughput = Number((Math.random() * 10 + 22).toFixed(1));
}
</script>
<div class="kpi-card">
<div class="header">
<span class="label">Inference Throughput</span>
<span class={throughput > 25.0 ? 'badge badge-green' : 'badge badge-amber'}>
{status}
</span>
</div>
<div class="metric">
<span class="value">{throughput}</span>
<span class="unit">tok/s</span>
</div>
<div class="footer">
<button type="button" onclick={simulateLoad}>Simulate Workload</button>
</div>
</div>
<style>
.kpi-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 1.25rem;
max-width: 280px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.label {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #64748b;
}
.badge {
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 9999px;
}
.badge-green {
background: #dcfce7;
color: #15803d;
}
.badge-amber {
background: #fef3c7;
color: #b45309;
}
.metric {
display: flex;
align-items: baseline;
gap: 4px;
margin-bottom: 1rem;
}
.value {
font-size: 32px;
font-weight: 700;
color: #0f172a;
font-family: ui-monospace, monospace;
}
.unit {
font-size: 14px;
color: #94a3b8;
}
button {
width: 100%;
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background: #f8fafc;
color: #334155;
font-weight: 500;
cursor: pointer;
}
button:hover {
background: #f1f5f9;
}
</style>
Try it in the browser
The playground has three modes:
- The recorded outputs from the 20-prompt benchmark run.
- The real model running in your browser through wllama. It's about a 1 GB download.
- Your own local Ollama.
Each component is checked with sola-check, compiled in the page with @sola-air-ui/compiler, and mounted in a sandboxed iframe. The page tells you whether it mounted or threw.
How it was tested
The benchmark is a script, not a hand-picked set of screenshots. It sends 20 prompts to the model through Ollama and scores every response automatically. The prompts are StatCard, AlertBanner, Counter, ToggleButton, ProgressBar, Badge, SearchInput, AccordionItem, Tabs, Avatar, RatingStars, NotificationBell, Modal, KpiGauge, TagList, PriceCard, Timer, UserStatus, Breadcrumb and Checkbox.
Each response is checked for:
- Passing
sola-check. It compiles the file, checks that{#if}/{/if}and{#each}/{/each}blocks balance, flags.set()/.update()on state (SOLA002), and flags names that are used but never declared (SOLA003), fails a file whose compiled output isn't valid JavaScript (SOLA000), and flags a second<script>block (SOLA004). - React or Vue syntax:
useState,useEffect,className,@click, or React/Vue imports. - Chat filler, like "Sure, here is..." intros or apologies.
- Whether it runs. Each output that passes
sola-checkis compiled to an IIFE and mounted in headless Chromium. It only counts if it mounts without an error and renders at least one element.
Reproduce it
The script and certification benchmarks can be run via the Sola AIR npm package and official documentation at sola-air.dev:
npm install sola-air
npx playwright install chromium # for the mount test
# Score the saved responses from this card's run again: no model or GPU needed
node scripts/run-certification.mjs --rescore benchmarks/certification/sola-air-1.5b.json
# The same for the base model's run
node scripts/run-certification.mjs --rescore benchmarks/certification/qwen2.5-coder-1.5b-instruct.json
# Generate a fresh run against your local Ollama
node scripts/run-certification.mjs --model sola-air-1.5b --out my-run.json
--rescore runs sola-check and the mount test on the saved responses and prints the summary table. With compiler 1.7.3 you should get 17/20 check passes and 17/20 mounts for sola-air-1.5b, and 6/20 and 2/20 for the base model. The speed row comes from the saved run. A fresh run will come out a little different, since results vary between runs. --no-mount skips the browser.
What it's for
| Task | Use |
|---|---|
Writing a single .sola component |
sola-air-1.5b. About 13 s per component on a 2 GB GPU (28.8 tok/s). |
| Multi-file architecture or refactoring a whole repo | A larger frontier model. This one only writes single files. |
| General chat or creative writing | Out of scope. It answers technical requests and writes code. |
Compared to the base model
Base model (Qwen2.5-Coder-1.5B-Instruct) |
sola-air-1.5b |
Difference | |
|---|---|---|---|
Passes sola-check 1.7.3 |
30.0% (6/20) | 85.0% (17/20) | +11 components |
| Mounts and renders in a browser | 10.0% (2/20) | 85.0% (17/20) | +15 components |
| Raw HTML fence | 30.0% (6/20) | 0.0% (0/20) | 6 fewer |
| Chat filler | 40.0% (8/20) | 0.0% (0/20) | 8 fewer |
React/Vue syntax (useState, className, ...) |
65.0% (13/20) | 5.0% (1/20) | 12 fewer |
| VRAM | ~1.1 GB | 986 MB | Fits a 2 GB GPU |
| Speed (Quadro P620) | 22.7 tok/s | 28.8 tok/s | Same architecture and quantization; shorter answers |
| Time per component (median of 20) | 29.0 s | 13.1 s | Less than half |
Check pass vs. runtime
Passing sola-check means a component compiles, its blocks balance and every name it uses is declared. It doesn't prove the component runs. So every output from the benchmark run was also compiled and mounted in headless Chromium with the @sola-air-ui/core runtime, the same way the playground does it:
| Result | Base model | sola-air-1.5b |
|---|---|---|
| Mounts and renders | 2 | 17 |
| Mounts but renders nothing | 3 | 0 |
Passes sola-check, then throws when mounted |
1 | 0 |
Fails sola-check |
14 | 3 (Modal: SOLA003, title never declared; PriceCard: SOLA001, a {:else} outside its {#if}; AlertBanner: SOLA004, a second <script> inside an {#if}) |
Most of the base model's output is React or plain JS. Compiler 1.7.2 fails it at check time because the compiled output isn't valid JavaScript; earlier compilers passed it and it threw when mounted.
Results vary between runs. A second run with the same settings gave 18/20 check passes and 18/20 that mount and render. It failed PriceCard (unbalanced blocks again) and Timer (an extra ) in a click handler).
The previous weights, scored the same way with compiler 1.7.3, got 16/20 check passes and 15/20 mounts.
Recommended settings
These keep the output close to valid .sola:
- Temperature:
0.1(used in the benchmark;0.1to0.2works) - Top P:
0.90(used in the benchmark;0.90to0.95works) - Top K:
40 - Repeat penalty:
1.1 - Stop tokens:
<|im_end|>,<|im_start|>,<|endoftext|>
System prompt
You are a specialized Sola AIR component engineer. Write clean, complete, reactive single-file components using .sola syntax.
Rules:
1. Always structure as <script>, followed by template markup, followed by . The block contains only pure JavaScript declarations and functions. Never write HTML, JSX, or template markup inside .
2. Use $state(...) for reactive values and $derived(...) for computed values. Read state by plain name in template ({count}) or function call ({count()}). Update state by direct assignment: count += 1 or activeTab = tab. Never call .set() or .update().
3. Use Sola control flow blocks: {#if condition}...{/if} and {#each items as item}...{/each}. Always write `as item` in {#each} blocks (never range loops like [1..n]).
4. Provide concise, production-ready code with no conversational pleasantries or apologies.
License
The fine-tuned weights and the base model (Qwen/Qwen2.5-Coder-1.5B-Instruct) are both licensed under the Apache License 2.0.
- Downloads last month
- 189
4-bit
Model tree for bennett-xdlabs/sola-air-1.5b
Base model
Qwen/Qwen2.5-1.5B