Run this model with HF Jobs
Run facebook/nllb-moe-54b 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/facebook/nllb-moe-54b. 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/facebook/nllb-moe-54b 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 facebook/nllb-moe-54b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/nllb-moe-54b with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="facebook/nllb-moe-54b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-moe-54b") model = AutoModel.from_pretrained("facebook/nllb-moe-54b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse filesFiles changed (25)
- config.jsonAdded+50
- pytorch_model-00001-of-00023.binAdded+3
- pytorch_model-00002-of-00023.binAdded+3
- pytorch_model-00003-of-00023.binAdded+3
- pytorch_model-00004-of-00023.binAdded+3
- pytorch_model-00005-of-00023.binAdded+3
- pytorch_model-00006-of-00023.binAdded+3
- pytorch_model-00007-of-00023.binAdded+3
- pytorch_model-00008-of-00023.binAdded+3
- pytorch_model-00009-of-00023.binAdded+3
- pytorch_model-00010-of-00023.binAdded+3
- pytorch_model-00011-of-00023.binAdded+3
- pytorch_model-00012-of-00023.binAdded+3
- pytorch_model-00013-of-00023.binAdded+3
- pytorch_model-00014-of-00023.binAdded+3
- pytorch_model-00015-of-00023.binAdded+3
- pytorch_model-00016-of-00023.binAdded+3
- pytorch_model-00017-of-00023.binAdded+3
- pytorch_model-00018-of-00023.binAdded+3
- pytorch_model-00019-of-00023.binAdded+3
- pytorch_model-00020-of-00023.binAdded+3
- pytorch_model-00021-of-00023.binAdded+3
- pytorch_model-00022-of-00023.binAdded+3
- pytorch_model-00023-of-00023.binAdded+3
- pytorch_model.bin.index.jsonAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "_name_or_path": "/home/arthur_huggingface_co/fairseq/weights/checkpoints/hf-converted-moe-54b", "activation_dropout": 0.0, "activation_function": "relu", "architectures": [ "NllbMoeModel" ], "attention_dropout": 0.1, "batch_prioritized_routing": false, "bos_token_id": 0, "d_model": 2048, "decoder_attention_heads": 16, "decoder_ffn_dim": 8192, "decoder_layerdrop": 0, "decoder_layers": 24, "decoder_sparse_step": 4, "decoder_start_token_id": 2, "dropout": 0.1, "encoder_attention_heads": 16, "encoder_ffn_dim": 8192, "encoder_layerdrop": 0, "encoder_layers": 24, "encoder_sparse_step": 4, "eos_token_id": 2, "expert_capacity": 64, "init_std": 0.02, "is_encoder_decoder": true, "max_length": 200, "max_position_embeddings": 1024, "model_type": "nllb_moe", "moe_eval_capacity_token_fraction": 1.0, "moe_token_dropout": 0.2, "normalize_router_prob_before_dropping": false, "num_experts": 128, "num_hidden_layers": 24, "pad_token_id": 1, "router_aux_loss_coef": 0.001, "router_bias": false, "router_dtype": "float32", "router_ignore_padding_tokens": false, "router_jitter_noise": 0.01, "router_type": "tokens_masked", "router_z_loss_coef": 0.001, "scale_embedding": true, "second_expert_policy": "all", "torch_dtype": "float32", "transformers_version": "4.27.0.dev0", "use_cache": true, "vocab_size": 256206}123version https://git-lfs.github.com/spec/v1oid sha256:f9a01081279f5270e50b66114b359399d178d3f70c807068a42e728bc9b09ac6size 7881650579123version https://git-lfs.github.com/spec/v1oid sha256:c69aedd9d34c776f077979cf65d6d7c982a4598151646667bd45901532ff0cc8size 9935240893123version https://git-lfs.github.com/spec/v1oid sha256:e87b61b1b17440b137bc5e47105fd13cb3a7f21ee2dea186e492f707b9e8b794size 9936482623123version https://git-lfs.github.com/spec/v1oid sha256:c7f5b7b360f8bed14ebf5c3a7c0e01b568af5059b28e4ec306386272fe8eedf9size 9935240957123version https://git-lfs.github.com/spec/v1oid sha256:c904df100b9928282769b9360733783bbeabf5600a122016ca6c4791ae7652ffsize 9936482987123version https://git-lfs.github.com/spec/v1oid sha256:1958a842daacff1ce3e1da3bc05a6ec28f06741a14190b1df76c4ac71116bf98size 9936483287123version https://git-lfs.github.com/spec/v1oid sha256:4352bba732c871dc5356dbb4dcdc9de6cd81a1c4b7b3563913b56ebc648d12e0size 9935241149123version https://git-lfs.github.com/spec/v1oid sha256:57959c787bd138a2c69b337d577ca3a28cb377a2aa86d8bf1f2d8ecfe14a04f7size 9936482743123version https://git-lfs.github.com/spec/v1oid sha256:3c2b96fb7b580fc3933e3abe60946a5ff17fc970faf16f2b38373664159bf911size 9935241149123version https://git-lfs.github.com/spec/v1oid sha256:f31ddd24c833696b5600cc8b135dd62a2bcca0090dbc28062391e697aa604548size 9936482743123version https://git-lfs.github.com/spec/v1oid sha256:3e463aa0ea26d4d957a99c0e7e831eb663ae59746360a2f122a10989fe448153size 9935241213123version https://git-lfs.github.com/spec/v1oid sha256:eaab08a291e020ce948fbb5bd2b509eda3c2bbf865306ce5708dbf5b1afc1445size 9962851615123version https://git-lfs.github.com/spec/v1oid sha256:6620b4464ca0fd9b59f9bd43679ddea18992a9da01eaf13b9a6fed2b203f90efsize 9935240893123version https://git-lfs.github.com/spec/v1oid sha256:8889365f817ff4da86c77c199af36c3bf64695e1228bb5043f644717cb55bc72size 9936607643123version https://git-lfs.github.com/spec/v1oid sha256:9fef1ccdbf6c00eb37cd989d4aca529d3fbff16d30f6dec8e93773fd633ba886size 9935240957123version https://git-lfs.github.com/spec/v1oid sha256:0fc0245e4bd3e43ebd01d0c6d79b4faa7b88834cdcf2cbb09ebeb430bde2c8bfsize 9936608295123version https://git-lfs.github.com/spec/v1oid sha256:d33268527cfc42cfeb888820f8c75c0d48b76dee487b30ab5364a4d95974e786size 9936608727123version https://git-lfs.github.com/spec/v1oid sha256:3b1f46e82e2fbb655dc468fc37b0b1fbf4673e76295f9cf33c48dad828545acasize 9935241149123version https://git-lfs.github.com/spec/v1oid sha256:1c7a510a5910470e794fd30e3a91282971f5fbc91bf607ea816c4589e8666932size 9936608567123version https://git-lfs.github.com/spec/v1oid sha256:2f7a1ac1eaf762ba49cad65572bdc671597334df3ae5e9d553313dd6b80b083dsize 9935241149123version https://git-lfs.github.com/spec/v1oid sha256:afd3ce3b9671096c70c59cdace5eefd70b782ec42f951c44de9bf21d835197d7size 9936607787123version https://git-lfs.github.com/spec/v1oid sha256:eff18afcbd5879cd650d82ee5d2bd391654aaf6d7e8444792312ead42d5557ebsize 9935241149123version https://git-lfs.github.com/spec/v1oid sha256:808cebcbf4b6ae4cee04ab20f669a3e2cf4e95faafd3c5116385d961d372f596size 3557910629config.jsonAdded+50
pytorch_model-00001-of-00023.binAdded+3
pytorch_model-00002-of-00023.binAdded+3
pytorch_model-00003-of-00023.binAdded+3
pytorch_model-00004-of-00023.binAdded+3
pytorch_model-00005-of-00023.binAdded+3
pytorch_model-00006-of-00023.binAdded+3
pytorch_model-00007-of-00023.binAdded+3
pytorch_model-00008-of-00023.binAdded+3
pytorch_model-00009-of-00023.binAdded+3
pytorch_model-00010-of-00023.binAdded+3
pytorch_model-00011-of-00023.binAdded+3
pytorch_model-00012-of-00023.binAdded+3
pytorch_model-00013-of-00023.binAdded+3
pytorch_model-00014-of-00023.binAdded+3
pytorch_model-00015-of-00023.binAdded+3
pytorch_model-00016-of-00023.binAdded+3
pytorch_model-00017-of-00023.binAdded+3
pytorch_model-00018-of-00023.binAdded+3
pytorch_model-00019-of-00023.binAdded+3
pytorch_model-00020-of-00023.binAdded+3
pytorch_model-00021-of-00023.binAdded+3
pytorch_model-00022-of-00023.binAdded+3
pytorch_model-00023-of-00023.binAdded+3
pytorch_model.bin.index.jsonAdded