Instructions to use brokorli/brokorli_mrc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brokorli/brokorli_mrc with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="brokorli/brokorli_mrc")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("brokorli/brokorli_mrc") model = AutoModelForQuestionAnswering.from_pretrained("brokorli/brokorli_mrc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from brokorli/brokorli_mrc: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/brokorli/brokorli_mrc/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://brokorli/brokorli_mrc/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/brokorli/brokorli_mrc/resolve/main/tokenizer_config.json
593 Bytes
| {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "do_basic_tokenize": true, "never_split": null, "bos_token": "[CLS]", "eos_token": "[SEP]", "model_max_length": 512, "special_tokens_map_file": "C:\\Users\\chnam/.cache\\huggingface\\transformers\\9d0c87e44b00acfbfbae931b2e4068eb6311a0c3e71e23e5400bdf57cab4bfbf.70c17d6e4d492c8f24f5bb97ab56c7f272e947112c6faf9dd846da42ba13eb23", "name_or_path": "klue/roberta-base", "tokenizer_class": "BertTokenizer"} |