-
Notifications
You must be signed in to change notification settings - Fork 814
Testing T5Model #1848
Testing T5Model #1848
Conversation
…bbo13/text into feature/t5-integration-tests
Nayef211
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| def test_t5_base_encoder_model(self): | ||
| expected_asset_name = "t5.base.encoder.output.pt" | ||
| model_input = torch.tensor([[1, 2, 3, 4, 5, 6], [7, 8, 9, 0, 0, 0]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just something to note, when we implement the transform for the model, we probably want to update the test to pass in an input string to the _t5_model method. The helper function will be responsible for applying the transform on the input string to get the tensor that can be passed into the model (code pointer). The T5Bundle class will also need to be updated to store the model transform as a member variable (code pointer).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, will keep this in mind for the next task!
parmeet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Thanks for adding the integration test.
* test bundler api * upload reference results to verify model correctness * test for model correctness against reference results * Revert "test for model correctness against reference results" This reverts commit 9837f4a. * Revert "upload reference results to verify model correctness" This reverts commit bea35bc. * Revert "test bundler api" This reverts commit d8fe63e. * test bundler api * test bundler api * upload reference results to verify model correctness * test for model correctness against reference results * nit correction * test bundler when model is encoder-only * correcting typo * remove redundant test for encoder-only
Description
Add integration tests for both the T5 model (encoder-only and encoder-decoder)
Process
test/asset/t5.base.encoder.output.pt,test/asset/t5.base.outputbuild_model(),get_model(),config()) are working as expected, and returning the correct error messages when invalid input args are provided.Testing
pytest test/prototype/integration_tests/test_models.pypytest test/prototype/models/test_models.pyFollow-Up