Instructions to use AntoineD/camembert_question_answering_tools_fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AntoineD/camembert_question_answering_tools_fr 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="AntoineD/camembert_question_answering_tools_fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("AntoineD/camembert_question_answering_tools_fr") model = AutoModelForQuestionAnswering.from_pretrained("AntoineD/camembert_question_answering_tools_fr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from AntoineD/camembert_question_answering_tools_fr: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/AntoineD/camembert_question_answering_tools_fr/resolve/0e62117e9d1d815cc64bf8ae52835e9606dcaecf/special_tokens_map.json
- Command line
-
hf download hf://AntoineD/camembert_question_answering_tools_fr@0e62117e9d1d815cc64bf8ae52835e9606dcaecf/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/AntoineD/camembert_question_answering_tools_fr/resolve/0e62117e9d1d815cc64bf8ae52835e9606dcaecf/special_tokens_map.json
241 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<s>NOTUSED", | |
| "</s>NOTUSED" | |
| ], | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "unk_token": "<unk>" | |
| } | |