Datasets:
Download README.md from oyekamal/molde-data: direct link, hf CLI and curl.
- Browser
- Download file 8.05 kB
-
https://huggingface.co/datasets/oyekamal/molde-data/resolve/main/README.md
- Command line
-
hf download hf://datasets/oyekamal/molde-data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/oyekamal/molde-data/resolve/main/README.md
license: cc-by-4.0
language:
- en
pretty_name: Molde data
size_categories:
- 10K<n<100K
task_categories:
- text-generation
tags:
- code-generation
- ui-generation
- moldescript
- synthetic
configs:
- config_name: v4
data_files: v4/v4.jsonl
- config_name: v31
data_files: v3.1/v3.1.jsonl
- config_name: v3
data_files: v3/v3.jsonl
- config_name: v2
data_files: v2/v2.jsonl
- config_name: v1
data_files: v1/v1.jsonl
- config_name: heldout2
data_files: v2/heldout2.jsonl
Molde data
Request and program pairs for training tiny models that write MoldeScript, the small app language of Molde: one tiny on-device model that builds small apps from a chat and changes them when you ask. Molde is an idea by Kamal (oyekamal), built in the open by Orenda Project.
Models trained on this data: oyekamal/molde-tiny.
What is here
- v3.1: 21,668 rows, every program re-checked with the current checker.
- v4: 18,122 rows. It is v3.1 cleaned (template rows, thin long-request rows, duplicate bodies and family caps removed), plus 406 hand-written rows. Details and an honest list of gaps are in
v4/STATS.md. - v4.1 (
v4.1/v4.1.jsonl): v4 plus hand-written and computed edit rows (add option, remove, rename button, rename field, reorder, sections) and Roman Urdu and typo creates. It is still being extended. The file changes as rows are added, so its size is not fixed;v4.1/STATS.mdhas a snapshot andv4.1/SAMPLES.mdhas examples. v4.1 is not a loadable config below; read the JSONL file directly. - Older sets v1 to v3 and the test set
heldout2are kept as well.
Row types. A row is a create (request in, whole program out) or an edit (request plus the current program in, changed program out). Some rows are ask: the target is one question instead of a program, for vague requests. Edits carry both the whole changed program and, in v4 and later, the short edit-instruction answer (answer) written against numbered lines. Every row passes the MoldeScript checker.
Not in the training data. The evaluation sets are kept out: heldout2 (149 requests), the 40 test changes, the 60 short requests, and the failure-hunt cases. Rows were dropped when they matched these by text or by similarity (leak check on v4: 0 leaks).
Known gaps. Roman Urdu is under-covered: v4.1 has 201 hand-written Roman Urdu, mixed and typo creates in the snapshot, against a target of 1,200. Most of v4 is still cleaned v3.1 written by large language models, with a small share of hand-written rows.
Sets
| Config | File | Rows | Create / edit | Notes |
|---|---|---|---|---|
v4 |
v4/v4.jsonl |
18,122 | 11,806 / 6,316 | Cleaned v3.1 (template rows, long-thin rows, duplicate bodies, family and title caps removed), every create has a # need: plan line (11,337 of 11,806), every edit has a patch-op answer next to the whole program (round-trip checked), plus 406 new hand-written rows: edit kinds add option, remove, reorder, rename, sections, add field; Roman Urdu and typo creates; plain asks for things the app cannot do. Uncached verify 18,122 of 18,122, leak check 0. New hand-written share is small (about 2%); see v4/STATS.md for what is not covered. |
v31 |
v3.1/v3.1.jsonl |
21,668 | 14,644 / 7,024 | v3.0 moved to language round 14 (topbar TABLE, "Button") and re-checked with the current checker (21,668 of 21,668 pass), plus 3,000 edits on long programs (add field, add option, rename button, reorder, remove section, add chart, setting change with set), more rich apps, calculators and developer tools. No colour, dark, title or size edits (the app does those itself). Written by large language models; every program is hand-written for its request, no templates in the new rows. |
v3 |
v3/v3.jsonl |
18,524 | 12,903 / 5,621 | richer apps (custom layouts, drawing, dates, timers, calculators), small changes to long programs, named short requests |
v2 |
v2/v2.jsonl |
14,538 | 10,924 / 3,614 | 68% real-user wording, 10% templated. Molde r2 was trained on this. |
v1 |
v1/v1.jsonl |
5,469 | 4,210 / 1,259 | mostly templated wording |
heldout2 |
v2/heldout2.jsonl |
149 | 100 create, 29 edit, 10 ask, 10 out of scope | test set, never train on it |
heldout_ids.txt lists the language-corpus ids held out from v1 and v2. v3/heldout_similarity.json and v3.1/heldout_similarity.json record the similarity check against the test requests (token overlap 0.8 or more is dropped; the test sets are heldout2, the corpus ids, 140 unseen ideas, 60 ask-test requests and 40 change-test cases).
Format
One JSON object per line:
{"id": "v3-cr-2b61d9a283", "task": "create", "request": "bills due this month unpaid total pls",
"program": "app \"Bills month\" wallet slate\ntable bill name text, due date, amount money, paid bool\n...",
"source": "v2:real:create",
"meta": {"style": "hurried", "domain": "real", "tokens": 141, "language_commit": "07f253b"}}
task:createoredit. Edits also carrybefore(the current program, as the model sees it) andprogram_before(the stored form).programis always the full target program.- Vague requests have an
ask ...program as target (one question with tap answers). Requests the language cannot fully do (voice input, internet) have the closest buildable app as target. In heldout2,meta.kindsayscreate,edit,askoroos. meta.language_commitis the MoldeScript version the row was checked against. The training builder migrates older rows to the current spelling.meta.tokensis the program length in tokens.
Prompt used in training (Gemma chat format): system You write MoldeScript, a tiny language for small phone apps. Reply with the complete program only, no explanation. For an edit request you get the current program: reply with the full updated program., user Request: <request> or Edit request: <request>\n\nCurrent program:\n<before>, assistant <program>.
How it was made
The data is synthetic. No real users' data is in it.
- App programs were written by large language models from lists of domains and app types, and by scripts (templates, mutations, generators for dates, timers, calculators and drawings).
- Requests were written by large language models from each program, in varied real-sounding styles (hurried, typos, long, mixed), plus templated wording.
- Edit pairs come from scripted changes and model-written changes, including small changes to long programs (v3).
- Every program was run through the MoldeScript checker and canonical formatter; anything that failed was dropped. Edits were also checked to keep saved data safe.
- A sample was judged blind by a separate model for "does the program do what the request asks" (v2: 90.8% yes on 872 items). Test requests are excluded from training by text and by similarity.
The folders */gen/ hold the generator and check scripts, */hand/ the program batches the generators start from, */items/ and */judge/ the inputs and outputs of the writers and the judge. They are kept so the sets can be rebuilt and extended.
Use
from datasets import load_dataset
ds = load_dataset("oyekamal/molde-data", "v3", split="train")
To build a training set, check every row against the current language and train: see TRAINING.md. Checker: node lang/mo.mjs check FILE.mo in the GitHub repo.
Limitations
- Wording is model-written; real people type differently, so test on real requests too.
- Programs look plainer than hand-written demo apps in v1 and v2 (v3 adds richer ones).
- English only.
Licence
CC BY 4.0. Please credit "Molde data, Kamal (oyekamal) and Orenda Project" and link this page. The Molde code and language are Apache-2.0.