Dictation Cleanup - Qwen3.5-4B GGUF
I fine-tuned Qwen3.5-4B in Unsloth Studio to turn raw English dictation into readable text. My goal is a small, locally runnable cleanup model that removes fillers, applies spoken corrections, fixes punctuation, and formats supplied content without needing a cleanup system prompt.
This model works on text produced by a speech-to-text system, not on audio. A dictated question should come back as a cleaned question, not an answer. A dictated request should remain a request, not trigger an action or generate missing content.
Model details
| Item | Details |
|---|---|
| Developed by | hasanchadaram |
| Base used for fine-tuning | unsloth/Qwen3.5-4B, derived from Qwen/Qwen3.5-4B |
| Task / language | English transcript cleanup; text input and text output |
| Training method | Supervised fine-tuning with LoRA in Unsloth Studio |
| Distribution | Full merged model, quantized to Q4_K_M GGUF; no separate adapter required |
| Training date | November 1, 2026 |
| Source run | unsloth_Qwen3.5-4B_1793521666, final step 620 |
| Training dataset | dictation-cleanup, structure-v2 configuration |
| License | Apache-2.0 |
Version note: The weights in this repository are my structure-aware v2 release. I subsequently trained a notation-aware v3 model locally on 2,571 examples. I have archived that dataset as notation-v3, but its model weights are not the GGUF published here. My newer mixed-v4 dataset has not been used to train a model and is not part of this release.
Intended use
I built this for the cleanup stage of a dictation workflow: speech recognition first, then transcript cleanup, then review or insertion into the destination app.
- Remove non-meaningful hesitation words, false starts, and accidental repetition.
- Fix clear capitalization, punctuation, spelling, and grammar errors while preserving the speaker's meaning and voice.
- Apply unambiguous self-corrections and spoken punctuation or line-break commands.
- Format supplied lists, procedures, paragraphs, and email bodies when the transcript supports that structure.
- Preserve names, identifiers, quantities, negation, and uncertainty.
- Return only the cleaned text, without an explanation or conversational reply.
I do not intend this model to answer dictated questions, compose undictated content, execute commands, or replace speech recognition. Filler-only input has an empty target in the training data, but that behavior is sparsely represented and is not guaranteed.
Prompt format and local usage
Send one raw transcript as a user message in a fresh conversation. I trained with user/assistant pairs and no system message, task prefix, or transcript wrapper. Keep the model's chat template and stop-token handling. Disable thinking, tools, automatic tool nudging, and generic assistant prompts injected by a serving application.
Download the text-model file:
hf download hasanchadaram/dictation-cleanup-qwen3.5-4b-gguf Qwen3.5-4B.Q4_K_M.gguf --local-dir .
For a recent Qwen3.5-compatible llama.cpp server:
llama-server -m ./Qwen3.5-4B.Q4_K_M.gguf --jinja --reasoning off -c 4096 --host 127.0.0.1 --port 8080
Example request using Python and requests:
import requests
response = requests.post(
"http://127.0.0.1:8080/v1/chat/completions",
json={
"messages": [{
"role": "user",
"content": "um can you send the report by thursday no wait friday period",
}],
"temperature": 0,
"max_tokens": 512,
"chat_template_kwargs": {"enable_thinking": False},
},
timeout=120,
)
response.raise_for_status()
result = response.json()
if result["choices"][0]["finish_reason"] != "stop":
raise RuntimeError("Cleanup did not finish; retain the original transcript.")
print(result["choices"][0]["message"]["content"])
The intended cleanup for this illustrative request is Can you send the report by Friday?. Increase the output limit for longer transcripts. My configured training sequence length was 4,096 tokens; that is not a claim of validated long-dictation quality or minimum RAM/VRAM requirements.
Before and after fine-tuning
These are actual generated outputs on realistic, fictional dictation scenarios, not handwritten ideal answers or recordings from real users. I specified five cases before generation and recorded the first response for each. None is an exact input duplicate in the released v2 or v3 splits.
For the direct comparison, I sent the same raw user message to the untuned Qwen3.5-4B Q4_K_M and the exact v2 GGUF published here, without a system prompt. Both used the same saved chat template and runtime, thinking off, temperature 0, seed 3407, a 4,096-token context, and a 512-token output limit.
A work message, not a calendar assistant
Dictation:
um can you move our design review from tuesday to thursday at three thirty pm and keep the zoom link the same
Before fine-tuning - opening excerpt:
I cannot directly access your calendar or send emails on your behalf. However, you can easily make this change yourself by following these steps:
The rest of the base response gave calendar-editing instructions. The full response is preserved in the comparison results.
After fine-tuning - complete output:
Can you move our design review from Tuesday to Thursday at 3:30 PM and keep the Zoom link the same?
An email to clean, not reply to
Dictation:
hi Rohan um thanks for sending the draft i reviewed it this morning and the budget section looks good please send the final version by friday thanks Meera
Before fine-tuning - complete output:
Hi Meera,
Thank you for the quick review. I'm glad to hear the budget section looks good.
I will finalize the document and send over the complete version by Friday as requested.
Best regards,
Rohan
After fine-tuning - complete output:
Hi Rohan,
Thanks for sending the draft. I reviewed it this morning, and the budget section looks good. Please send the final version by Friday.
Thanks,
Meera
A shopping list, without commentary
Dictation:
shopping list oat milk brown rice spinach and a dozen eggs
Before fine-tuning - complete output:
Here is your shopping list organized by category for easy reference:
* **Dairy & Alternatives**: Oat milk
* **Produce**: Spinach
* **Grains**: Brown rice
* **Protein**: Eggs (1 dozen)
You can copy this directly into your cart or print it out!
After fine-tuning - complete output:
Shopping list:
* Oat milk
* Brown rice
* Spinach
* A dozen eggs
I also tested a quantity correction with the identifier ZX-904 and already-clean text containing negation. The fine-tuned output applied the correction to 80 boxes, preserved ZX-904, and left the clean-text case unchanged. All five cases, all outputs, and the exact settings are available in the comparison report.
Important control: I also ran the base model with an explicit cleanup system prompt. It produced cleanup outputs for these cases too; those full results are included. This comparison illustrates the change in default, prompt-free behavior, not proof that fine-tuning outperforms a properly prompted base model. It is a small qualitative demonstration, not a benchmark or an accuracy estimate.
Training data
I used the structure-v2 configuration of my synthetic cleanup dataset:
| Split | Examples | Use in this run |
|---|---|---|
| Train | 2,478 | Used for training |
| Validation | 320 | Kept separate; not configured for in-training evaluation |
| Test | 320 | Kept separate; not configured for in-training evaluation |
The original 3,000-example corpus was expanded from 98 authored template families and 60 boundary fixtures using substitutions such as names and places. The structure-aware revision added 118 individually specified examples across the three splits, including 78 training examples. The number of independent linguistic patterns is therefore much smaller than the row count.
I used AI-authored synthetic targets, not user recordings or a collected real-ASR corpus. The labels have not been independently human-validated. The examples cover fillers, questions and requests, corrections, numbers, technical terms, lists, email layout, paragraph breaks, and ordinary prose that should stay unformatted. See the dataset card for version history, split definitions, checksums, and limitations.
Training procedure
These are the recorded settings for the published v2 model, not the later v3 run:
| Setting | Value |
|---|---|
| Method / precision | LoRA / BF16; base not loaded in 4-bit |
| LoRA rank / alpha / dropout | 16 / 16 / 0.0 |
| Epochs | 2 |
| Learning rate / scheduler | 0.0002 / linear |
| Per-device batch size / gradient accumulation | 2 / 4; effective batch size 8 on one GPU |
| Sequence length / packing | 4,096 / disabled |
| Completion-only loss | Disabled |
| Optimizer / weight decay | adamw_8bit / 0.001 |
| Warmup steps / seed | 5 / 3407 |
| Gradient checkpointing | Enabled |
| Hardware | One NVIDIA GeForce RTX 5070 Ti, approximately 16 GB VRAM; Windows |
| Final step / last logged batch loss | 620 / 0.2122 |
| Mean training loss across the run | 0.4197 |
| In-training evaluation | Not configured |
The last logged batch loss and the mean loss across training are different metrics; neither is cleanup accuracy or a held-out score. I merged the LoRA into 16-bit base weights before exporting the Q4_K_M GGUF with Unsloth.
The saved training card records PEFT 0.18.1, TRL 0.23.1, Transformers 5.3.0, PyTorch 2.13.0+cu130, Datasets 4.3.0, and Tokenizers 0.22.2. The run log identifies Unsloth 2026.10.11. I have not documented the exact converter commit or importance-matrix configuration for this export.
Evaluation and limitations
I have tried the model on personal cleanup examples and recorded the five-case comparison above, but I have not run a formal benchmark or a systematic held-out evaluation. I do not report an aggregate accuracy score or claim general superiority over a prompted base model.
My main limitations are:
- Most examples are short, templated synthetic English. Real recognition errors, accents, dialects, multilingual text, and code-switching have not been systematically evaluated.
- Long dictations and multi-topic documents have limited training coverage.
- Empty-output and already-correct-text cases are sparsely represented.
- The model can omit or invent words, change names or numbers, lose negation, over-format, or answer a question instead of cleaning it.
- Quantization impact has not been measured against the unquantized checkpoint. The optional image projector has not been evaluated for this task.
I recommend preserving the original transcript and reviewing edits, especially names, amounts, dates, identifiers, and negation. This is a transcript editor, not a general factual assistant or an autonomous command executor.
Available files
| File | Purpose | Size |
|---|---|---|
| Qwen3.5-4B.Q4_K_M.gguf | Full merged text model, Q4_K_M | 2,783,446,880 bytes (2.59 GiB) |
| Qwen3.5-4B.BF16-mmproj.gguf | Optional vision projector; not needed for text cleanup | 675,568,864 bytes (0.63 GiB) |
SHA-256:
d909820f5e6e42b5f3623763f70babdc93ee33aa8f6677ad3ea182f05f3f40dd Qwen3.5-4B.Q4_K_M.gguf
01b077c9411a508a38aa16969355a5f50ef53d6d934a34137d12dd60e24a1688 Qwen3.5-4B.BF16-mmproj.gguf
Quantization changes weight precision, not the approximate 4B parameter count. Runtime memory also includes caches and working buffers beyond the file size. I am not claiming validated image support because a projector is included.
License and acknowledgments
I release this fine-tuned, quantized derivative under Apache-2.0, consistent with the existing repository license and the upstream Qwen3.5-4B license. Credit to the Qwen team for the base model and the Unsloth team for the training and export tools. The dataset has its own licensing information in its dataset card.
For feedback or reproducible cleanup failures, please use this repository's Community tab.