Instructions to use M-Chimiste/MiniLM-L-12-StackOverflow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use M-Chimiste/MiniLM-L-12-StackOverflow with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="M-Chimiste/MiniLM-L-12-StackOverflow")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("M-Chimiste/MiniLM-L-12-StackOverflow") model = AutoModelForMaskedLM.from_pretrained("M-Chimiste/MiniLM-L-12-StackOverflow", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 587 Bytes
570e6d2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {
"cls_token": "[CLS]",
"do_basic_tokenize": true,
"do_lower_case": true,
"mask_token": "[MASK]",
"model_max_length": 512,
"name_or_path": "cross-encoder/ms-marco-MiniLM-L-12-v2",
"never_split": null,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"special_tokens_map_file": "/home/c/.cache/huggingface/transformers/c564220d5d9da1ed8041a9bfa652d37dc347285f5825ad9fdf3b90f2774df756.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}
|