Skip to content
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

Feat/coca #263

Open
wants to merge 167 commits into
base: main
Choose a base branch
from
Open

Feat/coca #263

wants to merge 167 commits into from

Conversation

sthoduka
Copy link
Collaborator

@sthoduka sthoduka commented Oct 11, 2024

What does this PR do?

This PR updates the CoCa model so that it can be trained jointly on text-aligned images, audio and video. The webdataset-based dataset and loader are also included.

General Changes

  • add AudioTransformer model
  • update the VisionTransformer model for video
  • add the MultimodalWebDataset dataset for loading audio-text, image-text and video-text in the webdataset format
  • add a multi-loss function for specifying a weighted-sum of different losses
  • update the CoCa model to include encoders for video and audio

Breaking Changes

  • the LLMDataLoader now contains a Pytorch Dataloader object as a member variable instead of inheriting from it.

Checklist before submitting final PR

  • My PR is minimal and addresses one issue in isolation
  • I have merged the latest version of the target branch into this feature branch
  • I have reviewed my own code w.r.t. correct implementation, missing type hints, proper documentation, etc.
  • I have run a sample config for model training
  • I have checked that all tests run through (python tests/tests.py) (some tests related to MFU calculation were failing, but I think those are unrelated to this PR)
  • I have updated the internal changelog (CHANGELOG_DEV.md)

sthoduka and others added 25 commits September 23, 2024 10:38
…aLoader, so that both LLMDataLoader and WebLoader inherit only from DataLoaderIF
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.

6 participants