YAML · 1261 bytes Raw Blame History
1 # Minimal sway spec — template for the pre-commit-gate recipe.
2 #
3 # Replace the ``base`` and ``adapter`` paths below with your own. The
4 # default values are placeholders documenting the shape the hook
5 # expects. Running ``sway gate`` against this verbatim will fail
6 # because the paths don't resolve — that's by design; the user
7 # customizes before plugging the hook in.
8 #
9 # See README "Pre-commit" section for the full walk-through.
10
11 version: 1
12 models:
13 base:
14 base: HuggingFaceTB/SmolLM2-135M-Instruct
15 kind: hf
16 adapter: path/to/your/adapter
17 dtype: fp32
18 device: cpu
19 ft:
20 base: HuggingFaceTB/SmolLM2-135M-Instruct
21 kind: hf
22 adapter: path/to/your/adapter
23 dtype: fp32
24 device: cpu
25 defaults:
26 seed: 0
27 differential: true
28 # The gate's exit-code threshold. 0.0 means "any pass is acceptable";
29 # real specs raise this to 0.6 or 0.8 for a meaningful quality bar.
30 coverage_threshold: 0.0
31 suite:
32 # One cheap probe keeps the pre-commit hook fast. Add more probes as
33 # the adapter gets more surface area worth gating.
34 - name: dk
35 kind: delta_kl
36 prompts:
37 - The capital of France is
38 - Python decorators are
39 - Water boils at
40 - Mitochondria are
41 divergence: js
42 assert_mean_gte: 0.0
43