LFM-3 1.7B Cooperation-Reflex
An adapter for autonomous agent cooperation
2 min readupdated
This LoRA adapter (a small add-on layer for the base model) is trained using GRPO (Group Relative Policy Optimization) for the LFM-3 1.7B Hermes base model. The model develops an emergent cooperation reflex: agents coordinate their actions through a shared Kanban environment without any system prompts or hints. Designed for multi-agent systems, this solution helps autonomous workers tackle complex tasks together instead of falling into endless loops of hallucinations.
Key features
- Built-in cooperation reflex with no hints or role tags required.
- Reinforcement learning (RL) via GRPO with Schulman k3 regularization.
- Fixes base model exploration issues (eliminates token loops like AVAILABILITY).
- Precise usage of interaction tools via shared Kanban functions (kanban_comment and kanban_read_comments).
What you can do
- Run two independent agents to jointly solve a technical problem.
- Set up a multi-agent development environment integrated with a shared Kanban board.
- Test autonomous agent interaction without manual system prompts.
Example
import torch
from peft import PeftModel
from transformers import AutoTokenizer, AutoModelForCausalLM
base_name = "harness-hub/LFM3-1.7B-hermes"
adapter = "JamieBradfield/LFM3-1.7B-Cooperation-Reflex-LoRA"
tokenizer = AutoTokenizer.from_pretrained(base_name, trust_remote_code=True)
model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained(base_name), adapter)
Read more
DetailsBenchmarks: 100% deterministic autonomous cooperation compared to 0% for the base model.
Hardware: Trained on an AMD Radeon RX 7700 XT (12GB) with ROCm 7.2.
LoRA parameters: r = 16, alpha = 32 (q_proj, v_proj, k_proj, o_proj).
Algorithm: GRPO, learning rate 3e-5 with a KL penalty weight beta = 0.04.










Comments