How to use from the
Use from the
Transformers library
# Gated model: Login with a HF token with gated access permission
hf auth login
# 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

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support