Views
No views yet
Synoema is a formally verified, BPE-aligned functional language for LLM-generated software. GBNF grammar + Hindley-Milner types + contracts eliminate the verification gap — prompt to native / WASM / IoT with no human review.
requires/ensures contracts| Split | compile_pass | Total | Pass Rate |
|---|---|---|---|
| Val set | 101 | 104 | 97.1% |
| Test set (unseen) | 124 | 127 | 97.6% |
synoema-iot-nano-0.5b-v1-q3km.gguf (339 MB, Q3_K_M)1# Ollama
2ollama run delimitter/synoema-iot-nano-0.5b-v1
3
4# llama.cpp
5./llama-cli -m synoema-iot-nano-0.5b-v1-q3km.gguf \
6 --system-prompt "You are a Synoema IoT rules expert. Generate only valid Synoema IoT rule code." \
7 -p "activate the pump if humidity falls under 35"1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3import torch
4
5base = "Qwen/Qwen2.5-Coder-0.5B-Instruct"
6adapter = "delimitter/synoema-iot-nano-0.5b-v1"
7
8tok = AutoTokenizer.from_pretrained(base)
9model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.float16, device_map="auto")
10model = PeftModel.from_pretrained(model, adapter)
11
12SYS = "You are a Synoema IoT rules expert. Generate only valid Synoema rule code. No explanation."
13prompt = tok.apply_chat_template([
14 {"role": "system", "content": SYS},
15 {"role": "user", "content": "activate the fan if temperature exceeds 30"},
16], tokenize=False, add_generation_prompt=True)
17
18inp = tok(prompt, return_tensors="pt").to(model.device)
19out = model.generate(**inp, max_new_tokens=128, do_sample=False)
20print(tok.decode(out[0][inp["input_ids"].shape[1]:], skip_special_tokens=True))| Parameter | Value |
|---|---|
| Language version | 0.1.0-beta.1 |
| Training corpus | corpus_iot_rules_train.jsonl (946 examples, Wave-2) |
| Method | QLoRA (LoRA r=16, α=32) |
| Base model | Qwen/Qwen2.5-Coder-0.5B-Instruct |
| Epochs | 3 |
| Batch size | 4 (eff.) |
1rule_fan_control temp prev =
2 ? temp > 30 -> 1 : ? temp < 25 -> 0 : prev
3
4main = rule_fan_control 35 0