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

Fix beam search in GPU clients #531

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Fix beam search in GPU clients #531

merged 2 commits into from
Oct 23, 2023

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented Oct 23, 2023

Fixes #503.

@borzunov borzunov changed the title Fix hypo_ids on cuda Fix beam search in GPU clients Oct 23, 2023
--mean_balance_check_period 10 \
--initial_peers $INITIAL_PEERS --throughput 1 &> server1.log &
export RUN_SERVER="python -m petals.cli.run_server $MODEL_NAME \
--device cpu --torch_dtype float32 --initial_peers $INITIAL_PEERS"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding --device cpu to behave properly on new MPS-enabled macOS workers.

@@ -114,21 +109,6 @@ def step(
else:
inputs = inputs[:, -n_input_tokens:] # No need to pass prefix further

if prompts is None or is_dummy(prompts):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already checked in the outer function

@borzunov borzunov merged commit 82a97d6 into main Oct 23, 2023
11 checks passed
@borzunov borzunov deleted the fix-hypo-ids branch October 23, 2023 16:13
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

Successfully merging this pull request may close these issues.

Issue with beam search decoding
1 participant