Instructions to use Aman6917/roberta-base-COVID with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aman6917/roberta-base-COVID 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="Aman6917/roberta-base-COVID")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Aman6917/roberta-base-COVID") model = AutoModelForQuestionAnswering.from_pretrained("Aman6917/roberta-base-COVID", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from Aman6917/roberta-base-COVID: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/Aman6917/roberta-base-COVID/resolve/main/processor_config.json
- Command line
-
hf download hf://Aman6917/roberta-base-COVID/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/Aman6917/roberta-base-COVID/resolve/main/processor_config.json
697 Bytes
| {"baskets": [], "data_dir": "data", "dev_filename": "dev-v2.0.json", "dev_split": 0, "doc_stride": 128, "max_answers": 6, "max_query_length": 64, "max_seq_len": 256, "multithreading_rust": true, "ph_output_type": "per_token_squad", "proxies": null, "sp_toks_end": 1, "sp_toks_mid": 2, "sp_toks_start": 1, "tasks": {"question_answering": {"label_list": ["start_token", "end_token"], "metric": "squad", "label_tensor_name": "question_answering_label_ids", "label_name": "question_answering_label", "label_column_name": null, "text_column_name": null, "task_type": null}}, "test_filename": null, "train_filename": "train-v2.0.json", "tokenizer": "RobertaTokenizerFast", "processor": "SquadProcessor"} |