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 quantize_config.json from lazycodepersona/m2m100_418m: direct link, hf CLI and curl.
- Browser
- Download file 3.37 kB
-
https://huggingface.co/lazycodepersona/m2m100_418m/resolve/main/quantize_config.json
- Command line
-
hf download hf://lazycodepersona/m2m100_418m/quantize_config.json
-
curl -L -o quantize_config.json https://huggingface.co/lazycodepersona/m2m100_418m/resolve/main/quantize_config.json
3.37 kB
| { | |
| "per_channel": true, | |
| "reduce_range": true, | |
| "per_model_config": { | |
| "decoder_model": { | |
| "op_types": [ | |
| "Reshape", | |
| "Equal", | |
| "Not", | |
| "Div", | |
| "Squeeze", | |
| "Shape", | |
| "Transpose", | |
| "Unsqueeze", | |
| "Softmax", | |
| "Cast", | |
| "Add", | |
| "Sub", | |
| "Sqrt", | |
| "ReduceMean", | |
| "MatMul", | |
| "Gather", | |
| "Concat", | |
| "Mul", | |
| "ConstantOfShape", | |
| "Relu", | |
| "Identity", | |
| "Expand", | |
| "CumSum", | |
| "Less", | |
| "Pow", | |
| "Slice", | |
| "Range", | |
| "Where", | |
| "Constant" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "encoder_model": { | |
| "op_types": [ | |
| "Reshape", | |
| "Equal", | |
| "Not", | |
| "Div", | |
| "Shape", | |
| "Transpose", | |
| "Unsqueeze", | |
| "Softmax", | |
| "Cast", | |
| "Add", | |
| "Sub", | |
| "Sqrt", | |
| "ReduceMean", | |
| "MatMul", | |
| "Gather", | |
| "Concat", | |
| "Mul", | |
| "ConstantOfShape", | |
| "Relu", | |
| "Identity", | |
| "Expand", | |
| "CumSum", | |
| "Pow", | |
| "Where", | |
| "Constant" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "decoder_model_merged": { | |
| "op_types": [ | |
| "Reshape", | |
| "Equal", | |
| "Not", | |
| "If", | |
| "Div", | |
| "Squeeze", | |
| "Shape", | |
| "Transpose", | |
| "Unsqueeze", | |
| "Softmax", | |
| "Cast", | |
| "Add", | |
| "Sub", | |
| "Sqrt", | |
| "ReduceMean", | |
| "MatMul", | |
| "Gather", | |
| "Concat", | |
| "Mul", | |
| "ConstantOfShape", | |
| "Relu", | |
| "Identity", | |
| "Expand", | |
| "CumSum", | |
| "Less", | |
| "Pow", | |
| "Slice", | |
| "Range", | |
| "Where", | |
| "Constant" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "decoder_with_past_model": { | |
| "op_types": [ | |
| "Reshape", | |
| "Equal", | |
| "Not", | |
| "Div", | |
| "Shape", | |
| "Transpose", | |
| "Unsqueeze", | |
| "Softmax", | |
| "Cast", | |
| "Add", | |
| "Sub", | |
| "Sqrt", | |
| "ReduceMean", | |
| "MatMul", | |
| "Gather", | |
| "Concat", | |
| "Mul", | |
| "ConstantOfShape", | |
| "Relu", | |
| "Identity", | |
| "CumSum", | |
| "Expand", | |
| "Pow", | |
| "Where", | |
| "Constant" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |