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