---
name: sparklang
description: >
  SparkLang (.spark) dry-run, train/status/expect,
  trainer HTTP contract, ModelScope inspect/diff/probe.
homepage: https://sparklang.dev
version: 0.8.0
---

# SparkLang skill

Load `/llms.txt` first. Tables only.

## install

`pip install sparklang`

## dry-run

`spark --dry-run examples/train_eval.spark`

## trainer

POST `{SPARK_TRAIN_URL}/jobs` then GET `{SPARK_TRAIN_URL}/jobs/{id}`.

## what-is-real

| verb | reality | since |
| --- | --- | --- |
| `model train` | real | 0.6.0 |
| `model status` | real | 0.6.0 |
| `model inspect` | real | 0.8.0 |
| `model diff` | real | 0.8.0 |
| `model probe` | real | 0.8.0 |
| `model decompile` | experimental | 0.8.0 |
| `model patch` | experimental | 0.8.0 |
| `model eval` | real | 0.8.0 |
| `model stage` | real | 0.8.0 |
| `expect contains` | real | 0.6.0 |
| `expect gte` | real | 0.7.0 |
| `expect lte` | real | 0.7.0 |
| `expect eq` | real | 0.7.0 |
| `expect histogram_min` | real | 0.7.0 |
| `expect score` | real | 0.7.0 |
| `http get` | real | 0.6.0 |
| `http post` | real | 0.6.0 |
| `spark_distill_cpu` | real | 0.6.0 |
| `spark_pref_pack` | real | 0.6.0 |
| `spark_playbook_fit` | real | 0.6.0 |
| `spark_faq_index` | real | 0.6.0 |
| `lora_bf16` | real | 0.7.0 |
| `hf://` | real | 0.7.0 |
| `GitHub Action dry-run` | real | 0.7.0 |

decompile/patch experimental until AUROC ≥ 0.85.

Source: https://github.com/Michael20251/sparklang
