Skip to content

Commit

Permalink
Fix ip_address bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lr-tsinghua11 authored Oct 31, 2023
1 parent 42c9dd2 commit e33a45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval_general/eval_gsm8k_tgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def clean_answer(text):

def generate_sample(prompt, ip, post_from, post_to):
ip_address = f"http://{ip}:"
controller_addr_pool = [ip + str(i) for i in range(post_from, post_to + 1)]
controller_addr_pool = [ip_address + str(i) for i in range(post_from, post_to + 1)]

def request_answer(max_new_tokens):
data = {
Expand Down

0 comments on commit e33a45d

Please sign in to comment.