Downloads · 30 days
11
12% of all-time downloads
Ishaank18/cmrl-adaptive-generator
cmrl-adaptive-generator is a machine learning model from Ishaank18. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Multi-level adaptive generator trained with SFT for the C-MRL project.
Downloads · 30 days
11
12% of all-time downloads
All-time downloads
89
Public
Repo size
603 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 82%
From the Hugging Face model README
Multi-level adaptive generator trained with SFT for the C-MRL project.
Adapts explanations to different difficulty levels:
| Parameter | Value |
|---|---|
| Base Model | unsloth/Qwen2-1.5B-Instruct-bnb-4bit |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Learning Rate | 0.0001 |
| Final Train Loss | 1.5193 |
| Final Eval Loss | 0.0000 |
Team kats - IIIT Hyderabad
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"Ishaank18/cmrl-adaptive-generator",
max_seq_length=2048,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "system", "content": "You are an adaptive tutor."},
{"role": "user", "content": "Explain photosynthesis to a 6th grader."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))