How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="AdarshSingh7647/Eklav-9B-Math-CotGen")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("AdarshSingh7647/Eklav-9B-Math-CotGen")
model = AutoModelForCausalLM.from_pretrained("AdarshSingh7647/Eklav-9B-Math-CotGen", device_map="auto")
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=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Eklav-9B-Math-CotGen (CotGen baseline)

Eklav trains a model to pick up a teacher's reasoning mid thought rather than imitate it end to end. The student sees a partial reasoning trace from the teacher, with the answer revealing tail removed, and learns to continue reasoning and produce the answer on its own. The model's own reasoning is conditioned on the teacher's partial trace during training rather than trained to reproduce it word for word. Same base model, same training data as standard full trace CoT distillation, only the training objective changes.

Highlights

  • Standard full trace CoT SFT baseline used to measure Eklav's improvement at this scale

Model details

Base model zai-org/GLM-Z1-9B-0414
Task Math reasoning
Training method CotGen (standard full trace CoT SFT, baseline)
Format Merged bf16 checkpoint

Results

Pass@1 (%), single evaluation run per benchmark.

Benchmark AIME 2025 AIME 1983-2024 GPQA-Diamond GSM8K MATH-500 Omni-MATH MMLU
CotGen 35.2 59.3 49.8 95.5 91.2 39.8 81.0

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "AdarshSingh7647/Eklav-9B-Math-CotGen"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
Downloads last month
1,767
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AdarshSingh7647/Eklav-9B-Math-CotGen

Finetuned
(10)
this model

Collection including AdarshSingh7647/Eklav-9B-Math-CotGen