Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 7, 2024
1 parent 2b3dfb1 commit 23de08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/models/llama/test_inference_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def test_foo(self):
model.to(device)

# Generate
generate_ids = model.generate(inputs.input_ids, max_length=30)
with torch.no_grad():
generate_ids = model.generate(inputs.input_ids, max_length=30)
output = tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]

expected_output = "Hey, are you conscious? Can you talk to me?\nI'm here, but I'm not sure I'm conscious."
Expand Down

0 comments on commit 23de08d

Please sign in to comment.