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