Instructions to use Carick/albert-base-v2-wordnet_dataset_two-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Carick/albert-base-v2-wordnet_dataset_two-fine-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Carick/albert-base-v2-wordnet_dataset_two-fine-tuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Carick/albert-base-v2-wordnet_dataset_two-fine-tuned") model = AutoModelForSequenceClassification.from_pretrained("Carick/albert-base-v2-wordnet_dataset_two-fine-tuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Carick/albert-base-v2-wordnet_dataset_two-fine-tuned: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/Carick/albert-base-v2-wordnet_dataset_two-fine-tuned/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Carick/albert-base-v2-wordnet_dataset_two-fine-tuned/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Carick/albert-base-v2-wordnet_dataset_two-fine-tuned/resolve/main/tokenizer_config.json
1.22 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": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "[CLS]", | |
| "clean_up_tokenization_spaces": false, | |
| "cls_token": "[CLS]", | |
| "do_lower_case": true, | |
| "eos_token": "[SEP]", | |
| "keep_accents": false, | |
| "mask_token": "[MASK]", | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "remove_space": true, | |
| "sep_token": "[SEP]", | |
| "tokenizer_class": "AlbertTokenizer", | |
| "unk_token": "<unk>" | |
| } | |