Qwen2.5-Coder-0.5B Energy-SFT

Part of the Green Tea replication package for Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning (Rajput and Sharma). Energy-contrastive supervised fine-tuning (LoRA r=64). On the 143-problem held-out benchmark it achieves 4.07% CARET (Correctness-Adjusted Reduction in Energy Total).

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
b = AutoModelForCausalLM.from_pretrained('unsloth/Qwen2.5-Coder-0.5B', device_map='auto')
m = PeftModel.from_pretrained(b, 'saurabh-singh-rajput/green-tea-qwen2.5-coder-0.5b-energy-sft')
t = AutoTokenizer.from_pretrained('saurabh-singh-rajput/green-tea-qwen2.5-coder-0.5b-energy-sft')

Citation

@misc{rajput2026greentea,
  title={Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning},
  author={Rajput, Saurabhsingh and Sharma, Tushar},
  year={2026},
  note={Preprint}
}
Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for saurabh-singh-rajput/green-tea-qwen2.5-coder-0.5b-energy-sft

Adapter
(1)
this model