Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

update requirement #60

Merged
merged 2 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions energon/engine/pipeline_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ def run_without_pp(self, key, inputs):
cur_key = self.key.val
sample, pipe_meta = self.pipe_msg_queue.top(cur_key)
self.key.addOne()
output = self.model(hidden_states=None,
input_ids=sample['input_ids'],
attention_mask=sample['attention_mask'],
seq_lens=inputs['seq_lens'] if 'seq_lens' in inputs else None)
with torch.inference_mode():
output = self.model(hidden_states=None,
input_ids=sample['input_ids'],
attention_mask=sample['attention_mask'],
seq_lens=inputs['seq_lens'] if 'seq_lens' in inputs else None)
self.lock.release()

return output, cur_key
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ uvicorn==0.14
typer
redis
scipy
energon
pytest
requests
click
Expand Down