Instructions to use TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment") model = PeftModel.from_pretrained(base_model, "TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate") - Notebooks
- Google Colab
- Kaggle
CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate / tokenizer_config.json
Download tokenizer_config.json from TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/TransferGraph/CAMeL-Lab_bert-base-arabic-camelbert-da-sentiment-finetuned-lora-tweet_eval_hate/resolve/main/tokenizer_config.json
1.29 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "[CLS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "[SEP]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "4": { | |
| "content": "[MASK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "[CLS]", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": false, | |
| "full_tokenizer_file": null, | |
| "mask_token": "[MASK]", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "never_split": null, | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "strip_accents": null, | |
| "tokenize_chinese_chars": true, | |
| "tokenizer_class": "BertTokenizer", | |
| "unk_token": "[UNK]" | |
| } | |