Error in using --load-code

Author: vinhqdangCreated Apr 30, 2025Updated Aug 2, 2026

Hello everyone,

How to use --load-code parameter in the following command in main page

bash
python launch_scientist_bfts.py \
 --load_ideas "ai_scientist/ideas/my_research_topic.json" \
 --load_code \
 --add_dataset_ref \
 --model_writeup o1-preview-2024-09-12 \
 --model_citation gpt-4o-2024-11-20 \
 --model_review gpt-4o-2024-11-20 \
 --model_agg_plots o3-mini-2025-01-31 \
 --num_cite_rounds 20

If I run the above command, the --load-code parameter will lead to the error that a my_research_topic.py does not exist and cannot be processed. But how could I create this file?

Thanks

Source: SakanaAI/AI-Scientist-v2