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 training_args.bin from nielsr/bert-base-caption-classifier: direct link, hf CLI and curl.
- Browser
- Download file 3.96 kB
-
https://huggingface.co/nielsr/bert-base-caption-classifier/resolve/refs%2Fpr%2F1/training_args.bin
- Command line
-
hf download hf://nielsr/bert-base-caption-classifier@refs/pr/1/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/nielsr/bert-base-caption-classifier/resolve/refs%2Fpr%2F1/training_args.bin
3.96 kB
- Xet hash:
- f66e19c28fda8d833fc6e6454096fc9be74c9f44b8558de789b399560504c769
- Size of remote file:
- 3.96 kB
- SHA256:
- cb60c08f405c54b08c810b497eb79f553b8cb65ebb52fda7de257fd45c7bb1d7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.