Instructions to use hai2131/sailor2-seq2seq-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hai2131/sailor2-seq2seq-sft with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hai2131/sailor2-seq2seq-sft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from hai2131/sailor2-seq2seq-sft: direct link, hf CLI and curl.
- Browser
- Download file 215 Bytes
-
https://huggingface.co/hai2131/sailor2-seq2seq-sft/resolve/main/generation_config.json
- Command line
-
hf download hf://hai2131/sailor2-seq2seq-sft/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/hai2131/sailor2-seq2seq-sft/resolve/main/generation_config.json
215 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 151643, | |
| "decoder_start_token_id": 151643, | |
| "eos_token_id": [ | |
| 151643 | |
| ], | |
| "pad_token_id": 151644, | |
| "transformers_version": "4.57.6", | |
| "use_cache": false | |
| } | |