export BERT to MATLAB: Load pre-trained BERT models

This toolbox imports pre-trained BERT transformer models from Python and stores the models to be directly used in MATLAB.

Download
Download

You are now following this Submission

Cite As

Moritz Scherrmann (2026). export BERT to MATLAB: Load pre-trained BERT models (https://nl.mathworks.com/matlabcentral/fileexchange/125305-export-bert-to-matlab-load-pre-trained-bert-models), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Transformer Models

General Information

MATLAB Release Compatibility

  • Compatible with R2023b

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.3

- Update README

Download
2.0.2

- Update of input structure of BERT heads for downstream tasks. Now, it is enough to pass the pooler weights (in case of sequence classification) and the task specific weights to the respective functions.
- Update README

Download
1.0.4

This version updates all codes to the new transformer version of Matlab 2023b.

Download
1.0.3

Changed license in files

Download