Instructions to use lazycodepersona/m2m100_418m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use lazycodepersona/m2m100_418m with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('translation', 'lazycodepersona/m2m100_418m');
Download generation_config.json from lazycodepersona/m2m100_418m: direct link, hf CLI and curl.
- Browser
- Download file 233 Bytes
-
https://huggingface.co/lazycodepersona/m2m100_418m/resolve/main/generation_config.json
- Command line
-
hf download hf://lazycodepersona/m2m100_418m/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/lazycodepersona/m2m100_418m/resolve/main/generation_config.json
233 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 0, | |
| "decoder_start_token_id": 2, | |
| "early_stopping": true, | |
| "eos_token_id": 2, | |
| "max_length": 200, | |
| "num_beams": 5, | |
| "pad_token_id": 1, | |
| "transformers_version": "4.33.0.dev0" | |
| } | |