Instructions to use nielsr/bert-base-caption-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nielsr/bert-base-caption-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nielsr/bert-base-caption-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nielsr/bert-base-caption-classifier") model = AutoModelForSequenceClassification.from_pretrained("nielsr/bert-base-caption-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from nielsr/bert-base-caption-classifier: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/nielsr/bert-base-caption-classifier/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://nielsr/bert-base-caption-classifier/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/nielsr/bert-base-caption-classifier/resolve/main/pytorch_model.bin
438 MB
- Xet hash:
- e6cdef110d8b20532ccb995eb55c25a2eb239e355c8e8ed5621b7fc9090a39cc
- Size of remote file:
- 438 MB
- SHA256:
- 41b822fc017ac8fbdd9958338e63f33c8440334fe108df20af078ad43bb8c420
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.