Skip to content

Commit

Permalink
Merge pull request Stability-AI#10 from Taichi-Ibi/llm-leaderboard_v3
Browse files Browse the repository at this point in the history
change 'torch.as_tensor(input_ids).cuda()' to kwargs
  • Loading branch information
olachinkei authored Feb 11, 2024
2 parents 201cafb + ae33e4f commit c789bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/llm_judge/gen_model_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_model_answers(
# some models may error out when generating long outputs
try:
output_ids = model.generate(
torch.as_tensor(input_ids).cuda(),
input_ids=torch.as_tensor(input_ids).cuda(),
do_sample=do_sample,
temperature=temperature,
max_new_tokens=max_new_token,
Expand Down

0 comments on commit c789bd5

Please sign in to comment.