Skip to content

Commit

Permalink
Merge branch 'main' into angelayi/aoti_api_update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Khuu authored Jan 24, 2025
2 parents 06aee6c + f4ae60f commit 0fa1570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions torchchat/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,8 @@ def callback(x, *, done_generating=False):
max_seq_length=max_seq_length,
attention_backend=self.builder_args.attention_backend,
)
if generator_args.chat_mode:
start_pos += encoded.size(0)
for token_tensor, metrics in generator_func:
if token_tensor is not None:
start_pos += token_tensor.size(0)
Expand Down
2 changes: 1 addition & 1 deletion torchchat/utils/scripts/install_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ install_executorch_python_libs() {
echo "Building and installing python libraries"
if [ "${ENABLE_ET_PYBIND}" = false ]; then
echo "Not installing pybind"
bash ./install_requirements.sh
bash ./install_requirements.sh --pybind off
else
echo "Installing pybind"
bash ./install_requirements.sh --pybind xnnpack
Expand Down

0 comments on commit 0fa1570

Please sign in to comment.