Our pick an experimental (advanced) mode at this model a continuously trained Qwen2.5-Coder-0.5B-Instruct fine-tuned using Gensyn RL-Swarm framework with GRPO (Group Relative Policy Optimization) and supported format GGUF (llama.cpp) for enhanced code generation capabilities. Note: Current training focuses on programming challenges with adaptive weighted sampling.
Agent ID:tall_tame_panther
Training Status: 🟢 LIVE - Model updates automatically every 5-10 minutes
Auto-Sync GGUF Pipeline Status: 🟢 LIVE - Commits update automatically every hour
Current Progress: Round 13,533+ / 100,000 (13.53%)
Framework Version: Gensyn RL-Swarm v0.7.0
Contract: SwarmCoordinator v0.4.2
Key Features
Real-time Training: Continuous learning with distributed RL across Gensyn swarm network
Adaptive System: Dynamic quality enhanced and dataset weighting for optimal learning
Multi-domain Coding: Trained on MBPP and CodeContests datasets with adaptive sampling
llama.cpp Compatible: Ready for edge deployment and local inference
BF16 Precision: Trained with bfloat16 for optimal performance
TGI Compatible: Supports Text Generation Inference for production deployment
Chat Format Support: Inherits Qwen2.5 chat template for conversational use
Training Data
The model is trained on a composite dataset with adaptive weighted sampling strategy:
Dataset
Initial Weight
Adaptive Range
Focus Area
MBPP
5
4-6
Basic Python programming problems with test cases
CodeContests
5
4-6
Competitive programming challenges
Total Dataset Size: Streaming datasets with infinite iteration Training Samples per Round: 2 Evaluation: Real-time via Swarm Coordination with Ollama-based evaluator else Judge
Adaptive Sampling Strategy
"When the solvers perform well, the proposer automatically increases the difficulty to keep challenging solvers to get better over time." - CodeZero-blog
diff
1The implementation features an adaptive sampling system that adjusts dataset weights based on performance
2The system monitors performance metrics every 5 rounds and adjusts the dataset weights to maintain optimal learning balance
3- Update dataset weights based on recent performance
4- Calculate recent average performance for each dataset
5- Adjust/use weighted sampling if adaptive, based on perform difference
6- Performance better on MBPP (Mostly Basic Python Problems)
7- Performance better on CodeContests
8- Update dataset weights every rounds & keep balanced
Adaptive Reward System
Quality Enhanced Implementation
"Rewards are derived from multiple lightweight checks, ranging from code validity and formatting to alignment with the problem statement, combined into a single interpretable score." - CodeZero-blog
diff
1The reward system includes a quality data enhanced mechanism that evaluates code structure and documentation
2- Calculate quality data enhanced for well-structured code
3- Documentation enhanced
4- Structure enhanced
5- Algorithmic efficiency (simple heuristic)
6- Scale with base reward to avoid inflation
Adaptive Threshold System
diff
1The system also includes an adaptive threshold mechanism that adjusts based on recent performance
2- Function adaptive threshold based on recent performance
3- Performance quality data is consistently high
Quick Performance Simulation
Reward Comparison
Based on our simulation with 1000 samples, the adaptive reward system shows significant improvement
System
MBPP Avg Reward
CodeContests Avg Reward
Overall Avg Reward
Improvement
Original
0.234
-0.156
0.039
-
Adaptive
0.312
-0.098
0.107
~174%
Training Progress
Based on the logs provided, the model shows consistent progress:
Metric data visualize train/loss by Weights & Biases (WanDB)
1from transformers import AutoModelForCausalLM, AutoTokenizer
2model = AutoModelForCausalLM.from_pretrained(3"0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther",
4torch_dtype="auto",
5device_map="auto"6)7tokenizer = AutoTokenizer.from_pretrained("0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther")8prompt ="Write a function to calculate the factorial of a number."9inputs = tokenizer(prompt, return_tensors="pt").to(model.device)10outputs = model.generate(**inputs, max_length=256, temperature=0.7, top_p=0.8)11print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Chat Format (Conversational)
bash
1from transformers import AutoModelForCausalLM, AutoTokenizer
2model = AutoModelForCausalLM.from_pretrained("0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther")3tokenizer = AutoTokenizer.from_pretrained("0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther")4messages =[5{"role":"system", "content":"You are an expert Python programmer."},
6{"role":"user", "content":"Write a function to check if a string is a palindrome."}7]8text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)9inputs = tokenizer(text, return_tensors="pt")10outputs = model.generate(**inputs, max_length=512)11print(tokenizer.decode(outputs[0]))
1# Download quantized model (recommended: Q4_K_M)2wget https://huggingface.co/0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther/resolve/main/Qwen2.5-Coder-0.5B-Q4_K_M.gguf
3# Run inference4./llama-cli -m Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-Q4_K_M.gguf \5 -p "Write a function to implement binary search in Python."\6 --temp 0.7 --top-p 0.8
Ollama
bash
1# Create Modelfile2cat> Modelfile <<'EOF'
3FROM ./0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther/Qwen2.5-Coder-0.5B-Q4_K_M.gguf
4PARAMETER temperature 0.7
5PARAMETER top_p 0.8
6PARAMETER top_k 20
7SYSTEM "You are an expert Python programmer who writes clean, documented code."
8EOF9# Create and run10ollama create qwen2.5-coder-swarm -f Modelfile
11ollama run qwen2.5-coder-swarm "Write a function to calculate the factorial of a number."
Available GGUF Quantization
Format
Size
Precision
Use Case
Download
Safetensors (BF16)
988 MB
BF16
Full precision training/fine-tuning
model.safetensors
GGUF F16
994 MB
FP16
High quality inference
Qwen2.5-Coder-0.5B-F16.gguf
GGUF Q6_K
506 MB
6-bit
High quality compression
Qwen2.5-Coder-0.5B-Q6_K.gguf
GGUF Q5_K_M
420 MB
5-bit
Balanced quality/size
Qwen2.5-Coder-0.5B-Q5_K_M.gguf
GGUF Q4_K_M
398 MB
4-bit
Recommended for production
Qwen2.5-Coder-0.5B-Q4_K_M.gguf
GGUF Q3_K_M
355 MB
3-bit
Smallest, fastest
Qwen2.5-Coder-0.5B-Q3_K_M.gguf
All GGUF formats are llama.cpp is compatible ready to use Inferences chat and auto-update be hourly.
Chat Format & Conversational
This model inherits Qwen2.5's chat template for structured conversations.
Tool Calling: Support function calling (if enabled in training)
Code Generation: Optimized for generating Python code
Note: While model supports chat format structurally, optimal conversational performance depends on whether training data included formatted dialogues. Current training focuses on programming challenges.
Problem Solving: Breaking down complex problems into manageable steps
Limitations
Specialized Domain: Optimized for programming challenges; may underperform on creative writing
Training in Progress: Weights update every 5-10 minutes; performance varies
Scale: 0.5B parameters - suitable for edge but not SOTA for complex programming
Experimental: Decentralized RL training; behavior less predictable than supervised models
Context: Best performance within 4K tokens (full 32K supported)
Update Schedule
Format
Frequency
Trigger
Safetensors (BF16)
Every 5-10 min
Automatic via RL-Swarm
GGUF (all formats)
Every 3 hour
Auto-conversion pipeline
Auto-Conversion Pipeline:
Monitors repo for new training commits
Downloads latest model.safetensors
Converts to F16 GGUF base
Quantizes to Q3_K_M, Q4_K_M, Q5_K_M, Q6_K
Standar formats
Check commit history for exact timestamps.
Architecture Components
Game Manager: Orchestrates training rounds and swarm coordination
Trainer: GRPO implementation for policy optimization
Data Manager: Dataset loading with adaptive weighted sampling
Reward Manager: Computes rewards via Ollama evaluator with quality enhanced
Coordinator: Blockchain integration for swarm state
P2P Backend: Hivemind DHT for model sharing
Training Process
1. Agent joins swarm via P2P network
2. Coordinator assigns round via smart contract
3. Agent samples data from adaptive weighted datasets
4. Model generates 2 responses
5. Ollama evaluator assesses and assigns rewards with quality enhanced
6. GRPO updates policy based on rewards
7. Updated model shared via DHT
8. Best checkpoint saved to HuggingFace
9. Repeat
Decentralization Benefits
Fault Tolerance: Multiple agents; no single point of failure
Diverse Exploration: Different agents explore different strategies
Collective Intelligence: Agents learn from each other
Transparent: All rounds verified on-chain
Software Stack
Framework: Gensyn RL-Swarm v0.7.0
Library: transformers v4.57.1
P2P: hivemind
Blockchain: Gensyn testnet
Config: Hydra + OmegaConf
Logging: WandB integration
Hardware Requirements
Training GPU:
GPU: NVIDIA 4090 24GB+ (BF16 training)
RAM: 16GB+
Cores: 10+
Storage: 50GB SSD
Network: High bandwidth for P2P
Training CPU Optimize:
CPU: INTEL or AMD
Cores: 10+
RAM: 16GB+
Storage: 50GB SSD
Network: High bandwidth for P2P
Inference:
Safetensors: 8GB VRAM (GPU) / 16GB RAM (CPU)
GGUF Q4_K_M: 2GB VRAM (GPU) / 4GB RAM (CPU)
GGUF Q3_K_M: 3GB RAM (CPU-only)
Training Progress Metrics
Metric
Value
Target
Completed Rounds
13,533+
100,000
Training Progress
13.53%
100%
Update Frequency
5-10 min
Continuous
Note: average@k: Average performance across k attempts, measuring consistency. pass@k: Probability of at least one correct solution in k attempts, measuring capability.Current metrics track training rounds completed in decentralized swarm.
Adaptive Reward Performance
Our adaptive reward system has shown approximately ~174% improvement in reward scores compared to the baseline system: