Skip to content

Conversation

@emersodb
Copy link
Collaborator

PR Type

Feature

Short Description

Clickup Ticket(s): Link

This PR is Part 1 of several PRs aiming to simplify and decouple our implementations of FENDA and PerFCL. In this first part, I'm simply creating loss function classes that will be used by the different clients. These functions are stand-alone in this PR to be easier to review.

There are also some small documentation changes and an variable name change for the Ditto and MR-MTL clients.

Tests Added

Stand-along tests for each of the loss functions implemented, along with one for the pre-existing drift loss function.

emersodb added 2 commits May 30, 2024 10:14
…sociated tests. These will be used in future PRs to move PerFCL, FENDA, and other clients to use these losses.
@emersodb emersodb requested a review from Justinyangjy May 30, 2024 14:46
@emersodb emersodb changed the title Creating New Loss Function Classes Part 2: Creating New Loss Function Classes May 30, 2024
Copy link
Collaborator

@sanaAyrml sanaAyrml left a comment

Choose a reason for hiding this comment

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

Overall looks good, just proposed some minor changes.

… machine, Fixing a PICAI mypy error as well.
Base automatically changed from dbe/pulling_out_a_few_sana_updates to main June 3, 2024 19:22
@emersodb emersodb requested a review from sanaAyrml June 3, 2024 19:36
…nting improvements, adding a small test and fixing a test.
@emersodb emersodb requested a review from jewelltaylor June 5, 2024 14:13
negative_similarity = self.cos_sim(features, negative_pair)
logits = torch.cat((logits, negative_similarity.reshape(-1, 1)), dim=1)

# Compute the similarity of the batch of features with the collection of batches of negative pair features
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@jewelltaylor jewelltaylor left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, looks great!

@emersodb emersodb merged commit 374c6c5 into main Jun 5, 2024
@emersodb emersodb deleted the dbe/creating_loss_function_classes branch June 5, 2024 17:24
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.

4 participants