Skip to content

Speeding the tests for DistilBert #872

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

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

soma2000-lang
Copy link
Contributor

@soma2000-lang soma2000-lang commented Mar 18, 2023

Partially address #866
@mattdangerw @chenmoneygithub
Before 235.24
After 106.96s

@soma2000-lang soma2000-lang changed the title Speeding the tests Speeding the tests for DistilBert Mar 18, 2023
(self.batch_size, self.model.max_sequence_length), dtype="int32"
),
"token_ids": tf.ones((2, 5), dtype="int32"),
"segment_ids": tf.ones((2, 5), dtype="int32"),
Copy link
Member

Choose a reason for hiding this comment

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

distilbert does not take in "segment_ids":. Pleas make sure to run all the tests you are modifying, ideally locally before creating a PR.

pytest keras_nlp/models/distil_bert will run the basic tests, see our contributor guide for more details.

@mattdangerw mattdangerw self-assigned this Mar 22, 2023
(self.batch_size, self.model.max_sequence_length), dtype="int32"
),
"token_ids": tf.ones((2, 5), dtype="int32"),
"mask_positions": tf.ones((2, 5), dtype="int32"),
Copy link
Member

Choose a reason for hiding this comment

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

mask positions is not an input to the backbone I believe

@mattdangerw
Copy link
Member

/gcbrun

@mattdangerw mattdangerw merged commit f1464c5 into keras-team:master Apr 3, 2023
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.

2 participants