Instructions to use airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa 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="airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa") model = AutoModelForQuestionAnswering.from_pretrained("airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa/resolve/6bc2da77b17a9e8b5c78f6f030dcbfee46f5804d/tokenizer_config.json
- Command line
-
hf download hf://airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa@6bc2da77b17a9e8b5c78f6f030dcbfee46f5804d/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/airesearch/wangchanberta-base-wiki-20210520-spm-finetune-qa/resolve/6bc2da77b17a9e8b5c78f6f030dcbfee46f5804d/tokenizer_config.json
456 Bytes
| {"bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "additional_special_tokens": ["<s>NOTUSED", "</s>NOTUSED", "▁"], "model_max_length": 400, "special_tokens_map_file": null, "name_or_path": "airesearchth/wangchanberta-base-wiki-20210520-spm"} |