Views
No views yet
1+-----------------------------------------+-----------------+
2| File | Overall Score |
3+=========================================+=================+
4| Capybara_de_wmt21_scored.jsonl | 0.848375 |
5+-----------------------------------------+-----------------+
6| Capybara_de_GPT4_scored.jsonl | 0.846241 |
7+-----------------------------------------+-----------------+
8| Capybara_de_Claude-3-Opus_scored.jsonl | 0.84568 |
9+-----------------------------------------+-----------------+
10| Capybara_de_deepl_scored.jsonl | 0.843937 |
11+-----------------------------------------+-----------------+
12| Capybara_de_GPT3.5_scored.jsonl | 0.843922 |
13+-----------------------------------------+-----------------+
14| Capybara_de_occiglot_scored.jsonl | 0.83135 |
15+-----------------------------------------+-----------------+
16| Capybara_de_discolm_scored.jsonl | 0.830676 |
17+-----------------------------------------+-----------------+
18| Capybara_de_nbbl_scored.jsonl | 0.829132 |
19+-----------------------------------------+-----------------+
20| Capybara_de_wmt19_scored.jsonl | 0.824847 |
21+-----------------------------------------+-----------------+
22| Capybara_de_t5madlad_scored.jsonl | 0.818146 |
23+-----------------------------------------+-----------------+
24| Capybara_de_mixtral_scored.jsonl | 0.807397 |
25+-----------------------------------------+-----------------+
26| Capybara_de_TowerInstruct2_scored.jsonl | 0.788971 |
27+-----------------------------------------+-----------------+ct2-transformers-converter --model cstr/wmt21-dense-24-wide-en-x-st --quantization int8_float32 --output_dir wmt21ct2_int81import ctranslate2
2import transformers
3
4translator = ctranslate2.Translator("wmt21ct2_int8")
5tokenizer = transformers.AutoTokenizer.from_pretrained("facebook/wmt21-dense-24-wide-en-x")
6tokenizer.src_lang = "en"
7
8source = tokenizer.convert_ids_to_tokens(tokenizer.encode("Choose the correct verb form to complete the sentence: The birds ____________ (to fly) to the south for the winter."))
9target_prefix = [tokenizer.lang_code_to_token["de"]]
10results = translator.translate_batch([source], target_prefix=[target_prefix])
11target = results[0].hypotheses[0][1:]
12
13print(tokenizer.decode(tokenizer.convert_tokens_to_ids(target)))facebook.mit. This repository redistributes under the same terms; it grants no rights the upstream licence does not.