Qwen3.5 0.8B fine-tuned for tags, one-line gists and summaries
This repo has the bf16 checkpoint of my fine-tuned Qwen/Qwen3.5-0.8B. It tags voice-recording transcripts, writes one-line gists, merges part notes for 1-5 hour recordings, and writes summaries, in English, Chinese, Korean, Japanese, Spanish and French.
My phone runs it as an int8 LiteRT-LM file: alexc09/Qwen3.5-0.8B-Tags-Gist-Summary-LiteRT. That card has all the details: the request types and their exact prompts, evals and results, the data, the training settings, conversion and limitations.
It is not a general chat model. It was trained only on my app's request types (fine-tuned for my transcription app), so use the prompts from the LiteRT card.
Files
| File | Size |
|---|---|
model.safetensors | 1,504,827,608 bytes (bf16) |
config.json, generation_config.json | architecture Qwen3_5ForCausalLM; greedy decoding, 160 new tokens; stop tokens <|endoftext|> (248044) and <|im_end|> (248046) |
tokenizer.json, tokenizer_config.json, chat_template.jinja | Qwen3.5's tokenizer and chat template, unchanged |
prompts.py, prompts.yaml | the exact training prompts (one YAML file) and a helper that fills them in; rebuilds all 22,039 training and validation requests byte for byte |
pipeline/ | the code that made this model: data, training, conversion and evals, plus my saved eval answers (see "The code behind it" below) |
How to use it
Requirements: torch, transformers>=5.20.2 and huggingface_hub. On a GPU, also install flash-linear-attention and causal-conv1d for speed. Without them it still works, just much more slowly (one short request took about 2 minutes on a Mac CPU).
prompts.py builds the exact requests the model was trained on, from the wording in prompts.yaml (it needs PyYAML, which transformers already installs). Each *_request function returns the chat messages and the right max_new_tokens (160, or 384 for key points).
import sys
import torch
from huggingface_hub import snapshot_download
from transformers import AutoModelForCausalLM, AutoTokenizer
path = snapshot_download("alexc09/Qwen3.5-0.8B-Tags-Gist-Summary")
sys.path.insert(0, path)
import prompts
tok = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path, dtype=torch.bfloat16)
def ask(request):
text = tok.apply_chat_template(request["messages"], tokenize=False, add_generation_prompt=True,
enable_thinking=False)
inputs = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=request["max_new_tokens"], do_sample=False)
return tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True)
transcript = ("Sarah: Let's move the beta launch to March, the payment tests aren't done.\n"
"Mike: Fine. I'll tell the design team today and update the roadmap.")
print(ask(prompts.tags_request(transcript, tag_list=["meeting", "budget", "product"],
transcript_language="English")))
# {"tags": [...], "gist": "..."}
The four request types (prompts.py also has the rest of my app's steps: cutting a transcript into parts, the language detector and reading the answers; see its docstring):
prompts.tags_request(text, tag_list=None, allow_new_tags=True, gist=True, gist_language=None, transcript_language=None, is_summary=False): tags (+ gist) for a whole recording or one ~15-minute part (up to about 3,000 tokens of text).prompts.merge_request(part_notes, tag_list=None, allow_new_tags=True, gist=True, gist_language=None, transcript_language=None): whole-recording tags (+ gist) from each part's answer,part_notes = [{"start": "0:00", "end": "15:02", "tags": [...], "gist": "..."}, ...].prompts.key_points_request(lines, part=1, parts=1, max_points=None, output_language=None, transcript_language=None): key points for one ~12-minute part,lines = ["[0:05] Sarah: ...", ...].prompts.overview_request(speakers, parts_points, output_language=None, transcript_language=None): overview + gist from every part's key points,parts_points = [{"start": "0:00", "end": "12:10", "points": [...]}, ...].
transcript_language is the main language of the text (for example "English"), from your own language detector, or None when you can't tell. gist_language / output_language is a language picked for the output, or None for the recording's own language. Use greedy decoding, thinking off, and one fresh chat per request, as in training.
Keep each request within 4,096 tokens: cut long recordings into about 15-minute parts for tags (about 3,000 tokens) and about 12-minute parts for key points. generation_config.json already sets greedy decoding and 160 new tokens. vLLM 0.33.0 (bf16) also works; my GPU evals used it.
Performance in short
Compared with base Qwen3.5-0.8B and LFM2.5 1.2B (the phone model my app uses today). Tag F1 is the overlap with Claude Sonnet 5.5's reference tags, from 0 (none match) to 1 (all match).
| Test | This model | Base Qwen3.5-0.8B | LFM2.5 1.2B |
|---|---|---|---|
| Tag F1, 500 held-out short recordings | 0.504 (phone file 0.490) | 0.126 | 0.160 |
| Tag F1, Spanish, Japanese, Korean, French (482 rows) | 0.42 | 0.095 | not tested |
| Tag F1, 1-5 hour recordings, merged from ~15-minute parts (520 rows) | 0.47 | 0.12 | not tested |
| Summaries, 98 recordings: mean rank from a blind GPT-6.2 Sol judge (1 = best of 3) | 1.13 | 2.67 | 2.19 |
The summaries test ran on the phone file; the other rows ran on this checkpoint (base Qwen and LFM2.5 on their phone files for the short-recording and summary rows). The judge ranked this model's summary above LFM2.5's in 88 of 98 recordings. The main limit: summaries sometimes mix up facts (faithfulness 2.72 out of 5). The LiteRT card has the full results.
Training in short
Full fine-tune (not LoRA), 21,197 rows, 2 epochs, learning rate 1e-5, on 2 A100-80GB for about 1.9 h; validation loss 1.143. pipeline/train.py has the recipe for one A100.
The code behind it
Everything I used to make this model is in pipeline/, one script per step:
make_data.py: writes the made-up recordings, converts the real meetings, gets Claude Sonnet 5.5's reference answers and builds the dataset files.train.py: the fine-tune on Modal.convert.py: this checkpoint to the int8 phone file.eval.py: runs, scores and judges every test on the cards. The judge is GPT-6.2 Sol.
Every request goes through prompts.py, so the data, training and evals all use the same wording. Each script installs its own packages with uv run <script>.py, and keys come from environment variables.
I checked each step against my real run. Replaying my saved answers, make_data.py rebuilds all 8 dataset files byte for byte, the key-point check included. train.py turns the rows into exactly the same tokens as my training run. eval.py re-scores every number on the cards from my saved answers in pipeline/results/, for free. A full rerun from scratch costs about $230 for the data, $31.50 for the key-point check, $7 for training and $0.30 for the conversion, and it won't give bit-identical answers or weights. pipeline/README.md has the commands and what won't come out exactly the same.
Licence
Apache-2.0, as the base model. See LICENSE and NOTICE. The training data includes CC BY-SA 4.0 material (AISHELL-4 and SUMM-RE); see the dataset card.