AIDC-AI / Marco-MT-Algharb

huggingface.co
Total runs: 26
24-hour runs: 0
7-day runs: -4
30-day runs: -113
Model's Last Updated: October 23 2025
translation

Introduction of Marco-MT-Algharb

Model Details of Marco-MT-Algharb

Marco-MT

Marco-MT-Algharb

This repository contains the system for Algharb, the submission from the Marco Translation Team of Alibaba International Digital Commerce (AIDC) to the WMT 2025 General Machine Translation Shared Task.

Introduction

The Algharb system is a large translation model built based on the Qwen3-14B foundation. It is designed for high-quality translation across 13 diverse language directions and demonstrates state-of-the-art performance. Our approach is centered on a multi-stage refinement pipeline that systematically enhances translation fluency and faithfulness.

Supported language pairs:

Languages pair Chinese Names
en2zh 英语到中文
en2ja 英语到日语
en2ko 英语到韩语
en2ar 英语到阿拉伯语
en2et 英语到爱沙尼亚语
en2sr_latin 英语到塞尔维亚语(拉丁化)
en2ru 英语到俄语
en2uk 英语到乌克兰语
en2cs 英语到捷克语
en2bho 英语到博杰普尔语
cs2uk 捷克语到乌克兰语
cs2de 捷克语到德语
ja2zh 日语到中文
Usage

The model expects a specific instruction format for translation. The following example demonstrates how to construct the prompt and perform generation using the vllm library for efficient inference.

1. Dependencies

First, ensure you have the necessary libraries installed:

pip install torch transformers==4.55.0 vllm==0.10.0 unbabel-comet==2.2.2
2. Prompt Format and Decoding

The core of the process involves formatting the input text into a specific prompt template and then using the vllm engine to generate translations. For our hybrid decoding strategy, we generate multiple candidates (n > 1) for later re-ranking. The prompt template is:

"Human: Please translate the following text into {target_language}: \n{source_text}<|im_end|>\nAssistant:"

Here is a complete Python example:

from vllm import LLM, SamplingParams

model_path = "path/to/your/algharb_model"
llm = LLM(model=model_path)

source_text = "This paper presents the Algharb system, our submission to the WMT 2025."
source_lang_code = "en" 
target_lang_code = "zh"

lang_name_map = {
    "en": "english"
    "zh": "chinese",
    "ko": "korean",
    "ja": "japanese",
    "ar": "arabic",
    "cs": "czech",
    "ru": "russian",
    "uk": "ukraine",
    "et": "estonian",
    "bho": "bhojpuri",
    "sr_latin": "serbian",
    "de": "german",
}

target_language_name = lang_name_map.get(target_lang_code, "the target language")

prompt = (
    f"Human: Please translate the following text into {target_language_name}: \n"
    f"{source_text}<|im_end|>\n"
    f"Assistant:"
)

prompts_to_generate = [prompt]
print("Formatted Prompt:\n", prompt)

sampling_params = SamplingParams(
    n=1,
    temperature=0.001,
    top_p=0.001,
    max_tokens=512
)

outputs = llm.generate(prompts_to_generate, sampling_params)

for output in outputs:
    generated_text = output.outputs[0].strip()
    print(f"translation: {generated_text}")
Apply MBR decoding

First, run random sample decoding:

from vllm import LLM, SamplingParams

model_path = "path/to/your/algharb_model"
llm = LLM(model=model_path)

source_text = "This paper presents the Algharb system, our submission to the WMT 2025."
source_lang_code = "en" 
target_lang_code = "zh"

lang_name_map = {
    "en": "english"
    "zh": "chinese",
    "ko": "korean",
    "ja": "japanese",
    "ar": "arabic",
    "cs": "czech",
    "ru": "russian",
    "uk": "ukraine",
    "et": "estonian",
    "bho": "bhojpuri",
    "sr_latin": "serbian",
    "de": "german",
}

target_language_name = lang_name_map.get(target_lang_code, "the target language")


prompt = (
    f"Human: Please translate the following text into {target_language_name}: \n"
    f"{source_text}<|im_end|>\n"
    f"Assistant:"
)

prompts_to_generate = [prompt]
print("Formatted Prompt:\n", prompt)

sampling_params = SamplingParams(
    n=100,
    temperature=1,
    top_p=1,
    max_tokens=512
)

outputs = llm.generate(prompts_to_generate, sampling_params)

# The 'outputs' list contains one item for each prompt.
for output in outputs:
    prompt_used = output.prompt
    print(f"\n--- Candidates for source: '{source_text}' ---")
    
    # Each output object contains 'n' generated sequences.
    for i, candidate in enumerate(output.outputs):
        generated_text = candidate.text.strip()
        print(f"Candidate {i+1}: {generated_text}")

Then, run MBR decoding:

