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

Add test for SqueezeBERT #159

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

Conversation

sgligorijevicTT
Copy link
Contributor

No description provided.

@sgligorijevicTT sgligorijevicTT changed the title Add test for squeezebert Add test for SqueezeBERT Jan 10, 2025
tests/jax/models/squeezebert/model_implementation.py Outdated Show resolved Hide resolved
tests/jax/models/squeezebert/model_implementation.py Outdated Show resolved Hide resolved
Comment on lines 48 to 52
return {
"variables": params,
"input_ids": self._get_input_activations(),
"train": False,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I see no variables param in

    def __call__(
        self,
        input_ids,
        attention_mask=None,
        token_type_ids=None,
        position_ids=None,
        *,
        train: bool,
    ):

Does it exist in apply?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a brief comment above explaining how this gets routed through apply to __call__.

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