Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@Gasoonjia
Copy link
Contributor

Torchtune updates flamingo model definition, as well as its inference. This PR aims to update torchchat pipeline to sync with torchtune

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 24, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 5ce5e9d with merge base 6d2ef4a (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 Sep 24, 2024
@Gasoonjia Gasoonjia requested a review from Jack-Khuu September 24, 2024 20:08
Comment on lines +92 to +94
set -x
$PIP_EXECUTABLE install git+https://github.com/pytorch/torchtune.git@18efc81dda1c537bb7c25058ff059b4623ccff58
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This works on Mac now right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah and mac tests passed

or self.model.config.model_type == ModelType.Flamingo
):
model.setup_caches(max_batch_size=1, dtype=self.dtype)
model.setup_caches(batch_size=1, dtype=self.dtype, encoder_max_seq_len=6404, decoder_max_seq_len=max_seq_length-1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Magic number 6404?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is the size that can hold single image input while one-gpu affordable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will leave a comment

@Jack-Khuu Jack-Khuu changed the title update flamingo model for tune Bump torchtune pin to a 9-24 commit; Update Flamingo Definition Sep 25, 2024
@Gasoonjia Gasoonjia merged commit 021fd32 into main Sep 25, 2024
51 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

4 participants