Instructions to use gaoweic/Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gaoweic/Model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("gaoweic/Model") model = AutoModelForSeq2SeqLM.from_pretrained("gaoweic/Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- tokenizer_config.json +4 -0
tokenizer_config.json
CHANGED
|
@@ -930,8 +930,12 @@
|
|
| 930 |
"clean_up_tokenization_spaces": true,
|
| 931 |
"eos_token": "</s>",
|
| 932 |
"extra_ids": 100,
|
|
|
|
| 933 |
"model_max_length": 512,
|
| 934 |
"pad_token": "<pad>",
|
|
|
|
| 935 |
"tokenizer_class": "T5Tokenizer",
|
|
|
|
|
|
|
| 936 |
"unk_token": "<unk>"
|
| 937 |
}
|
|
|
|
| 930 |
"clean_up_tokenization_spaces": true,
|
| 931 |
"eos_token": "</s>",
|
| 932 |
"extra_ids": 100,
|
| 933 |
+
"max_length": 265,
|
| 934 |
"model_max_length": 512,
|
| 935 |
"pad_token": "<pad>",
|
| 936 |
+
"stride": 0,
|
| 937 |
"tokenizer_class": "T5Tokenizer",
|
| 938 |
+
"truncation_side": "right",
|
| 939 |
+
"truncation_strategy": "longest_first",
|
| 940 |
"unk_token": "<unk>"
|
| 941 |
}
|