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

Missing --max_prompt_length argument running example_requests_client_alpaca_eval.py #51

Open
milank94 opened this issue Dec 2, 2024 · 1 comment
Assignees

Comments

@milank94
Copy link
Contributor

milank94 commented Dec 2, 2024

When running the sample script from README: python example_requests_client_alpaca_eval.py --stream True --n_samples 805 --num_full_iterations 1 --batch_size 32 hitting the following error:

usage: example_requests_client_alpaca_eval.py [-h] [--stream STREAM] [--vllm_model VLLM_MODEL] [--n_samples N_SAMPLES] [--num_full_iterations NUM_FULL_ITERATIONS] [--batch_size BATCH_SIZE] [--input_seq_len INPUT_SEQ_LEN]
                                              [--output_seq_len OUTPUT_SEQ_LEN] [--tokenizer_model TOKENIZER_MODEL] [--dataset DATASET] --max_prompt_length MAX_PROMPT_LENGTH [--distribution {fixed,uniform,normal}] [--template TEMPLATE]
                                              [--save_path SAVE_PATH]
example_requests_client_alpaca_eval.py: error: the following arguments are required: --max_prompt_length
@milank94
Copy link
Contributor Author

milank94 commented Dec 2, 2024

Tried to set a value, but then hit another error:

python example_requests_client_alpaca_eval.py --stream True --n_samples 805 --num_full_iterations 1 --batch_size 32 --max_prompt_length 2048
2024-12-02 06:29:50,867 - root - INFO - generate_prompts args=Namespace(batch_size=32, dataset='random', distribution='fixed', input_seq_len=-1, max_prompt_length=2048, n_samples=805, num_full_iterations=1, output_seq_len=2048, save_path=None, stream=True, template=None, tokenizer_model=None, vllm_model=True)
2024-12-02 06:29:50,867 - utils.prompt_generation - INFO - Generating random prompts...
Traceback (most recent call last):
  File "example_requests_client_alpaca_eval.py", line 253, in <module>
    prompts = generate_prompts(args)
  File "/home/user/app/utils/prompt_generation.py", line 267, in generate_prompts
    args.num_prompts,
AttributeError: 'Namespace' object has no attribute 'num_prompts'

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