Instructions to use zcahyj4/lab2_efficient with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zcahyj4/lab2_efficient with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("zcahyj4/lab2_efficient") model = AutoModelForSeq2SeqLM.from_pretrained("zcahyj4/lab2_efficient", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from zcahyj4/lab2_efficient: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/zcahyj4/lab2_efficient/resolve/main/generation_config.json
- Command line
-
hf download hf://zcahyj4/lab2_efficient/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/zcahyj4/lab2_efficient/resolve/main/generation_config.json
288 Bytes
| { | |
| "bad_words_ids": [ | |
| [ | |
| 59513 | |
| ] | |
| ], | |
| "bos_token_id": 0, | |
| "decoder_start_token_id": 59513, | |
| "eos_token_id": 0, | |
| "forced_eos_token_id": 0, | |
| "max_length": 512, | |
| "num_beams": 4, | |
| "pad_token_id": 59513, | |
| "renormalize_logits": true, | |
| "transformers_version": "4.45.2" | |
| } | |