-
Notifications
You must be signed in to change notification settings - Fork 947
Expand file tree
/
Copy pathconfig_qwen3_evolution.yaml
More file actions
67 lines (55 loc) · 2.09 KB
/
config_qwen3_evolution.yaml
File metadata and controls
67 lines (55 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Configuration for evolving prompts with Qwen3-8B
# Optimized for GEPA benchmark comparison
# General settings
max_iterations: 100 # Can be overridden by command line
checkpoint_interval: 10
log_level: "INFO"
diff_based_evolution: false # Full rewrites for prompt evolution
max_code_length: 10000
language: "text"
# LLM Configuration for Qwen3-8B via OpenRouter
llm:
api_base: "https://openrouter.ai/api/v1"
models:
- name: "qwen/qwen3-8b"
weight: 1.0
temperature: 0.8 # Higher temperature for creative evolution
max_tokens: 4096
timeout: 60
retries: 3
# Prompt Configuration for evolution
prompt:
template_dir: "templates"
num_top_programs: 5 # Show top 5 prompts for inspiration
num_diverse_programs: 3 # Include 3 diverse prompts
include_artifacts: true
system_message: |
You are an expert at creating effective prompts for language models.
Your goal is to evolve prompts that maximize accuracy on the given task.
When creating new prompts:
1. Build on successful patterns from the examples
2. Be creative but maintain clarity
3. Consider different reasoning strategies (direct, step-by-step, few-shot)
4. Optimize for the specific task requirements
# Database Configuration for MAP-Elites
database:
population_size: 50 # Moderate population for balance
archive_size: 500
num_islands: 4 # Multiple islands for diversity
feature_dimensions: ["prompt_length", "reasoning_strategy"]
feature_bins: 10
elite_selection_ratio: 0.4 # 40% elites
exploration_ratio: 0.3 # 30% exploration
exploitation_ratio: 0.3 # 30% exploitation
migration_interval: 20
migration_rate: 0.1
# Evaluator Configuration
evaluator:
timeout: 1800 # 30 minutes timeout for complex evaluations
max_retries: 3
parallel_evaluations: 4 # Parallel evaluation for speed
cascade_evaluation: true # Use cascading to save API calls
cascade_thresholds: [0.9] # Only 2 stages, must achieve 90% in stage 1 to proceed
# Enable LLM feedback for better guidance
use_llm_feedback: true
llm_feedback_weight: 0.2 # 20% weight on qualitative feedback