Downloads · 30 days
7
6% of all-time downloads
hermanda/ant-llm-grpo
ant-llm-grpo is a reinforcement learning model from hermanda. Use it for the reinforcement 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.
LoRA adapter for Qwen/Qwen3-0.6B trained with Group Relative Policy Optimization (GRPO) on an ant colony foraging simulation.
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
111
Public
Repo size
66.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors18.4 MB · 61%
From the Hugging Face model README
LoRA adapter for Qwen/Qwen3-0.6B trained with Group Relative Policy Optimization (GRPO) on an ant colony foraging simulation.
This model is part of the ant-llm project — training small LLMs to exhibit emergent swarm intelligence in a grid-based ant colony environment. Ants must navigate a grid, find food sources, carry food back to the nest, and coordinate via pheromone signals.
This is a LoRA adapter. To use it, first merge the SFT adapter into the base model, then apply this GRPO adapter:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Step 1: Load base + merge SFT adapter
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", torch_dtype="bfloat16")
sft_model = PeftModel.from_pretrained(base_model, "hermanda/ant-llm-sft")
merged_model = sft_model.merge_and_unload()
# Step 2: Apply GRPO adapter
grpo_model = PeftModel.from_pretrained(merged_model, "hermanda/ant-llm-grpo")
# Step 3: Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("hermanda/ant-llm-grpo")
The model generates structured actions for the ant colony environment:
THINK: Found food nearby, picking up
ACT: PICK_UP
ACT: REMEMBER "food at [3,2]"
Available actions: MOVE, PICK_UP, DROP, DEPOSIT, SIGNAL, REMEMBER, REINFORCE, FORGET.
@misc{ant-llm-grpo-2025,
title={ant-llm: Training LLMs for Emergent Swarm Intelligence via GRPO},
author={Daniel Herman},
year={2025},
url={https://github.com/detrin/ant-llm}
}