arcee-ai / DAM

30 stars 4 forks source link

added the ability to compute logits on the fly as well. #18

Closed shamanez closed 1 month ago

shamanez commented 1 month ago

Enhance compute_loss Method for Dynamic Logit Generation

This PR enhances the compute_loss method in the DAMTrainer class to support dynamic generation of logits on the fly. The key changes include:

These changes improve the flexibility of the compute_loss method, allowing it to adapt to different use cases and optimize performance based on the specific requirements of the training process.