Skip to content

Conversation

cmodi-meta
Copy link
Contributor

Summary:
The last prompt sent would be included in getConversationHistory() + adding it prior to sending it with the generate(). It looks like this got move during the rebasing.

To fix this we now call getConversationHistory() prior to adding the rawPrompt to a Message.

In regards to model response, I noticed that it did not really change the quality of the response. (tested with Llama 3.1)

Reviewed By: Riandy

Differential Revision: D62761977

Copy link

pytorch-bot bot commented Sep 23, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 793aaeb with merge base 0ec003b (image):
💚 Looks good so far! There are no failures yet. 💚

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

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

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

Summary:
Pull Request resolved: #5546

The last prompt sent would be included in `getConversationHistory()` + adding it prior to sending it with the generate(). It looks like this got move during the rebasing.

To fix this we now call `getConversationHistory()` prior to adding the rawPrompt to a Message.

In regards to model response, I noticed that it did not really change the quality of the response. (tested with Llama 3.1)

Reviewed By: Riandy

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3b63839.

@cmodi-meta
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.4 -c fixnewfeature

pytorchbot pushed a commit that referenced this pull request Sep 23, 2024
Summary:
Pull Request resolved: #5546

The last prompt sent would be included in `getConversationHistory()` + adding it prior to sending it with the generate(). It looks like this got move during the rebasing.

To fix this we now call `getConversationHistory()` prior to adding the rawPrompt to a Message.

In regards to model response, I noticed that it did not really change the quality of the response. (tested with Llama 3.1)

Reviewed By: Riandy

Differential Revision: D62761977

fbshipit-source-id: 2f975983965fe837147f1ffb8b5dcfa8f2061895
(cherry picked from commit 3b63839)
@pytorchbot
Copy link
Collaborator

Cherry picking #5546

The cherry pick PR is at #5568 and it is recommended to link a fixnewfeature cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

jackzhxng pushed a commit that referenced this pull request Sep 24, 2024
Fix duplicating latest prompt (#5546)

Summary:
Pull Request resolved: #5546

The last prompt sent would be included in `getConversationHistory()` + adding it prior to sending it with the generate(). It looks like this got move during the rebasing.

To fix this we now call `getConversationHistory()` prior to adding the rawPrompt to a Message.

In regards to model response, I noticed that it did not really change the quality of the response. (tested with Llama 3.1)

Reviewed By: Riandy

Differential Revision: D62761977

fbshipit-source-id: 2f975983965fe837147f1ffb8b5dcfa8f2061895
(cherry picked from commit 3b63839)

Co-authored-by: Chirag Modi <cmodi@meta.com>
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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants