Instructions to use Hoax0930/kftt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hoax0930/kftt with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="Hoax0930/kftt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Hoax0930/kftt") model = AutoModelForSeq2SeqLM.from_pretrained("Hoax0930/kftt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Hoax0930/kftt: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/Hoax0930/kftt/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Hoax0930/kftt/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Hoax0930/kftt/resolve/main/tokenizer_config.json
382 Bytes
| { | |
| "eos_token": "</s>", | |
| "model_max_length": 512, | |
| "name_or_path": "Helsinki-NLP/opus-tatoeba-en-ja", | |
| "pad_token": "<pad>", | |
| "return_tensors": "pt", | |
| "separate_vocabs": false, | |
| "source_lang": "eng", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": null, | |
| "target_lang": "jpn", | |
| "tokenizer_class": "MarianTokenizer", | |
| "tokenizer_file": null, | |
| "unk_token": "<unk>" | |
| } | |