Modalities / modalities

A framework for training multimodal foundation models.
MIT License
57 stars 5 forks source link

SFT: Implement loss masking #192

Closed lllAlexanderlll closed 1 month ago

lllAlexanderlll commented 1 month ago

What does this PR do?

This PR implements loss masking functionality by introducing a collator function wrapper and extends the apply_chat_template functionality.

General Changes

Breaking Changes

Checklist before submitting final PR