Glossa Qwen3 1.7B (experimental)
A fine-tune of Qwen3 1.7B that answers questions about a highlighted passage
in a PDF and cites the page it draws on, like [p. 17]. It was trained for
Glossa, a PDF reader for Mac, as part of the experiment written up in
Can a tiny model beat Apple Intelligence?.
Read this first: it is not better than the model it started from. In blind comparisons judged by
Claude Sonnet, the fine-tuned model and the untuned Qwen3 1.7B each won about half the time. Fine-tuning made
it cite pages almost every time, but it also misstated pages and facts more often, and in a reading app a
confident citation on a wrong answer is worse than no citation. For everyday use in Glossa we recommend the
untuned qwen3:1.7b-q8_0 from Ollama. These weights are published so others can reproduce or build on
the experiment.
Files
| File | What it is |
|---|---|
glossa-qwen3-1.7b-q8_0.gguf | The fine-tuned model, merged and quantised to 8-bit GGUF. Runs in Ollama, LM Studio or llama.cpp. Its built-in chat template always turns thinking off, as in training. |
lora/ | The LoRA adapter, for use with the original Qwen3 1.7B weights in PEFT / Transformers. |
template, params | Settings that Ollama picks up automatically (8,192-token context, temperature 0.3), and the chat format for older Ollama versions. |
Use it in Glossa
- Install Ollama and open it.
- In Terminal, run:
ollama pull hf.co/glossareader/glossa-qwen3-1.7b-gguf - In Glossa, open Settings (⌘,) › AI. Choose Provider: Ollama (on this Mac) and type the model name
hf.co/glossareader/glossa-qwen3-1.7b-gguf, then Test and Save. - Select text in a PDF and choose ✨ Ask. Everything stays on your Mac.
Use it elsewhere
- Ollama:
ollama run hf.co/glossareader/glossa-qwen3-1.7b-gguf - LM Studio: search for
glossareader/glossa-qwen3-1.7b-ggufand download the Q8_0 file. - llama.cpp:
llama-cli -hf glossareader/glossa-qwen3-1.7b-gguf -cnv. Thinking is off: the model was trained withenable_thinking=False(an empty<think></think>block before each answer), and the GGUF's template does the same.
It works best with the prompt shape it was trained on: a system message with the page text (and its neighbours), then the reader's highlighted passage and question. Answers are short and end with page citations.
Results
Round 2, measured against the untuned Qwen3 1.7B on 200 questions:
| Untuned | Fine-tuned | |
|---|---|---|
| Blind pairwise wins (fine-tuned vs untuned) | 90 wins, 97 losses, 13 ties (48%) | |
| Answers with a valid page citation | 14% | 94% |
| Says "not on this page" on trick questions | 76% | 91% |
| Invented quotes | 0% | 2% |
| Misstated pages per answer (judged) | 0.58 | 0.88 |
| Wrong facts per answer (judged) | 0.05 | 0.16 |
| Missed points per answer (judged) | 1.48 | 0.97 |
All numbers are from the blog post, where the method and the test set (202 open-licence documents, 13 subjects, 2,366 questions) are described in full.
Training
- Base: Qwen3 1.7B. Teacher: GLM-5.3-Flash (MIT licence), whose answers the small model learned to copy (distillation). Answers were filtered to drop invalid page citations and invented quotes.
- LoRA rank 32 on all attention and MLP layers, learning rate 2e-4, cosine schedule, loss on the answer only, maximum 3,072 tokens.
- Round 2 (these weights): 3,621 examples, one epoch, on 2× T4 GPUs on Kaggle.
- Merged into the base weights and converted to GGUF Q8_0 with llama.cpp.
Licence
Apache 2.0, the same as Qwen3.