TensorRT-LLM
TensorRT-LLM copied to clipboard
example program hung when running as --streaming with mpirun -n 4
running the example/run.py, when passing --streaming with mpirun -n 4, the program hung after the following code.
with torch.no_grad():
outputs = runner.generate(
batch_input_ids,
max_new_tokens=args.max_output_len,
max_attention_window_size=args.max_attention_window_size,
end_id=end_id,
pad_id=pad_id,
temperature=args.temperature,
top_k=args.top_k,
top_p=args.top_p,
num_beams=args.num_beams,
length_penalty=args.length_penalty,
repetition_penalty=args.repetition_penalty,
stop_words_list=stop_words_list,
bad_words_list=bad_words_list,
lora_uids=args.lora_task_uids,
prompt_table_path=args.prompt_table_path,
prompt_tasks=args.prompt_tasks,
streaming=args.streaming,
output_sequence_lengths=True,
return_dict=True)
torch.cuda.synchronize()
I tested with Llama7B and Mixtral 8b*7 , both act the same issue.
issue fixed at version 0.7.1