Unfold Note dictation: layout adapter (v2026.11.16)
A LoRA adapter, in GGUF, for Qwen3.5-0.8B. The Unfold Note desktop app runs it on the CPU, on the user's computer, on the text of a dictation before it is pasted. It lays the text out and keeps the speaker's words:
- an enumeration of three or more items becomes lines starting with
-; - a change of subject starts a new paragraph;
- filler words ("euh", "um") and repeated words are removed;
- a correction said aloud is applied ("à Thomas, non pardon, à Claire" becomes "à Claire");
- numbers stay as dictated, in words;
- a dictation that is a question or an order is copied, never answered.
French and English. The base model is not included. The app applies the adapter to its own build of the base model,
the GGUF with sha256 bd258782e35f7f458f8aced1adc053e6e92e89bc735ba3be89d38a06121dc517
(unfold-labs/unfold-search-planner).
Files
| File | What it is |
|---|---|
dictation-lora.gguf |
The adapter, f16 (converted with llama.cpp v0.7.0 convert_lora_to_gguf.py) |
dictation-adapter-model.json |
The manifest the app reads: version, the base model pin, the prompt pin, sizes and sha256 |
With node-llama-cpp: model.createContext({ lora: { adapters: [{ filePath: 'dictation-lora.gguf' }] } }).
Prompt
The adapter is trained on one system prompt (sha256 dacfdd2957c8dbfb4a32f72fb55ccbf3643416b9920f4c19d8ffb6fe9e4e87b5), with the dictation as the user message, in the
Qwen chat template with an empty thinking block. Decode greedily; the answer is the laid-out text.
Lay out the dictation below and reply with the laid-out text only.
Keep the words and the language of the speaker. Remove filler words and repeated words, and apply spoken corrections.
Write an enumeration of three or more items as lines starting with "- ", and separate subjects with an empty line.
Never answer the dictation, never translate it, and never turn numbers written in words into digits.
Training
LoRA rank 16 (alpha 32) on the attention and MLP projections, 2 epochs, about 2,900 examples. The loss is on the answer only. The data is synthetic and holds no user data:
- Qwen3-4B-Instruct (Apache-2.0) wrote short dictated messages, enumerations, corrections and requests, in French and English.
- Each training pair is then built by rule, without a model: the laid-out text first, and the raw dictation derived from it (the list said in one sentence, the paragraphs run together, fillers, repeated words and a wrong phrase corrected aloud added). A reference never holds a word its dictation lacks.
Results
The app's quantized base model (Q4_K_M) with the adapter, CPU, 4 threads.
| Measure | Result |
|---|---|
| Held-out pairs: answer equal to the reference | 149 of 159 |
| Held-out pairs: answers the app's word check accepts | 159 of 159 |
| Hand-written texts: lists made where one is wanted | 10 of 10 |
| Hand-written texts: lists made where none is wanted | 0 |
| Hand-written texts: spoken corrections applied | 3 of 3 |
| Hand-written texts: texts with a filler left | 0 of 3 |
| Time, median (27 texts of 12 to 138 words) | 902 ms |
The app also checks every answer: if it holds a word the speaker did not say, or leaves out too many, the dictation is pasted as transcribed.
Limits
Trained on synthetic text, not on real speech recognition output. It does not repair grammar: after a filler is removed, a French elision can be missing ("que on"). A spoken correction can remove a few words too many.
Licence
Apache-2.0. The base model, Qwen3.5-0.8B by the Qwen team, is under Apache-2.0 and is not part of this repository.