Skip to content

Check inference input_id tokens length#4349

Merged
awan-10 merged 1 commit intomasterfrom
mrwyattii/add-input-length-check
Sep 19, 2023
Merged

Check inference input_id tokens length#4349
awan-10 merged 1 commit intomasterfrom
mrwyattii/add-input-length-check

Conversation

@mrwyattii
Copy link
Contributor

When the inputs to the inference engine have a length greater than max_tokens we will run into segfaults, garbage output, and generally bad behavior. Adding a check to avoid this.

@mrwyattii mrwyattii marked this pull request as ready for review September 18, 2023 16:47
@awan-10 awan-10 added this pull request to the merge queue Sep 19, 2023
Merged via the queue into master with commit 8533423 Sep 19, 2023
@mrwyattii mrwyattii deleted the mrwyattii/add-input-length-check branch September 19, 2023 22:15
CurryRice233 added a commit to CurryRice233/DeepSpeed that referenced this pull request Sep 28, 2023
* origin/master:
  Allow multiple inference engines in single script (deepspeedai#4384)
  adds triton flash attention2 kernel (deepspeedai#4337)
  Fix llama meta tensor loading in AutoTP and kernel injected inference (deepspeedai#3608)
  Fix min torch version (deepspeedai#4375)
  Fix multinode runner to properly append to PDSH_SSH_ARGS_APPEND (deepspeedai#4373)
  add the missing method (deepspeedai#4363)
  Openfold fix (deepspeedai#4368)
  deepspeed4science japanese blog (deepspeedai#4369)
  deepspeed4science chinese blog (deepspeedai#4366)
  Enable workflow dispatch on Torch 1.10 CI tests (deepspeedai#4361)
  Update conda env to have max pydantic version (deepspeedai#4362)
  add deepspeed4science blog link (deepspeedai#4364)
  added check to avoid undefined behavior when the input_id length is greater than max_tokens (deepspeedai#4349)
  Add the policy to run llama model from the official repo (deepspeedai#4313)
  fix deepspeed4science links (deepspeedai#4358)
  DeepSpeed4Science (deepspeedai#4357)
  Support InternLM (deepspeedai#4137)
  Pass base_dir to model files can be loaded for auto-tp/meta-tensor. (deepspeedai#4348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants