Downloads · 30 days
17
3% of all-time downloads
kartikraut09/ecocloud-grpo-qwen
ecocloud-grpo-qwen is a text generation model from kartikraut09. Use it when you need the model to write or continue text. The card lists the license as mit.
A Qwen2.5-0.5B model fine-tuned with Group Relative Policy Optimization (GRPO) to manage cloud infrastructure crises.
Downloads · 30 days
17
3% of all-time downloads
All-time downloads
580
Public
Parameters
494M
1000 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
A Qwen2.5-0.5B model fine-tuned with Group Relative Policy Optimization (GRPO) to manage cloud infrastructure crises.
Built for the Meta PyTorch OpenEnv Hackathon Grand Finale.
This model is a reinforcement-learning-trained controller for the CloudEdge cloud crisis simulator. It learns to select optimal infrastructure actions (scale_up, scale_down, optimize_energy, migrate_region) by balancing three competing objectives:
| Objective | Target | Agent |
|---|---|---|
| Latency | < 150ms | ResourceAgent |
| Cost | < $400/hr | CostAgent |
| Carbon | < 220 units | SustainabilityAgent |
reward = Σ (gap_closure × weight) + worst_metric_bonus
| Action | Reward (crisis state) | Model Learns |
|---|---|---|
optimize_energy | +7.5 | "Best action — addresses cost + carbon simultaneously" |
scale_down | +5.75 | "Good — reduces cost effectively" |
migrate_region | +3.75 | "Moderate — helps carbon but hurts cost" |
scale_up | +1.5 | "Worst — increases cost and carbon" |
The model converged to selecting optimize_energy as the dominant policy when all metrics are above target — which is the mathematically optimal action given the shaped reward function.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("kartikraut09/ecocloud-grpo-qwen")
tokenizer = AutoTokenizer.from_pretrained("kartikraut09/ecocloud-grpo-qwen")
prompt = """<|im_start|>system
You are the CloudEdge controller managing a cloud platform in crisis.
Pick the BEST single action for the current state. Respond with ONLY the action name.
Actions:
scale_up → latency -40, cost +30, carbon +20
scale_down → latency +25, cost -35, carbon -15
optimize_energy → latency +10, cost -20, carbon -40
migrate_region → latency +15, cost +10, carbon -50
Targets: latency<150ms, cost<$400, carbon<220<|im_end|>
<|im_start|>user
Cloud state: latency=280ms, cost=$620/hr, carbon=380, load=critical. Best action?<|im_end|>
<|im_start|>assistant
"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=16, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Output: optimize_energy
@misc{cloudedge2026,
title={CloudEdge: Multi-Agent LLM Simulator for Sustainable Cloud Crisis Management},
author={Kartik Raut},
year={2026},
url={https://github.com/KartikRaut09/ecocloud-war-room}
}
MIT License