Instructions to use Maxscha/bert-test-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maxscha/bert-test-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Maxscha/bert-test-base", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Maxscha/bert-test-base", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("Maxscha/bert-test-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from Maxscha/bert-test-base: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/Maxscha/bert-test-base/resolve/b3b1d378b284053c1e44a619f7337ebf92851ab7/added_tokens.json
- Command line
-
hf download hf://Maxscha/bert-test-base@b3b1d378b284053c1e44a619f7337ebf92851ab7/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/Maxscha/bert-test-base/resolve/b3b1d378b284053c1e44a619f7337ebf92851ab7/added_tokens.json
330 Bytes
| { | |
| "<CLS>": 32011, | |
| "<MASK>": 32012, | |
| "<|assistant|>": 32001, | |
| "<|endoftext|>": 32000, | |
| "<|end|>": 32007, | |
| "<|placeholder1|>": 32002, | |
| "<|placeholder2|>": 32003, | |
| "<|placeholder3|>": 32004, | |
| "<|placeholder4|>": 32005, | |
| "<|placeholder5|>": 32008, | |
| "<|placeholder6|>": 32009, | |
| "<|system|>": 32006, | |
| "<|user|>": 32010 | |
| } | |