Skip to content

Fix non-MM multiturn: Use legacy formatting #1247

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 2 commits into from
Oct 1, 2024
Merged

Conversation

Jack-Khuu
Copy link
Contributor

@Jack-Khuu Jack-Khuu commented Oct 1, 2024

Refactor introduced in 8278aa2 prevented non multimodal models (e.g. 3.1 8B) from doing multiturn in borswer/openai api.

This re-enables it via casing out MM (LLama3.2 11B). Support for 11B Multiturn and reunification of logic will be in followup PRS


Tested via Browser

python torchchat.py server llama3.2-11B 
python torchchat.py server llama3.2-1B 

Then test in browser with 1B (Text only - Saw it can do multiturn) and 11B (Multimodal - No multiturn as expected)

 streamlit run torchchat/usages/browser.py

@Jack-Khuu Jack-Khuu requested review from byjlw and vmpuri October 1, 2024 18:36
Copy link

pytorch-bot bot commented Oct 1, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1247

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

✅ No Failures

As of commit bd6b512 with merge base 24d00ea (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 Meta Open Source bot. label Oct 1, 2024
Copy link
Contributor

@vmpuri vmpuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Jack-Khuu Jack-Khuu merged commit edaa15c into main Oct 1, 2024
52 checks passed
@Jack-Khuu Jack-Khuu deleted the fix-non-mm-chat branch October 5, 2024 02:37
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 Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants