sola-air-1.5bA small local model that writes Sola AIR components
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:
sola-check. The previous weights passed 16.:class binding in Badge, in both runs. The previous weights had none.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.
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>
The easiest way to run it is Ollama.
ollama run hf.co/bennett-xdlabs/sola-air-1.5b
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
| 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) |
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!");
}
Sola AIR Studio renders components live and lets you inspect their signals.
<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>
<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>
The playground has three modes:
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.
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:
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).useState, useEffect, className, @click, or React/Vue imports.sola-check is compiled to an IIFE and mounted in headless Chromium. It only counts if it mounts without an error and renders at least one element.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.
| 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. |
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 |
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.
These keep the output close to valid .sola:
0.1 (used in the benchmark; 0.1 to 0.2 works)0.90 (used in the benchmark; 0.90 to 0.95 works)401.1<|im_end|>, <|im_start|>, <|endoftext|>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 <style>. The <script> block contains only pure JavaScript declarations and functions. Never write HTML, JSX, or template markup inside <script>.
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.
The fine-tuned weights and the base model (Qwen/Qwen2.5-Coder-1.5B-Instruct) are both licensed under the Apache License 2.0.
Qwen/Qwen2.5-Coder-1.5B-Instruct