Run this model with HF Jobs
Run lazycodepersona/m2m100_418m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/lazycodepersona/m2m100_418m. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/lazycodepersona/m2m100_418m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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');
init
Browse filesFiles changed (9)
- README.mdAdded+8
- config.jsonAdded+36
- generation_config.jsonAdded+11
- quantize_config.jsonAdded+135
- sentencepiece.bpe.modelAdded+3
- special_tokens_map.jsonAdded+109
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+118
- vocab.jsonAdded
12345678---library_name: transformers.jspipeline_tag: translation---
https://huggingface.co/facebook/m2m100_418M with ONNX weights to be compatible with Transformers.js.
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).123456789101112131415161718192021222324252627282930313233343536{ "_name_or_path": "facebook/m2m100_418M", "activation_dropout": 0.0, "activation_function": "relu", "architectures": [ "M2M100ForConditionalGeneration" ], "attention_dropout": 0.1, "bos_token_id": 0, "d_model": 1024, "decoder_attention_heads": 16, "decoder_ffn_dim": 4096, "decoder_layerdrop": 0.05, "decoder_layers": 12, "decoder_start_token_id": 2, "dropout": 0.1, "early_stopping": true, "encoder_attention_heads": 16, "encoder_ffn_dim": 4096, "encoder_layerdrop": 0.05, "encoder_layers": 12, "eos_token_id": 2, "gradient_checkpointing": false, "init_std": 0.02, "is_encoder_decoder": true, "max_length": 200, "max_position_embeddings": 1024, "model_type": "m2m_100", "num_beams": 5, "num_hidden_layers": 12, "pad_token_id": 1, "scale_embedding": true, "transformers_version": "4.33.0.dev0", "use_cache": true, "vocab_size": 128112}1234567891011{ "_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"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135{ "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" } }}123version https://git-lfs.github.com/spec/v1oid sha256:d8f7c76ed2a5e0822be39f0a4f95a55eb19c78f4593ce609e2edbc2aea4d380asize 2423393123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109{ "additional_special_tokens": [ "__af__", "__am__", "__ar__", "__ast__", "__az__", "__ba__", "__be__", "__bg__", "__bn__", "__br__", "__bs__", "__ca__", "__ceb__", "__cs__", "__cy__", "__da__", "__de__", "__el__", "__en__", "__es__", "__et__", "__fa__", "__ff__", "__fi__", "__fr__", "__fy__", "__ga__", "__gd__", "__gl__", "__gu__", "__ha__", "__he__", "__hi__", "__hr__", "__ht__", "__hu__", "__hy__", "__id__", "__ig__", "__ilo__", "__is__", "__it__", "__ja__", "__jv__", "__ka__", "__kk__", "__km__", "__kn__", "__ko__", "__lb__", "__lg__", "__ln__", "__lo__", "__lt__", "__lv__", "__mg__", "__mk__", "__ml__", "__mn__", "__mr__", "__ms__", "__my__", "__ne__", "__nl__", "__no__", "__ns__", "__oc__", "__or__", "__pa__", "__pl__", "__ps__", "__pt__", "__ro__", "__ru__", "__sd__", "__si__", "__sk__", "__sl__", "__so__", "__sq__", "__sr__", "__ss__", "__su__", "__sv__", "__sw__", "__ta__", "__th__", "__tl__", "__tn__", "__tr__", "__uk__", "__ur__", "__uz__", "__vi__", "__wo__", "__xh__", "__yi__", "__yo__", "__zh__", "__zu__" ], "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118{ "additional_special_tokens": [ "__af__", "__am__", "__ar__", "__ast__", "__az__", "__ba__", "__be__", "__bg__", "__bn__", "__br__", "__bs__", "__ca__", "__ceb__", "__cs__", "__cy__", "__da__", "__de__", "__el__", "__en__", "__es__", "__et__", "__fa__", "__ff__", "__fi__", "__fr__", "__fy__", "__ga__", "__gd__", "__gl__", "__gu__", "__ha__", "__he__", "__hi__", "__hr__", "__ht__", "__hu__", "__hy__", "__id__", "__ig__", "__ilo__", "__is__", "__it__", "__ja__", "__jv__", "__ka__", "__kk__", "__km__", "__kn__", "__ko__", "__lb__", "__lg__", "__ln__", "__lo__", "__lt__", "__lv__", "__mg__", "__mk__", "__ml__", "__mn__", "__mr__", "__ms__", "__my__", "__ne__", "__nl__", "__no__", "__ns__", "__oc__", "__or__", "__pa__", "__pl__", "__ps__", "__pt__", "__ro__", "__ru__", "__sd__", "__si__", "__sk__", "__sl__", "__so__", "__sq__", "__sr__", "__ss__", "__su__", "__sv__", "__sw__", "__ta__", "__th__", "__tl__", "__tn__", "__tr__", "__uk__", "__ur__", "__uz__", "__vi__", "__wo__", "__xh__", "__yi__", "__yo__", "__zh__", "__zu__" ], "bos_token": "<s>", "clean_up_tokenization_spaces": true, "eos_token": "</s>", "language_codes": "m2m100", "model_max_length": 1024, "num_madeup_words": 8, "pad_token": "<pad>", "sep_token": "</s>", "sp_model_kwargs": {}, "src_lang": null, "tgt_lang": null, "tokenizer_class": "M2M100Tokenizer", "tokenizer_file": null, "unk_token": "<unk>"}README.mdAdded+8
config.jsonAdded+36
generation_config.jsonAdded+11
quantize_config.jsonAdded+135
sentencepiece.bpe.modelAdded+3
special_tokens_map.jsonAdded+109
tokenizer.jsonAdded
tokenizer_config.jsonAdded+118
vocab.jsonAdded