Text Generation
Transformers
Safetensors
qwen3
lean4
theorem-proving
sft
lora-merged
conversational
text-generation-inference
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="DiffLean/K2-Prover-SFT-8B-LORA")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages)# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("DiffLean/K2-Prover-SFT-8B-LORA")
model = AutoModelForCausalLM.from_pretrained("DiffLean/K2-Prover-SFT-8B-LORA")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Quick Links
K2-Prover-SFT-8B-LORA
Merged 8B SFT model for Lean 4 theorem proving.
This repository contains the merged full model produced from:
- Base model:
/scratch/joshua.ong/models/Qwen3-8B - LoRA adapter:
/scratch/joshua.ong/k2-diffusion-synthetic/LLaMA-Factory/saves/qwen3-8b/lora_clean/difflean_sft_ds2_test/checkpoint-7036 - Merge config:
examples/merge_lora/k2_prover_sft_8b_lora.yaml
The LoRA weights have been merged into the base model, so inference should load this as a standard Transformers causal language model without a separate adapter.
- Downloads last month
- 262
# Gated model: Login with a HF token with gated access permission hf auth login