Skip to content
Open
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
8 changes: 5 additions & 3 deletions tensorrt_edgellm/models/default/modeling_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@
# ONNX export spec
# ---------------------------------------------------------------------------

_BATCH_SIZE = 1
_SEQ_LEN = 1
_PAST_LEN = 1
# PyTorch applies 0/1 specialization which breaks ONNX dynamic batching
# Using size = 2 avoids this issue
_BATCH_SIZE = 2
_SEQ_LEN = 2
_PAST_LEN = 2
_MAX_POS = 4096


Expand Down