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

how to support qwen #63

Open
xyhuo7788 opened this issue Jun 11, 2024 · 1 comment
Open

how to support qwen #63

xyhuo7788 opened this issue Jun 11, 2024 · 1 comment

Comments

@xyhuo7788
Copy link

use qwen-1.5 model
command:

python run_pipeline.py
--prompt "Does this movie review contain a spoiler? answer Yes or No"
--task_description " Your task is to check if a movie review contains spoilers for the movie"

发生异常: KeyError
'samples'
File "/mnt/AutoPrompt-main/optimization_pipeline.py", line 189, in
samples_list = [element for sublist in samples_batches for element in sublist['samples']]
File "/mnt/AutoPrompt-main/optimization_pipeline.py", line 189, in generate_initial_samples
samples_list = [element for sublist in samples_batches for element in sublist['samples']]
File "/mnt/AutoPrompt-main/optimization_pipeline.py", line 228, in step
self.generate_initial_samples()
File "/mnt/AutoPrompt-main/optimization_pipeline.py", line 255, in run_pipeline
stop_criteria = self.step()
File "/mnt/AutoPrompt-main/run_generation_pipeline.py", line 51, in
best_prompt = ranker_pipeline.run_pipeline(opt.num_ranker_steps)
KeyError: 'samples'

when i debug the code ,config file are all default,there is no key "sample", just only have "num_samples","task_description",'instruction',"text"
is there anything wrong?

@Eladlev
Copy link
Owner

Eladlev commented Jun 11, 2024

Hi, did you replace

meta_prompts:
    folder: 'prompts/meta_prompts_classification'

with: prompts/meta_prompts_completion ?

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