madatnlp commited on
Commit
762b164
1 Parent(s): 7b044e2

Upload NllbMoeForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/nllb-moe-54b",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "architectures": [
6
+ "NllbMoeForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "batch_prioritized_routing": false,
10
+ "bos_token_id": 0,
11
+ "d_model": 2048,
12
+ "decoder_attention_heads": 16,
13
+ "decoder_ffn_dim": 8192,
14
+ "decoder_layerdrop": 0,
15
+ "decoder_layers": 24,
16
+ "decoder_sparse_step": 4,
17
+ "decoder_start_token_id": 2,
18
+ "dropout": 0.1,
19
+ "encoder_attention_heads": 16,
20
+ "encoder_ffn_dim": 8192,
21
+ "encoder_layerdrop": 0,
22
+ "encoder_layers": 24,
23
+ "encoder_sparse_step": 4,
24
+ "eos_token_id": 2,
25
+ "expert_capacity": 64,
26
+ "init_std": 0.02,
27
+ "is_encoder_decoder": true,
28
+ "max_length": 200,
29
+ "max_position_embeddings": 1024,
30
+ "model_type": "nllb-moe",
31
+ "moe_eval_capacity_token_fraction": 1.0,
32
+ "moe_token_dropout": 0.2,
33
+ "normalize_router_prob_before_dropping": false,
34
+ "num_experts": 128,
35
+ "num_hidden_layers": 24,
36
+ "output_router_logits": false,
37
+ "pad_token_id": 1,
38
+ "quantization_config": {
39
+ "bnb_4bit_compute_dtype": "float32",
40
+ "bnb_4bit_quant_type": "fp4",
41
+ "bnb_4bit_use_double_quant": false,
42
+ "llm_int8_enable_fp32_cpu_offload": false,
43
+ "llm_int8_has_fp16_weight": false,
44
+ "llm_int8_skip_modules": null,
45
+ "llm_int8_threshold": 6.0,
46
+ "load_in_4bit": false,
47
+ "load_in_8bit": true
48
+ },
49
+ "router_aux_loss_coef": 0.001,
50
+ "router_bias": false,
51
+ "router_dtype": "float32",
52
+ "router_ignore_padding_tokens": false,
53
+ "router_jitter_noise": 0.01,
54
+ "router_type": "tokens_masked",
55
+ "router_z_loss_coef": 0.001,
56
+ "scale_embedding": true,
57
+ "second_expert_policy": "all",
58
+ "torch_dtype": "float16",
59
+ "transformers_version": "4.30.2",
60
+ "use_cache": true,
61
+ "vocab_size": 256206
62
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "eos_token_id": 2,
6
+ "max_new_tokens": 200,
7
+ "num_beams": 4,
8
+ "pad_token_id": 1,
9
+ "transformers_version": "4.30.2"
10
+ }
pytorch_model-00001-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4462da4697350947e92ec8ef997a4f2cf78ca6220c5b1a5a74cbe247a553d4e
3
+ size 9987344418
pytorch_model-00002-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92860ca02a7b3032f517161c319fcc9e07d5fc199cf669a64c84c060a880784a
3
+ size 9985422674
pytorch_model-00003-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3963caae7bf5a08f06194051ae8063535a16c7679887d2f27de0800a0cec6fb4
3
+ size 8960069066
pytorch_model-00004-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9554413c7455412f0b14804f7e2f2a5f6a75a09130897d494be2d1843cbbf85
3
+ size 9997120618
pytorch_model-00005-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d00e4d0e4e256de68bf3b74d57425c46f2ab3d63a0dfd32382a52f1e41a40bd3
3
+ size 9986212938
pytorch_model-00006-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:428ef4f1559b6ebd5cac14d9da3ae03018f5e77e12dc3f59a5fd7d8fc448cb92
3
+ size 8304235178
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff