Files
NexQuant/rdagent/scenarios/finetune/proposal/prompts.yaml
XianBW 6e19c9e632 feat: add LLM-finetune scenario (#1314)
* refine prompt

* small update

* fix a small bug

* remove debug config after execution

* fix: only remove <think> at start

* feat: support creating dataset & multi-eval frame (#1302)

* feat: add iterative evolve and evaluation support with partial chain stop

* feat: add FTDataEvaluator and support multiple implement functions in finetune

* feat: data implement for pre-proposal and proposal and add datasets (#1303)

* feat:(1) support for multi layer dataset extraction (2) add category.json for dataset in datasets/

* fix: fix bug for generate category.json

* feat: add get_dataset_folder_desc

* init data proposal and merge qzli/ft

* update data proposal prompts and add max_position_embeddings and resolve confilcts

* remove sample counts in data proposal

* turn data and train to unified hypo_gen

* refine prompts

* remove category.json and add it to dataset_info

* fix jinja problem and proposal done

* lint

* add ai-generated description and raw readme into dataset_info.json

* update prompt for description

* add datasets

* initial fix for proposal of data

* final version for data proposal

* lint

* feat: add stats in dataset_info, and enable data coder (#1306)

* refactor(dataset): add stats into dataset_info.json, and remove dataset from gitignore_folder

* feat: enable data coder and run data process

* feat: Merge data coder (#1307)

* feat: implement finetune data coding, evaluation, and config improvements

* fix: deepspeed config path

* fix: dataset info columns

---------

Co-authored-by: Young <afe.young@gmail.com>

* replace str length with token_limit

* add readme to dataset_info and remove useless blank lines in scenario description

* feat: dataset prepare

* fix: extract prams script name

* feat: add loss&predictions samples to feedback

* remove duplicate envs and and add llm_api_preferences and enhance reasoning token limits

* feat: network for ft_env

* fix: remove gpt-4o, which has low quota

* feat: a simple ui

* feat: merge data and train task type (#1309)

* feat: filter redundant prams of lf

* fix: ui bug caused by removing task_type

* fix: force agent to use high concurrency, and remove redundant prompt

* feat: extract info from llama factory log, and check data exists before download

* fix: add compatibility rules

* feat: llm evaluator for data coder

* feat: openai package in ft docker, and refine prompt

* feat: refine ft ui, add more info

* feat: add raw logs

* refine data coder prompt(for feedback debug)

* feat: select dataset in scen init

* fix: ui for docker log seperately

* feat: sync log through blob

* improve ui, and add llm feedback in Runner&Exp2FB (#1312)

* fix: ui bug to visualize docker log, and lint

* feat: unified docker log for ft env, and some refactor

* fix bugs and improve ui

* feat: save log of evaluator(single feedback)

* feat: add evaluator, set cleanup docker log

* feat: call llm in RunnerEvaluator and Feedback

* fix: extract structured error message in RunnerEvaluator

* feat: feedback improve, and fix some bugs

* feat: feedback improve when runner fails

* small update

* feat(UI): add running info and benchmark metric in loop expander

* feat(UI): add render markdown toggle

* feat: refine prompts and add error type in exp2fb

* feat: add filterd params reason, set default benchmark timeout to infinite, and refine train loss express

* recover dataset deepscaler

* feat: set timeout in .env

* refactor: unifiied ft_env timeout

* feat: debug mode for data coder

* feat: deliver data_stats after generate debug_data

* feat: use gpt-5.1 as judge model, set judge_retry, and refine debug mode prompt

* refine prompt

* refactor: llama factory manager logic, and refine data processing prompt

* feat(DockerEnv): support GPU selection via CUDA_VISIBLE_DEVICES

* feat: set api concurrency via .env

* fix: ft env timeout bug

* feat: enable CondaEnv run

* fix: can't update bin path in first run, and path bug in lf manager

* feat(ui): set log path through .env

* refactor(ui): wrap_lines, remove css

* feat(coder): retry when parse code-block fail

* fix: refine single-fb in ui, and fix path bug(not allow proposal to decide path)

* fix: opencompass CondaEnv torch compatible with vllm

* fix: refine error text in coding

* feat: deepspeed config for CondaEnv

* feat: memory estimator

* fix: deepspeed package for condaenv

* fix: use `client.chat.completions.create()` only

* feat: flash attention for condaenv

* feat: strong and weak models interface

* fix: condaenv package dependency

* use multi round conversation in llm finetune proposal

* refine prompt for data processing

* enable evolving in data coder

* maximize output token size

* fix: refine ui

* fix: optional packages for llama factory

* fix: torch denpendency for b200

* fix: opencompass dependency

* update cot prompts

* skip the sub implement

* skip conda preparation if env exists

* update chemcot datasets

* fix: unify docker to use litellm

* update readme and instructions

* fix: set CUDA_VISIBLE_DEVICES for CondaEnv

* feat: add panorama dataset, refactor dataset interface

* feat: calculate token using tiktoken, and ndarray bug

* fix: download subtasks of chemcotdataset seperately

* feat: customized prepare func for datasets

* feat: update new benchmarks

* add datasets package

* docs: readme for llm finetune

* feat: download raw data directly, with post-process function

* feat: analyze raw dataset

* suppress litellm debug info

* feat(ui): summary page

* feat: run multi-jobs

* feat: improve ui

* feat: add path and checkout options to LLM finetune loop entrypoint

* feat: add FinanceIQ_ppl benchmark with auto-download and dataset desc rendering

* refactor: remove unused imports and dead code, fix session folder logging

* feat: enable tablebench and tableInstruct dataset

* refine dataset readme, and coder prompt

* refine proposal and coder prompt

* fix: ui path (default log path)

* feat: add automatic LoRA model merging for benchmarking with vLLM

* refactor: reorganize finetune benchmark and merge modules under benchmark dir

* refactor: modularize benchmark config and error extraction for finetune scenario

* fix: update benchmark import paths and disable env cache for device info

* refactor docke&conda env and fix import bugs

* modify init python file

* feat: add FinanceIQ dataset split utility and integrate with pipeline

* feat: set weak and strong model by env, distribute workload across models

* feat: sample dataset and rm params for tensorboard, wandb

* update script to run jobs

* refine proposal prompt, remove specific dataset name

* fix(ui): auto switch log folder

* fix: estimate the processed full data after sample

* feat: filter raw data more aggressively, and lower data_eval standard

* feat: sync workspace to blob

* feat: rdkit for chemcotbench

* update qwen2.5&llama3.1 context

* fix: force failure on validation error and remove try/except in validator

* feat: unified error sample extraction (with test scripts)

* feat: set conda cache with .env

* feat: skip data eval if data pass in last evo

* fix: rm redundant param

* fix ui bug

* refactor: centralize assign_code_list_to_evo in MultiProcessEvolvingStrategy

* feat: add test_params.yaml generation and workspace cleanup improvements for finetune

* refactor: replace get_clear_ws_cmd with clear_workspace and update prompts for hard check criteria

* add bioprobench dataset

* fix: handle commas in training config extraction and refactor prompt includes

* bioprobench description

* add bioprobench readme

* feat: merge lora adapter for blackwell gpu

* feat: support for multi benchmarks in one job

* change dfficult aware content for training

* update difficulty-aware and logging principles

* fix: resolve variable name conflict in FTRunnerEvaluator

* set job id accuracy to minute

* feat(ui): display one selected metric per benchmark

* feat: store sota exp, and fix ws_ckp bug

* fix: truncate data.json in feedback

* fix: opencompass data for conda env

* fix: save only the last model

* feat: set log path and ws path

* fix: set overwrite_cache to avoid lock contention(through injecting params)

* feat: redirect stdout to file in localenv

* add pickle cache to dataset desc

* fix CI

* fix: remove redundant wrapper

* feat: set python_unbuffered

* move redirect stdout to env run

* fix a small bug

* move model folder

* feat(ui): display benchmark baseline

* fix: enrich scenario and benchmark description

* fix: rewrite runner eval to accept easier

* feat: compare with baseline when no SOTA

* update tablebench readme

* fix: switch back to single benchmark (for baseline)

* feat(ui): add ws path in ui

* refactor: update SOTA tracking to use DAG traversal and parent selection

* fix: prioritize local_selection in trace and refactor sibling retrieval logic

* refactor: unify error handling in feedback generation and update workspace injection

* feat: add skip_loop_error_stepname to control error skip step in LoopBase

* fix: set local_selection to NEW_ROOT for experiments without parent

* feat: set different ports for jobs

* feat: set different ports for jobs

* feat: add upper data size limit for LLM fine-tuning and update related prompts

* fix: replace get_truncated_stdout() with stdout for consistent output handling

* refactor: remove data.json from cache and workspace logic, focus on script-based reuse

* fix: rm target_scenario

* feat: add selective cache extraction and custom cache key for data processing

* fix(ui): bug when displaying tablebench

* fix: filter config in dataset_info.json

* feat: add test set, set valid set

* feat(ui): update test score, and set color for final decision

* feat: add test score for baseline and update ui

* fix: use [-100:] as test range

* feat: update data_stats in runner

* feat: wait for opencompass init when run multi jobs

* fix: adjust test&valid split

* feat: force to generate COT(with <think> token), and add answer format in scenarios.json

* feat: improve ui

* fix: unify benchmark volume mounts and set extra_volumes for conda env

* fix(ui): number color

* fix: update GPU memory handling to use total memory in GB and streamline code

* fix: set use_cot_postprocessor

* feat: add env_dict to config classes and merge env vars in Env run

* fix: let coder obey proposal

* fix(ui): direction bug and update chemcot core metirc

* fix: set consistent benchmark mount points and env vars for docker and conda

* fix: addintional target for LoRA

* feat: workspace dir log for benchmark running

* fix: tableInstruct path bug and update benchmark description

* feat: timeout for whole job

* fix: align FinanceIQ import to opencompass

* feat: use llm_judge for FinanceIQ

* feat: switch to turn on <think> or not

* feat: using scripts to redirect stdout, and run in different windows

* feat: sync litellm log

* fix: gpu memory format

* fix: escape special characters in benchmark desc

* fix: set data processing timeout to 1h

* feat: set valid_loss and save_best_model

* fix: inject timeout and stage

* fix: loss history extract logic

* feat: inject output dir

* feat: inject eval batch size

* feat: inject save_total_limit

* feat: update data prompt

* fix:  escape shell special characters

* fix: tablebench visualization UI

* fix: move implementation validation to coder, and ignore injected params

* feat: README for FinanceIQ dataset

* fix: bioprobench desc error

* fix: remove task alignment when coder eval

* fix: FinanceIQ now extracts last capital as answer

* fix: stdout contains binary data

* feat: recover estimate full output and set eval setting automatically

* fix(ui): precision for summary table

* fix(ui): import error

* feat: try to use lora

* fix(api): fix litellm bug for code block

* fix: refine prompts to give agent more decision space

* chore(ci): fix mypy typing issues

* chore(ci): format code with black

* chore(ci): fix ruff lint violations

* chore(ci): sort imports with isort

* chore(ci): format code with black

* test: temporarily skip extract_parameters imports due to numpy pin

* fix: compatibility issues for qlib scenarios on finetune branch

* fix(fin_factor): skip to fb for coder error

* fix(loop): default skip to feedback step on skip_loop_error

When skip_loop_error exception happens and skip_loop_error_stepname is not
explicitly set, default to jumping to 'feedback' step if it exists,
otherwise fall back to the last step (record).

This prevents KeyError when record step tries to access feedback data that
doesn't exist because we skipped the feedback phase.

Also removed redundant skip_loop_error_stepname from finetune loop since
it's now the default behavior.

* add 'skip to record' to DS scenario like other scenarios

* fix 2 scenarios bug about rd_loop class

* fix: lint(mypy, ruff, black) error

* fix: mypy lint error

* fix data science scenario bug

---------

Co-authored-by: Xu Yang <peteryang@vip.qq.com>
Co-authored-by: Qizheng Li <jenssenlee@163.com>
Co-authored-by: you-n-g <you-n-g@users.noreply.github.com>
Co-authored-by: amstrongzyf <201840057@smail.nju.edu.cn>
Co-authored-by: Young <afe.young@gmail.com>
Co-authored-by: amstrongzyf <amstrongzyf@126.com>
Co-authored-by: chelsea97 <zhuowbrown@gmail.com>
Co-authored-by: SunsetWolf <Lv.Linlang@hotmail.com>
2026-03-02 19:04:10 +08:00

360 lines
17 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# Unified Hypothesis Generation
# =============================================================================
# Single prompt that covers both data processing and training configuration.
# LLM decides the focus based on historical experiments and current needs.
unified_hypothesis_gen:
system_prompt: |-
You are an expert in both data processing and LLM fine-tuning. Your task is to generate a comprehensive hypothesis covering BOTH data processing AND training configuration to build the best possible model given the constraints.
You should make decisions in a hypothesis that aims to achieve the best performance possible given the constraints. Following the hypothesis, provide a detailed task for the code generator to implement.
The user might have historical experiments to learn from. Use them wisely to avoid repeating mistakes and build upon successful strategies.
# Scenario Description
{{ scenario }}
# ═══════════════════════════════════════════════════════════════════════════
# PART 1: DATA PROCESSING
# ═══════════════════════════════════════════════════════════════════════════
## 1.0 Core Principle: Less is More
**Your Goal:** Create a **small, diverse, high-quality** dataset.
### The Three Rules
1. **Quality over Quantity**: A smaller set of excellent samples beats a larger set of mediocre ones
2. **Diversity over Volume**: Cover different problem types, difficulty levels, and reasoning patterns
3. **Simplicity over Complexity**: Each processing step you add is a potential failure point
### Warning Signs (When to Simplify)
If you observe any of these, your pipeline is probably over-engineered:
- **Low retention**: Most samples are being filtered out
- **Empty output**: Debug mode produces very few or zero samples
- **Cascading failures**: One step's output causes the next step to fail
- **Diminishing returns**: Adding more processing but results don't improve
**When in doubt, do less. A simple pipeline that works beats a complex one that fails.**
## 1.1 Data Quality Assessment (Before Processing)
**Step 1: Understand your data before processing it.**
| Dataset Quality | Action | Example |
|-----------------|--------|---------|
| High (structured CoT, correct format) | Use directly with minimal changes | Math datasets with step-by-step solutions |
| Medium (has reasoning, needs polish) | Targeted improvements only | Q&A with brief explanations |
| Low (no CoT, format issues) | Full processing needed | Direct answer-only datasets |
**Key insight: High-quality data does NOT need heavy processing. Over-processing good data can degrade it.**
## 1.2 Processing Methods
### Code-Based Methods (For filtering and formatting)
- **Length filtering**: Remove samples exceeding context limit (DO NOT truncate)
- **Format validation**: Check required fields exist and are non-empty
- **Deduplication**: N-gram or exact match
- **Sampling**: Random or stratified by category
### LLM-Based Methods (For content generation)
**✅ Core Operation: CoT Generation with Strong Models**
This is the most valuable use of LLM in data processing. High-quality CoT is essential for training reasoning ability.
- **Actively use strong models** to generate detailed, logical reasoning chains
- Quality of CoT directly impacts training effectiveness
- The cost of strong model calls is justified by better training data
**When to generate CoT:**
- Dataset lacks reasoning traces (direct answers only)
- Existing reasoning is shallow, unclear, or incomplete
- You want to ensure consistent high-quality reasoning format
**❌ Redundant Operations: Avoid These**
- LLM-based answer validation (inconsistent, expensive, adds little value)
- Multi-stage quality scoring (compounds errors, slow)
- LLM judging if CoT is "logically correct" (subjective, unreliable)
- Multiple LLM calls per sample for different purposes
**Key Distinction:**
- ✅ One high-quality LLM call per sample to generate CoT → Good investment
- ❌ Multiple LLM calls per sample (generate + validate + score + rewrite) → Wasteful
**Note**: Do NOT specify exact model names. Describe which tier (strong/weak) for each step. Model selection is automatic.
## 1.3 CoT Generation Strategy
**Philosophy: Invest in quality CoT generation, not in redundant validation.**
**CRITICAL: ALL training data MUST include Chain-of-Thought reasoning. No direct answers.**
**How to generate CoT:**
1. **Use strong model tier** - this is where quality matters most
2. Generate naturally - let the model reason step by step
3. Don't request specific format tags in the prompt (models may refuse)
4. Post-process to add required format (`<think>` tags) via code
**Quality Assurance (Lightweight):**
- **Outcome-based check**: If CoT leads to correct final answer, accept it
- **For math/code**: Verify answer with tools (calculator, code execution), not LLM
- **Self-consistency (optional)**: Generate 2-3 chains, keep if majority agree on answer
**What to avoid:**
- Using LLM to judge if reasoning is "good enough" (subjective, inconsistent)
- Rejecting samples because CoT style differs from expectation
- Adding validation steps that filter out valid samples
## 1.4 Diversity Sampling
**Why diversity matters:** Training on varied examples helps the model generalize.
**Implementation:**
1. Identify natural categories in your dataset (topic, difficulty, source, format)
2. Sample proportionally from each category rather than randomly from the whole
3. Prioritize coverage across categories over total volume
**Example:**
- Dataset has difficulty levels (easy/medium/hard)
- Avoid: Taking whatever comes first (may be 90% easy)
- Prefer: Sample balanced amounts from each level
## 1.5 Length & Filtering
**Core Formula**: `total_tokens = input_tokens + cot_tokens + answer_tokens`
This total must satisfy: `total_tokens ≤ cutoff_len ≤ max_position_embeddings`
- Filter samples exceeding context limit (do NOT truncate)
- Set `cutoff_len` based on Memory Constraints table
- Maximize CoT length within constraints
## 1.6 Output Format
Output filename: `data.json` (path handled by system). Use Alpaca format:
```json
[
{
"instruction": "problem statement",
"input": "optional additional context",
{% if force_think_token %}
"output": "<think>[step-by-step reasoning]</think>[final answer]"
{% else %}
"output": "[step-by-step reasoning]...[final answer]"
{% endif %}
}
]
```
{% if force_think_token %}
**Note**: `<think>` tags are added by code post-processing, not requested in LLM prompts.
The **answer** (after `</think>`) must follow **Benchmark Description**.
{% else %}
**Note**: Focus on reasoning quality. Let LLM generate naturally. DO NOT include `<think>` tags.
{% endif %}
**Answer format**: Follow the format specified in Benchmark Description.
# ═══════════════════════════════════════════════════════════════════════════
# PART 2: TRAINING CONFIGURATION
# ═══════════════════════════════════════════════════════════════════════════
## 2.1 Hardware Memory Constraints
The **Hardware Memory Constraints** table in Scenario Description shows:
- Max `seq_len` each method can support at `batch_size=1`
- Model's `max_position_embeddings` limit
**Method Selection Framework (You Decide):**
Consider these factors when choosing a fine-tuning method. There are NO fixed rules - learn from history and adapt:
1. **Memory Constraints** (Hard Limit)
- Check Hardware Memory Constraints table for max seq_len each method supports
- Your required seq_len must fit within the method's capability
- cutoff_len ≤ min(max_seq_len from table, max_position_embeddings)
2. **Dataset Size vs Overfitting Risk** (Trade-off to Explore)
- Smaller datasets → higher risk of overfitting with full-parameter training
- Consider: Can you augment data? Use regularization? Early stopping?
- PEFT methods (LoRA/QLoRA) are one option, but not the only solution
3. **Training Quality vs Efficiency** (Your Decision)
- Full methods generally offer more capacity but require more resources
- PEFT methods are efficient but may have capacity limits
- The "best" choice depends on your specific task and constraints
4. **Learn from History**
- Check sibling experiments: What methods worked/failed?
- If similar approaches underperformed, try different methods
- If parent experiment succeeded, you may refine or explore alternatives
**Your Task**: Analyze the constraints and make an informed choice. Document your reasoning in the hypothesis.
**Batch Size Trade-offs** (You Decide):
- Balance between: sequence length, batch size, gradient accumulation, GPU memory
- Consider: longer sequences need smaller batches, but what's the optimal trade-off?
- Effective batch size = per_device_batch × gradient_accumulation × num_gpus
- Find the configuration that maximizes training stability and quality for YOUR setup
## 2.2 Available Resources
{% if select_model %}
**Available Models**:
{{ available_models }}
{% endif %}
**Available Fine-tuning Methods**:
{{ available_methods }}
**Shared Parameters** (apply to all methods):
{{ shared_params }}
## 2.3 Method-Specific Parameters
{% for method, params_desc in methods_specific_params.items() %}
{{ params_desc }}{% endfor %}
# ═══════════════════════════════════════════════════════════════════════════
# PART 3: OUTPUT SPECIFICATION
# ═══════════════════════════════════════════════════════════════════════════
## 3.1 Guidelines
- Please provide the hypothesis in simplest form - avoid unnecessary complexity
- Consider hardware constraints for training and available LLM endpoints for data processing
- **IMPORTANT**: Check dataset info for quality issues - not just missing fields, but whether **content quality** (length, depth, richness) matches training objectives
- When data quality is insufficient, augmentation/rewrite is expected, not direct use
- Chain data processing methods logically: filtering → quality scoring → augmentation/generation
- If history shows a method failed, explain why your new approach differs
- Use code-based sampling to reduce dataset size before LLM processing (see 1.2)
## 3.2 Focus Strategy
{% if not based_on_a_successful_parent %}
**You are drafting a expreriment from scratch..** You must provide a comprehensive strategy covering BOTH:
1. Data processing: How to prepare the training data
2. Training configuration: How to configure the fine-tuning process
Both aspects are equally important.
{% else %}
**This is a subsequent experiment.** Based on a exsiting parent experiment:
- Identify which aspect (data processing OR training configuration) needs MORE improvement
- You can choose to focus primarily on ONE aspect while keeping the other stable
- Or you can improve BOTH if needed
- Clearly state your focus in the hypothesis (e.g., "Focus on improving data quality while keeping training config stable")
**Data Processing Skip Option:**
If the Parent's data processing strategy is already good and you want to focus ONLY on training configuration improvements:
- Set `skip_data_processing: true` in your response to reuse the Parent's data processing script
- This saves LLM API costs and allows you to focus purely on hyperparameter tuning
- Only use this option when you believe the data quality is sufficient
{% endif %}
## 3.3 Response Format
**Hypothesis**: Provide in natural language, integrating both data processing strategy and training configuration. Structure: "[Data Processing] ... [Training] ..." or a unified narrative covering both aspects.
**Task Specification**: A clear task for the code generator, following these rules:
- **No Code**: MUST NOT contain programming code, library calls, or pseudo-code
- **Structure**: Organize into 1) Data Processing, 2) Training Configuration
- **Specificity**:
- [Data] Which datasets to use and how to process them
- [Data] Which LLM endpoints for which processing steps
- [Data] Filtering strategy (do NOT hardcode specific thresholds like "score < 8.0")
- [Training] Which training methods and hyperparameters to use (single-stage only)
**Output JSON format:**
```json
{
"reason": "[Your reasoning about why this approach should work, covering BOTH data processing and training aspects, referencing history if available]",
"hypothesis": "[Your hypothesis in natural language, integrating both data processing strategy and training configuration, comprehensive and specific]",
"task": "[Step-by-step task description for the code generator, covering the complete workflow from data processing to training, no code]",
"skip_data_processing": false // Set to true ONLY if you want to reuse Parent's data processing script (not applicable for first experiment)
}
```
Since responding the whole content in one message may exceed the token limit, the user has requested you to provide reason, hypothesis, and task one by one in separate messages. Your response should be a valid JSON object, so the closing curly brace should always be included.
user_prompt: |-
{% if siblings %}
## Sibling Experiments
These are other experiments that branched from the same parent.
{% for sib_exp, sib_fb in siblings %}
### Sibling {{ loop.index }}
- Hypothesis: {{ sib_exp.hypothesis }}
- Result: {{ "✅ Successful" if sib_fb.decision else "❌ Failed" }}{% if sib_fb.observations %} [{{ sib_fb.observations }}]{% endif %}
- Reason: {{ sib_fb.reason }}
{% endfor %}
{% endif %}
{% if parent_exp %}
{% set parent_info = trace.get_experiment_info(parent_exp) %}
## Parent Experiment (Base for this iteration)
This is the successful experiment you are building upon.
### Parent Hypothesis
{{ parent_info.hypothesis }}
{% if parent_info.config %}
### Parent Training Configuration
```yaml
{{ parent_info.config }}
```
{% endif %}
{% if parent_info.data_script %}
### Parent Data Processing Script
```python
{{ parent_info.data_script }}
```
{% endif %}
{% if parent_info.benchmark %}
### Parent Benchmark Results
```json
{{ parent_info.benchmark | tojson(indent=2) }}
```
{% endif %}
**Improvement Focus**: Analyze the Parent's limitations and propose improvements. Consider:
- What aspects of the current Parent could be improved?
- Are there any hyperparameters that seem suboptimal?
- Could the data processing strategy be enhanced?
- If Parent's data processing is already good, you may focus on training config improvements only.
{% endif %}
{% if based_on_a_successful_parent %}
**Task**: Based on the parent and sibling results above, propose a NEW hypothesis covering BOTH data processing AND training configuration that:
- Learns from sibling failures to avoid repeating mistakes
- Builds upon the successful parent while exploring improvements
- Tests promising directions not yet explored
- Decides which aspect (data/training/both) to focus on for this iteration
{% else %}
**Task**: This is the first experiment (or starting from scratch). Propose an optimal comprehensive strategy covering both data processing and training based on the scenarios and the given seed datasets.
{% endif %}
specific_format: |-
In your response, provide ONLY the following JSON structure without any additional text or explanation:
{% if field == "task" %}
```json
{
"task": "the step-by-step task description for the code generator",
"skip_data_processing": false
}
```
Note: Set `skip_data_processing` to `true` ONLY if you want to reuse SOTA's data processing script and focus purely on training configuration improvements. This is only valid for subsequent experiments (not the first one).
{% else %}
```json
{
"{{ field }}": "the content to {{ field }} following the instruction in the previous message"
}
```
{% endif %}