Instructions to use sunitha/Roberta_Custom_Squad_DS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sunitha/Roberta_Custom_Squad_DS 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="sunitha/Roberta_Custom_Squad_DS")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("sunitha/Roberta_Custom_Squad_DS") model = AutoModelForQuestionAnswering.from_pretrained("sunitha/Roberta_Custom_Squad_DS", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from sunitha/Roberta_Custom_Squad_DS: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/sunitha/Roberta_Custom_Squad_DS/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://sunitha/Roberta_Custom_Squad_DS/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/sunitha/Roberta_Custom_Squad_DS/resolve/main/tokenizer_config.json
1.37 kB
| {"errors": "replace", "bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "trim_offsets": true, "do_lower_case": false, "model_max_length": 512, "full_tokenizer_file": null, "special_tokens_map_file": "/root/.cache/huggingface/transformers/c9d2c178fac8d40234baa1833a3b1903d393729bf93ea34da247c07db24900d0.cb2244924ab24d706b02fd7fcedaea4531566537687a539ebb94db511fd122a0", "name_or_path": "deepset/roberta-base-squad2", "tokenizer_class": "RobertaTokenizer"} |