Instructions to use tobiaslee/bert-yfcc15m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tobiaslee/bert-yfcc15m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="tobiaslee/bert-yfcc15m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("tobiaslee/bert-yfcc15m") model = AutoModelForMaskedLM.from_pretrained("tobiaslee/bert-yfcc15m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from tobiaslee/bert-yfcc15m: direct link, hf CLI and curl.
- Browser
- Download file 849 Bytes
-
https://huggingface.co/tobiaslee/bert-yfcc15m/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://tobiaslee/bert-yfcc15m/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/tobiaslee/bert-yfcc15m/resolve/main/tokenizer_config.json
849 Bytes
| {"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|startoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": "<|endoftext|>", "add_prefix_space": false, "errors": "replace", "do_lower_case": true, "name_or_path": "openai/clip-vit-base-patch32", "model_max_length": 77, "special_tokens_map_file": "/mnt/cache/lilei/.cache/huggingface/transformers/18a566598f286c9139f88160c99f84eec492a26bd22738fa9cb44d5b7e0a5c76.cce1206abbad28826f000510f22f354e53e66a97f7c23745a7dfe27609cc07f5", "tokenizer_class": "CLIPTokenizer"} |