Downloads · 30 days
5
18% of all-time downloads
Pradheep1647/qwen2.5-coder-1.5b-lean-repository-midtraining
qwen2.5-coder-1.5b-lean-repository-midtraining is a text generation model from Pradheep1647. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a LoRA adapter continued from Pradheep1647/qwen2.5-coder-1.5b-lean-language-sft on 20.48M usable Lean repository tokens. The base model is Qwen/Qwen2.5-Coder-1.5B-Instruct.
Downloads · 30 days
5
18% of all-time downloads
All-time downloads
28
Public
Repo size
85.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 82%
From the Hugging Face model README
This repository contains a LoRA adapter continued from
Pradheep1647/qwen2.5-coder-1.5b-lean-language-sft
on 20.48M usable Lean repository tokens. The base model is
Qwen/Qwen2.5-Coder-1.5B-Instruct.
This is a repository-language continuation checkpoint, not a finished theorem prover. It improves held-out repository language-model loss, but did not improve compilation on the small instruction benchmark and reduced instruction adherence. The measured regression is reported below because this adapter should be followed by proof-focused SFT before verifier RL.
The same 34 held-out prompts were generated greedily before and after midtraining and checked with local Lean 4 + Mathlib.
| Metric | Before | After | Change |
|---|---|---|---|
| Compile | 26/34 (76.5%) | 26/34 (76.5%) | 0.0 pp |
| Topic adherence | 33/34 (97.1%) | 24/34 (70.6%) | -26.5 pp |
| Clean compile | 25/34 (73.5%) | 21/34 (61.8%) | -11.8 pp |

| Metric | Before | After | Change |
|---|---|---|---|
| Loss | 1.6767 | 1.0038 | -40.1% |
| Perplexity | 5.3480 | 2.7287 | -49.0% |

The repository loss result shows that the adapter learned the corpus distribution. It does not establish improved theorem-proving ability. The generation results indicate catastrophic forgetting of some instruction-following behavior despite unchanged Lean compilation.
Pradheep1647/lean-repository-midtraining-v1The dataset uses file-level train/validation splitting and exact normalized benchmark denylisting. Those checks do not detect semantically equivalent or renamed statements.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
adapter_id = "Pradheep1647/qwen2.5-coder-1.5b-lean-repository-midtraining"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, adapter_id)
Use this checkpoint as an initialization for verified proof SFT, mixing some Lean language instruction data to recover instruction adherence. Evaluate on held-out theorem proving tasks before starting verifier-guided RL in the Lean verifier environment.