Instructions to use peft-internal-testing/tiny-random-BertModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use peft-internal-testing/tiny-random-BertModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="peft-internal-testing/tiny-random-BertModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("peft-internal-testing/tiny-random-BertModel") model = AutoModel.from_pretrained("peft-internal-testing/tiny-random-BertModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
de9adfd | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:4e011b7f1af1d32895c6f1e5ea228e0aa05b826225c467b8de805cef0ad6b994
size 360804
|