Instructions to use hf-internal-testing/tiny-random-MegatronBertForPreTraining with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-MegatronBertForPreTraining with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-MegatronBertForPreTraining") model = AutoModelForPreTraining.from_pretrained("hf-internal-testing/tiny-random-MegatronBertForPreTraining", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
e580d0e | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:c3340f59bd2e75a9276fdb1d82c031d1035064ba8d49e9dc91a18ac7fda7a16b
size 931150
|