Text Generation
PEFT
Safetensors
code
energy-efficient-code-generation
green-software-engineering
lora
Instructions to use saurabh-singh-rajput/green-tea-qwen2.5-coder-14b-runtime-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use saurabh-singh-rajput/green-tea-qwen2.5-coder-14b-runtime-sft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Coder-14B") model = PeftModel.from_pretrained(base_model, "saurabh-singh-rajput/green-tea-qwen2.5-coder-14b-runtime-sft") - Notebooks
- Google Colab
- Kaggle
Qwen2.5-Coder-14B Runtime-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). Runtime-contrastive supervised fine-tuning (LoRA r=64). On the 143-problem held-out benchmark it achieves 7.64% CARET (Correctness-Adjusted Reduction in Energy Total).
- Base model:
unsloth/Qwen2.5-Coder-14B - Training: Runtime-contrastive supervised fine-tuning (LoRA r=64)
- Code and full replication: https://github.com/SMART-Dal/green-tea
- Dataset (Zenodo): https://doi.org/10.5281/zenodo.21210099
Usage
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
b = AutoModelForCausalLM.from_pretrained('unsloth/Qwen2.5-Coder-14B', device_map='auto')
m = PeftModel.from_pretrained(b, 'saurabh-singh-rajput/green-tea-qwen2.5-coder-14b-runtime-sft')
t = AutoTokenizer.from_pretrained('saurabh-singh-rajput/green-tea-qwen2.5-coder-14b-runtime-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
- 46