comet-mbr -s src.txt -t mbr_sample_100.txt -o mbr_trans.txt --num_samples 100 --gpus 1 --qe_model Unbabel/wmt22-cometkiwi-da

Note: Word alignment for MBR reranking will be available soon.

License

This model is licensed under Apache License Version 2 ( https://www.apache.org/licenses/LICENSE-2.0.txt , SPDX-License-identifier: Apache-2.0).

Disclaimer

We used compliance checking algorithms during the training process, to ensure the compliance of the trained model(s) to the best of our ability. Due to complex data and the diversity of language model usage scenarios, we cannot guarantee that the model is completely free of copyright issues or improper content. If you believe anything infringes on your rights or generates improper content, please contact us, and we will promptly address the matter.

Runs of AIDC-AI Marco-MT-Algharb on huggingface.co

26
Total runs
0
24-hour runs
-2
3-day runs
-4
7-day runs
-113
30-day runs

More Information About Marco-MT-Algharb huggingface.co Model

More Marco-MT-Algharb license Visit here:

https://choosealicense.com/licenses/apache-2.0

Marco-MT-Algharb huggingface.co

Marco-MT-Algharb huggingface.co is an AI model on huggingface.co that provides Marco-MT-Algharb's model effect (), which can be used instantly with this AIDC-AI Marco-MT-Algharb model. huggingface.co supports a free trial of the Marco-MT-Algharb model, and also provides paid use of the Marco-MT-Algharb. Support call Marco-MT-Algharb model through api, including Node.js, Python, http.

Marco-MT-Algharb huggingface.co Url

https://huggingface.co/AIDC-AI/Marco-MT-Algharb

AIDC-AI Marco-MT-Algharb online free

Marco-MT-Algharb huggingface.co is an online trial and call api platform, which integrates Marco-MT-Algharb's modeling effects, including api services, and provides a free online trial of Marco-MT-Algharb, you can try Marco-MT-Algharb online for free by clicking the link below.

AIDC-AI Marco-MT-Algharb online free url in huggingface.co:

https://huggingface.co/AIDC-AI/Marco-MT-Algharb

Marco-MT-Algharb install

Marco-MT-Algharb is an open source model from GitHub that offers a free installation service, and any user can find Marco-MT-Algharb on GitHub to install. At the same time, huggingface.co provides the effect of Marco-MT-Algharb install, users can directly use Marco-MT-Algharb installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Marco-MT-Algharb install url in huggingface.co:

https://huggingface.co/AIDC-AI/Marco-MT-Algharb

Url of Marco-MT-Algharb

Marco-MT-Algharb huggingface.co Url

Provider of Marco-MT-Algharb huggingface.co

AIDC-AI
ORGANIZATIONS

Other API from AIDC-AI

huggingface.co

Total runs: 117.5K
Run Growth: 4.7K
Growth Rate: 3.98%
Updated:August 15 2025
huggingface.co

Total runs: 18.8K
Run Growth: 14.3K
Growth Rate: 76.35%
Updated:February 13 2026
huggingface.co

Total runs: 12.5K
Run Growth: -13.7K
Growth Rate: -109.21%
Updated:February 13 2026
huggingface.co

Total runs: 11.3K
Run Growth: -35.3K
Growth Rate: -312.00%
Updated:August 15 2025
huggingface.co

Total runs: 1.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 26 2025
huggingface.co

Total runs: 1.4K
Run Growth: 270
Growth Rate: 19.58%
Updated:March 04 2025
huggingface.co

Total runs: 982
Run Growth: -45.0K
Growth Rate: -4582.28%
Updated:August 15 2025
huggingface.co

Total runs: 688
Run Growth: 387
Growth Rate: 56.25%
Updated:August 15 2025
huggingface.co

Total runs: 426
Run Growth: -476
Growth Rate: -111.74%
Updated:July 03 2025
huggingface.co

Total runs: 398
Run Growth: -7
Growth Rate: -1.76%
Updated:November 23 2024
huggingface.co

Total runs: 326
Run Growth: 320
Growth Rate: 98.16%
Updated:June 09 2026
huggingface.co

Total runs: 300
Run Growth: -37
Growth Rate: -12.33%
Updated:August 15 2025
huggingface.co

Total runs: 59
Run Growth: -898
Growth Rate: -1522.03%
Updated:February 28 2025
huggingface.co

Total runs: 39
Run Growth: 28
Growth Rate: 71.79%
Updated:May 29 2025
huggingface.co

Total runs: 38
Run Growth: -6
Growth Rate: -15.79%
Updated:August 15 2025
huggingface.co

Total runs: 27
Run Growth: 9
Growth Rate: 33.33%
Updated:November 21 2024
huggingface.co

Total runs: 13
Run Growth: 8
Growth Rate: 61.54%
Updated:July 30 2025
huggingface.co

Total runs: 11
Run Growth: -14
Growth Rate: -127.27%
Updated:November 21 2024
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:August 19 2025
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 03 2025