Skip to content

Make seq_len param available in JNI layer generate() #4745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

Riandy
Copy link
Contributor

@Riandy Riandy commented Aug 16, 2024

Summary:

  • Previously, on JNI side, we fixed the seq_len to 128.
  • In this diff, we expose seq_len as a paramter in generate(), so devs can customize this as needed

Reviewed By: kirklandsign

Differential Revision: D61343892

Copy link

pytorch-bot bot commented Aug 16, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4745

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 2662099 with merge base 5c9a00a (image):

NEW FAILURE - The following job has failed:

  • Android / test-llama-app (bpe) / mobile-job (android) (gh)
    Could not assume role with user credentials: User: arn:aws:sts::308535385114:assumed-role/gh-ci-github-action-runners-runner-role/i-08fdb1b6f5ae29f32 is not authorized to perform: sts:TagSession on resource: arn:aws:iam::308535385114:role/gha_workflow_mobile_job

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 16, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D61343892

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D61343892

Riandy added a commit to Riandy/executorch that referenced this pull request Aug 16, 2024
Summary:
Pull Request resolved: pytorch#4745

- Previously, on JNI side, we fixed the seq_len to 128.
- In this diff, we expose seq_len as a paramter in generate(), so devs can customize this as needed

Reviewed By: kirklandsign

Differential Revision: D61343892
@cmodi-meta cmodi-meta self-requested a review August 16, 2024 05:12
Summary:
Pull Request resolved: pytorch#4745

- Previously, on JNI side, we fixed the seq_len to 128.
- In this diff, we expose seq_len as a paramter in generate(), so devs can customize this as needed

Reviewed By: kirklandsign

Differential Revision: D61343892
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D61343892

@facebook-github-bot facebook-github-bot merged commit 7b795d7 into pytorch:main Aug 16, 2024
40 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants