ToluClassics / mlx-transformers

MLX Transformers is a library that provides model implementation in MLX. It uses a similar model interface as HuggingFace Transformers and provides a way to load and run models in Apple Silicon devices.
Apache License 2.0
47 stars 4 forks source link

Implemented Bert sub-tasks #4

Closed Seun-Ajayi closed 4 months ago

Seun-Ajayi commented 4 months ago

Proposed changes

Implemented BertForTokenClassification and BertForQuestionAnswering and provided their corresponding tests. Also made adjustments to the TestMlxBertForSequenceClassification test class. And yes, all tests passed. Debruyne here again with the assist.

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply