Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / scripts / ml / nllb_parity_fixture.json
nllb_parity_fixture.json132 lines · 2.5 KiBRaw
| 1 | { |
| 2 | "model": "facebook/nllb-200-distilled-600M", |
| 3 | "revision": "f8d333a098d19b4fd9a8b18f94170487ad3f821d", |
| 4 | "decode": "greedy, num_beams=1, max_length=64, forced_bos_token_id=tgt_lang", |
| 5 | "pairs": [ |
| 6 | { |
| 7 | "input_text": "Hello, how are you?", |
| 8 | "src_flores": "eng_Latn", |
| 9 | "src_lang_id": 256047, |
| 10 | "tgt_flores": "fra_Latn", |
| 11 | "tgt_lang_id": 256057, |
| 12 | "encoder_input_ids": [ |
| 13 | 256047, |
| 14 | 94124, |
| 15 | 248079, |
| 16 | 11657, |
| 17 | 2442, |
| 18 | 1259, |
| 19 | 248130, |
| 20 | 2 |
| 21 | ], |
| 22 | "greedy_output_ids": [ |
| 23 | 2, |
| 24 | 256057, |
| 25 | 17994, |
| 26 | 141190, |
| 27 | 248079, |
| 28 | 25358, |
| 29 | 123732, |
| 30 | 248105, |
| 31 | 30213, |
| 32 | 385, |
| 33 | 2 |
| 34 | ], |
| 35 | "greedy_text": "Bonjour, comment allez-vous ?" |
| 36 | }, |
| 37 | { |
| 38 | "input_text": "The cat sat on the mat.", |
| 39 | "src_flores": "eng_Latn", |
| 40 | "src_lang_id": 256047, |
| 41 | "tgt_flores": "deu_Latn", |
| 42 | "tgt_lang_id": 256042, |
| 43 | "encoder_input_ids": [ |
| 44 | 256047, |
| 45 | 1617, |
| 46 | 7875, |
| 47 | 4843, |
| 48 | 281, |
| 49 | 349, |
| 50 | 601, |
| 51 | 248075, |
| 52 | 2 |
| 53 | ], |
| 54 | "greedy_output_ids": [ |
| 55 | 2, |
| 56 | 256042, |
| 57 | 2667, |
| 58 | 4939, |
| 59 | 372, |
| 60 | 127, |
| 61 | 249358, |
| 62 | 5137, |
| 63 | 760, |
| 64 | 3392, |
| 65 | 86, |
| 66 | 248075, |
| 67 | 2 |
| 68 | ], |
| 69 | "greedy_text": "Die Katze saß auf der Matte." |
| 70 | }, |
| 71 | { |
| 72 | "input_text": "Good morning, world!", |
| 73 | "src_flores": "eng_Latn", |
| 74 | "src_lang_id": 256047, |
| 75 | "tgt_flores": "spa_Latn", |
| 76 | "tgt_lang_id": 256161, |
| 77 | "encoder_input_ids": [ |
| 78 | 256047, |
| 79 | 24718, |
| 80 | 64246, |
| 81 | 248079, |
| 82 | 15697, |
| 83 | 248203, |
| 84 | 2 |
| 85 | ], |
| 86 | "greedy_output_ids": [ |
| 87 | 2, |
| 88 | 256161, |
| 89 | 8886, |
| 90 | 30502, |
| 91 | 2448, |
| 92 | 17176, |
| 93 | 248079, |
| 94 | 12656, |
| 95 | 248203, |
| 96 | 2 |
| 97 | ], |
| 98 | "greedy_text": "¡Bueno día, mundo!" |
| 99 | }, |
| 100 | { |
| 101 | "input_text": "Machine translation is useful.", |
| 102 | "src_flores": "eng_Latn", |
| 103 | "src_lang_id": 256047, |
| 104 | "tgt_flores": "zho_Hans", |
| 105 | "tgt_lang_id": 256200, |
| 106 | "encoder_input_ids": [ |
| 107 | 256047, |
| 108 | 138409, |
| 109 | 200356, |
| 110 | 248, |
| 111 | 170580, |
| 112 | 248075, |
| 113 | 2 |
| 114 | ], |
| 115 | "greedy_output_ids": [ |
| 116 | 2, |
| 117 | 256200, |
| 118 | 248059, |
| 119 | 250857, |
| 120 | 250444, |
| 121 | 252156, |
| 122 | 253668, |
| 123 | 249221, |
| 124 | 149375, |
| 125 | 248506, |
| 126 | 248075, |
| 127 | 2 |
| 128 | ], |
| 129 | "greedy_text": "机器翻译是有用的." |
| 130 | } |
| 131 | ] |
| 132 | } |