Llama-FQSelect-v2-Qwen2.5-1.5B-Q8_0-GGUF
Built with Llama. Built with Qwen.
This is the 8-bit (Q8_0) GGUF file of the FQ-Select v2 student from the paper Selecting Reasoning Traces by Familiarity and Quality for Small Language Model Distillation (Vu, Nguyen, Nguyen-Le, Le; Ton Duc Thang University). It is the base model Qwen2.5-1.5B fine-tuned with LoRA on 5,685 step-by-step math solutions chosen by FQ-Select v2 from solutions written by three teachers.
Its name begins with "Llama" because the Llama 3.3 Community License requires this for distributed models trained on outputs of Llama 3.3. The model's architecture and weights come from Qwen2.5-1.5B, not from Llama.
- Code: https://github.com/JasonNguyen31/QD-RSR-Project
- Training data, selections and every evaluation sample: https://huggingface.co/datasets/VietNguyenHoang/fq-select-math-distillation
What it is for
The model is a research artifact. It shows that a student distilled for this paper runs on an ordinary laptop. It solves school and competition math problems step by step and puts the final answer in \boxed{}. It is not a general assistant: it was not trained for chat, safety or tasks outside math, and on MATH-500 it is wrong on about half of the attempts.
Files
| File | Content |
|---|---|
Llama-FQSelect-v2-Qwen2.5-1.5B-Q8_0.gguf | Weights, LoRA merged in float32, converted with llama.cpp and quantised to Q8_0 (1.65 GB). |
Modelfile | Ollama settings used in the paper: prompt template, system prompt and sampling parameters. |
LICENSE-Llama-3.3 | Copy of the Llama 3.3 Community License Agreement. |
How to run
With Ollama, in the folder holding both files:
ollama create llama-fqselect-v2 -f Modelfile
ollama run llama-fqselect-v2 "What is the remainder when 2^100 is divided by 7?"
The Modelfile sets the prompt format the model was trained on (Qwen ChatML), the system prompt Please reason step by step, and put your final answer within \boxed{}, temperature 0.6, top-p 0.95, top-k off, min-p 0, repeat penalty 1, up to 3,072 new tokens, and the stop strings <|endoftext|> and <|im_end|>. Ollama's defaults (top-k 40, repeat penalty 1.1) differ from these and lower accuracy.
LM Studio
The file runs in LM Studio without conversion: drag Llama-FQSelect-v2-Qwen2.5-1.5B-Q8_0.gguf into the app, or put it in the LM Studio models folder. LM Studio reads the prompt format (Qwen ChatML) from the file itself. Two things must be set by hand, in the chat's settings panel, to match the paper:
| Setting | Value |
|---|---|
| System prompt | Please reason step by step, and put your final answer within \boxed{} |
| Temperature | 0.6 |
| Top P | 0.95 |
| Top K | 0 (off) |
| Min P | 0 |
| Repeat penalty | 1 (off) |
| Response length limit | 3,072 tokens |
| Context length | 4,096 or more |
Without this system prompt, Qwen's chat template may put in its own default system message, which the student never saw in training; the model still answers, but the accuracy below was measured with the settings above. llama.cpp (llama-cli, llama-server) takes the same values as command-line options.
Evaluation
MATH-500, 4 samples per question at the settings above. Acc@4 is the accuracy averaged over the four samples; Pass@4 is the share of questions solved at least once.
| Version | Engine | Acc@4 | Pass@4 |
|---|---|---|---|
| LoRA adapter, seed 42 (paper) | Transformers on an RTX 3060 | 54.1 | |
| This file (Q8_0) | Ollama on an Apple M4 Pro | 51.5 | 69.2 |
The paired difference over the 500 questions is −2.6 points, 95% interval −4.9 to −0.4, so this file is measurably weaker than the evaluation reported in the paper. The loss comes from the conversion, the 8-bit quantisation and the inference engine together; we did not separate them for this model. On the Apple M4 Pro it generates about 110 tokens per second with 1.7 GB of memory.
In the paper, FQ-Select v2 does not beat GRAPE, the selection rule it extends (54.15 against 55.10 on MATH-500, seed 42). It is released because it is the paper's proposed method, not because it is the strongest student.
Training
- Base model: Qwen/Qwen2.5-1.5B (base, not instruct), Apache License 2.0.
- Data: 1,895 GSM8K and MATH training questions (MATH-500 excluded), three correct solutions per question chosen by FQ-Select v2 from those written by DeepSeek-V3, Qwen2.5-VL-72B-Instruct and Llama-3.3-70B-Instruct.
- LoRA rank 16, alpha 32, on all attention and feed-forward projections; learning rate 1e-4 with cosine decay; 3 epochs; batch 16; 16-bit training; seed 42.
Licences and attribution
This model is subject to several sets of terms. Users are responsible for complying with each of them.
- Base model: Qwen2.5-1.5B is released under the Apache License 2.0.
- Llama 3.3: part of the training data was written by Llama-3.3-70B-Instruct. Llama 3.3 is licensed under the Llama 3.3 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved. Use of this model must also comply with the Llama 3.3 Community License (a copy is included as
LICENSE-Llama-3.3) and the Llama 3.3 Acceptable Use Policy. Built with Llama. - Qwen: part of the training data was written by Qwen2.5-VL-72B-Instruct, released under the Qwen License Agreement. Built with Qwen.
- DeepSeek-V3: part of the training data was written by DeepSeek-V3, whose recent releases are under the MIT licence.
- Questions: GSM8K (MIT) and MATH (MIT).
Citation
The paper is under review; citation details will be added once it is published. Until then, please cite the code repository: https://github.com/JasonNguyen31/QD-RSR-Project