Instructions to use hama3/trained_luke_large_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hama3/trained_luke_large_model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("hama3/trained_luke_large_model") model = AutoModelForMultipleChoice.from_pretrained("hama3/trained_luke_large_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hama3/trained_luke_large_model: direct link, hf CLI and curl.
- Browser
- Download file 2.21 kB
-
https://huggingface.co/hama3/trained_luke_large_model/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://hama3/trained_luke_large_model/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hama3/trained_luke_large_model/resolve/main/tokenizer_config.json
2.21 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32769": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32770": { | |
| "content": "<ent>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32771": { | |
| "content": "<ent2>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<ent>", | |
| "<ent2>", | |
| "<ent>", | |
| "<ent2>", | |
| "<ent>", | |
| "<ent2>" | |
| ], | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<s>", | |
| "entity_mask2_token": "[MASK2]", | |
| "entity_mask_token": "[MASK]", | |
| "entity_pad_token": "[PAD]", | |
| "entity_token_1": { | |
| "__type": "AddedToken", | |
| "content": "<ent>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| }, | |
| "entity_token_2": { | |
| "__type": "AddedToken", | |
| "content": "<ent2>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| }, | |
| "entity_unk_token": "[UNK]", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "max_entity_length": 32, | |
| "max_mention_length": 30, | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "sp_model_kwargs": {}, | |
| "task": null, | |
| "tokenizer_class": "MLukeTokenizer", | |
| "unk_token": "<unk>" | |
| } | |