Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to generate idea: 'str' object has no attribute 'choices' #125

Open
wangjingchu opened this issue Sep 15, 2024 · 1 comment
Open

Comments

@wangjingchu
Copy link

I has been finish all the steps:
python data/enwik8/prepare.py
python data/shakespeare_char/prepare.py
python data/text8/prepare.py
cd templates/nanoGPT && python experiment.py --out_dir run_0 && python plot.py
cd templates/nanoGPT_lite && python experiment.py --out_dir run_0 && python plot.py
python launch_scientist.py --model "gpt-4o-2024-05-13" --experiment nanoGPT_lite --num-ideas 2
whever rewrite "seed_ideas.json","prompt.json","latex/template.tex",always show below:

Using GPUs: [0]
Using OpenAI API with model gpt-4o-2024-05-13.

Generating idea 1/2
Iteration 1/3
Failed to generate idea: 'str' object has no attribute 'choices'

Generating idea 2/2
Iteration 1/3
Failed to generate idea: 'str' object has no attribute 'choices'

Checking novelty of idea 0: adaptive_block_size
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'

Checking novelty of idea 1: layerwise_learning_rates
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
Error: 'str' object has no attribute 'choices'
All ideas evaluated.

@conglu1997
Copy link
Collaborator

I recommend commenting out the try except to see the true error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants