SpinningStrawIntoGold-Qwen2.5-Coder-7B-SFT-AllSeeds
A series of models with improved deductive reasoning skills
2 min readupdated
This series of models represents the results of supervised fine-tuning experiments on the base language model Qwen/Qwen2.5-Coder-7B using various training mixtures with the addition of synthetic deduction tasks. The authors explore how replacing a small fraction of standard instruction examples with automatically generated logical chains affects the model's ability to reason. The models are provided in separate folders with weights in bf16 safetensors format, a tokenizer, and evaluation results. The release will be useful for researchers and developers working on improving the logical capabilities of LLMs (large language models) without increasing their size.
Key features
- Synthetic data: Use of logical tasks based on Horn clause deduction generated without using other language models.
- Accuracy growth: Replacing 5-25% of the training mixture increases accuracy on the ProofWriter and FOLIO benchmarks.
- Retention of general metrics: Overall performance on standard benchmarks remains at the same level while logic improves.
- Mixture diversity: Various training configurations with English and formal derivations are available.
What you can do
- Reasoning testing: Run the model to check logical tasks and multi-hop deduction.
- Configuration comparison: Evaluate the difference between base mixtures and variants with added formal or procedural traces.
- Pipeline integration: Use checkpoints via the
transformerslibrary or download individual folders viahuggingface_hubfor custom tasks.
Example
Example code for loading one of the models and the tokenizer:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "flaitenberger/SpinningStrawIntoGold-Qwen2.5-Coder-7B-SFT-AllSeeds"
sub = "Qwen2.5-Coder-7B-Dolci100k-Baseline/seed3407"
tok = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForCausalLM.from_pretrained(
repo, subfolder=sub, torch_dtype="bfloat16", device_map="auto"
)
Read more
DetailsBase model: Qwen2.5-Coder-7B
License: Apache-2.0
Evaluations include ProofWriter, FOLIO, BBH, GPQA-Diamond, MMLU, GSM8K, and IFEval benchmarks
Weight format: bfloat16 safetensors










Comments