neosun100/hy-mt

๐Ÿš€ All-in-One Docker deployment for Tencent HunyuanMT 1.5 translation model with Web UI, REST API, and MCP Server support. 38 languages, streaming translation, dark/light theme.

Python

5

14 commits

updated Jan 3, 2026

See the code

README

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž

Docker Pulls Stars License HuggingFace

HY-MT Translation Service

๐Ÿš€ All-in-One Docker deployment for Tencent HunyuanMT 1.5 translation model with Web UI, REST API, and MCP Server support.

โœจ Features

  • ๐ŸŒ 38 Languages Support - Chinese, English, Japanese, Korean, French, German, Spanish, and 31 more
  • ๐ŸŽจ Modern Web UI - Dark/Light theme toggle, drag & drop file upload, real-time progress display
  • โšก Streaming Translation - Server-Sent Events (SSE) for real-time output, perfect for long texts
  • ๐Ÿ”ง Full Parameter Control - Temperature, Top-P, Top-K, repetition penalty adjustable
  • ๐Ÿ“š Terminology Intervention - Custom term mapping for domain-specific translations
  • ๐Ÿค– MCP Server - Model Context Protocol support for AI assistants (Claude, etc.)
  • ๐Ÿณ One-Click Deployment - All-in-One Docker image with all models pre-downloaded
  • ๐Ÿ”„ Smart GPU Management - Auto GPU selection, idle timeout, memory release
  • ๐Ÿ”€ Multi-Model Support - Switch between 4 models (1.8B/7B, base/FP8) via UI or API

๐ŸŽฏ Model Selection Guide

ModelVRAMSpeedQualityRecommendation
HY-MT 7B16GBโญโญโญโญโญโญโญโญโญ๐Ÿ† Best Choice - Highest quality, fast speed
HY-MT 1.8B6GBโญโญโญโญโญโญโญโญโญGood for limited VRAM
HY-MT 1.8B FP84GBโญโญโญโญโญโญโญFor VRAM < 6GB
HY-MT 7B FP810GBโญโญโญโญโญโญโญ7B quality with less VRAM

๐Ÿ’ก Tip: If you have 16GB+ VRAM, use HY-MT 7B for best results. FP8 models save memory but are slower due to runtime decompression.

๐Ÿ“ธ Screenshot

๐Ÿš€ Quick Start

# One command to start (uses 7B model by default)
docker run -d --gpus all \
  -p 8021:8021 \
  -v ./models:/app/models \
  --name hy-mt \
  neosun/hy-mt:latest

# Access Web UI
open http://localhost:8021

The Docker image (~43GB) includes all 4 models pre-downloaded. No external downloads needed!

Docker Compose

Create docker-compose.yml:

services:
  hy-mt:
    image: neosun/hy-mt:latest
    container_name: hy-mt
    ports:
      - "8021:8021"
    environment:
      - MODEL_NAME=tencent/HY-MT1.5-7B  # Recommended for 16GB+ VRAM
      - GPU_IDLE_TIMEOUT=300
      - HF_ENDPOINT=https://huggingface.co  # Use https://hf-mirror.com for China
    volumes:
      - ./models:/app/models
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    restart: unless-stopped
docker compose up -d

๐Ÿ“‹ Requirements

RequirementMinimumRecommended
GPUNVIDIA GPU with 6GB+ VRAM16GB+ VRAM (for 7B model)
CUDA11.8+12.4+
Docker20.10+24.0+
nvidia-dockerRequired-

Verify GPU Support

# Check NVIDIA driver
nvidia-smi

# Check Docker GPU support
docker run --rm --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi

๐Ÿ“Š Performance Benchmark

Tested on NVIDIA L40S GPU, translating English to Chinese:

ModelShort (61 chars)Medium (530 chars)Long (1.8K chars)Extra Long (4.2K chars)
HY-MT 7B0.4s4.4s17.7s43.0s
HY-MT 1.8B0.4s3.6s14.0s32.3s
HY-MT 1.8B FP81.1s10.8s38.1s92.9s
HY-MT 7B FP82.9s28.5s115.6s274.1s

โš ๏ธ Why are FP8 models slower?

This is counter-intuitive but technically correct:

ComparisonSpeed ChangeReason
1.8B FP8 vs 1.8B2.7x slowerRuntime decompression overhead
7B FP8 vs 7B6.4x slowerMore parameters = more decompression

FP8 quantization is designed to save VRAM, not to speed up inference. The model is stored in 8-bit format but needs to be decompressed to 16-bit for GPU computation at runtime. This decompression happens for every token generation.

When to use FP8:

  • โœ… When VRAM is limited (< 16GB for 7B, < 6GB for 1.8B)
  • โŒ Not for speed optimization
  • โŒ Not for batch processing (speed loss accumulates)

See Benchmark Report for detailed analysis.

๐Ÿ”‘ Key Optimization: Chunk Size

Critical finding: Smaller chunk size = Better translation quality

Chunk SizeQualityNotes
500 charsโŒ PoorMixed languages in output
300 charsโš ๏ธ FairSome untranslated residue
150 charsโœ… ExcellentComplete, accurate translation

The service uses MAX_CHUNK_LENGTH=150 by default for optimal quality.

Why? HY-MT model tends to "slack off" on long inputs, only translating part of the content. Shorter chunks force the model to fully translate each segment.

See Optimization Guide for details.

โš™๏ธ Configuration

Environment Variables

VariableDefaultDescription
PORT8021Service port
MODEL_NAMEtencent/HY-MT1.5-7BHuggingFace model name
MODEL_PATH./modelsLocal model cache path
GPU_IDLE_TIMEOUT300Auto-release GPU after idle (seconds)
NVIDIA_VISIBLE_DEVICESautoGPU ID (empty = auto select)
HF_ENDPOINThttps://huggingface.coHuggingFace mirror URL

Using .env File

# Copy example config
cp .env.example .env

# Edit as needed
vim .env

๐Ÿ“– API Usage

Basic Translation

curl -X POST "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello, how are you?",
    "target_lang": "zh"
  }'

Response:

{
  "status": "success",
  "result": "ไฝ ๅฅฝ๏ผŒไฝ ๅฅฝๅ—๏ผŸ",
  "elapsed_ms": 358,
  "model": "tencent/HY-MT1.5-7B",
  "chunks": 1
}

Streaming Translation (SSE)

curl -N "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Long article to translate...",
    "target_lang": "en",
    "stream": true
  }'

With Terminology Intervention

curl -X POST "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Apple released iPhone 16",
    "target_lang": "zh",
    "terms": {"Apple": "่‹นๆžœๅ…ฌๅธ", "iPhone": "่‹นๆžœๆ‰‹ๆœบ"}
  }'

Output: ่‹นๆžœๅ…ฌๅธๅ‘ๅธƒไบ†่‹นๆžœๆ‰‹ๆœบ16

File Upload Translation

curl "http://localhost:8021/api/translate/file" \
  -F "[email protected]" \
  -F "target_lang=zh" \
  -F "stream=true"

Switch Model

curl -X POST "http://localhost:8021/api/models/switch" \
  -H "Content-Type: application/json" \
  -d '{"model": "tencent/HY-MT1.5-1.8B"}'

๐Ÿ“š API Endpoints

EndpointMethodDescription
/GETWeb UI
/api/translatePOSTTranslate text (supports streaming)
/api/translate/filePOSTUpload and translate file
/api/translate/batchPOSTBatch translation
/api/translate/streamPOSTStreaming translation (SSE)
/api/languagesGETList supported languages
/api/modelsGETList available models
/api/models/switchPOSTSwitch translation model
/api/gpu/statusGETGPU status and memory info
/api/gpu/offloadPOSTRelease GPU memory
/api/configGETService configuration
/healthGETHealth check
/docsGETSwagger API documentation

๐ŸŒ Supported Languages

LanguageCodeLanguageCodeLanguageCode
ChinesezhEnglishenJapaneseja
KoreankoFrenchfrGermande
SpanishesPortugueseptRussianru
ArabicarThaithVietnamesevi
ItalianitDutchnlPolishpl
TurkishtrIndonesianidMalayms
HindihiTraditional Chinesezh-HantCantoneseyue

And 17 more languages. See /api/languages for full list.

๐Ÿ› ๏ธ Tech Stack

  • Model: Tencent HY-MT1.5 (1.8B & 7B)
  • Backend: FastAPI + Uvicorn
  • Frontend: Vanilla JS with Dark/Light Mode
  • Container: NVIDIA CUDA 12.4 base image
  • Streaming: Server-Sent Events (SSE)
  • MCP: Model Context Protocol for AI integration

๐Ÿ“ Project Structure

hy-mt/
โ”œโ”€โ”€ app_fastapi.py      # Main FastAPI application
โ”œโ”€โ”€ mcp_server.py       # MCP Server for AI assistants
โ”œโ”€โ”€ benchmark.py        # Performance benchmark script
โ”œโ”€โ”€ templates/
โ”‚   โ””โ”€โ”€ index.html      # Web UI (Dark/Light theme)
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ BENCHMARK_REPORT.md    # Performance test report
โ”‚   โ”œโ”€โ”€ OPTIMIZATION_GUIDE.md  # Long text optimization guide
โ”‚   โ””โ”€โ”€ QUICK_REFERENCE.md     # API quick reference
โ”œโ”€โ”€ Dockerfile          # All-in-One Docker build
โ”œโ”€โ”€ docker-compose.yml  # Docker Compose config
โ”œโ”€โ”€ start.sh           # Quick start script
โ”œโ”€โ”€ test_api.sh        # API test script
โ””โ”€โ”€ .env.example       # Environment config template

๐Ÿ”ง Advanced Usage

Manual Start (Development)

# Clone repository
git clone https://github.com/neosun100/hy-mt.git
cd hy-mt

# Install dependencies
pip install torch transformers accelerate fastapi uvicorn

# Run
python -m uvicorn app_fastapi:app --host 0.0.0.0 --port 8021

MCP Server Integration

For AI assistants like Claude Desktop, add to MCP config:

{
  "mcpServers": {
    "hy-mt": {
      "command": "python",
      "args": ["/path/to/hy-mt/mcp_server.py"],
      "env": {
        "HY_MT_API": "http://localhost:8021"
      }
    }
  }
}

Available MCP tools:

  • translate - Translate text
  • list_languages - Get supported languages
  • list_models - Get available models
  • switch_model - Switch translation model

See MCP_GUIDE.md for details.

๐Ÿ› Troubleshooting

IssueSolution
Model download slowSet HF_ENDPOINT=https://hf-mirror.com (China mirror)
GPU out of memoryUse quantized model: tencent/HY-MT1.5-1.8B-FP8
Container won't startCheck nvidia-smi and nvidia-docker installation
Translation incompleteAlready optimized with chunk size 150
Container shows unhealthyWait 1-2 minutes for model loading

๐Ÿ“ Changelog

v2.0.1 (2026-01-03)

  • ๐Ÿ† Default model changed to HY-MT 7B (best quality & speed)
  • ๐Ÿฉบ Added Docker HEALTHCHECK for container health monitoring
  • ๐Ÿ“ฆ Container status now shows (healthy) when ready

v2.0.0 (2026-01-03) - True All-in-One

  • ๐ŸŽฏ All 4 models pre-downloaded in Docker image - No external downloads needed!
  • ๐Ÿ“ฆ Image size: ~43GB (includes all models)
  • ๐Ÿ† Recommended: HY-MT 7B for best quality and speed
  • ๐Ÿ“Š Added performance benchmark report
  • ๐Ÿ”ง Added benchmark.py for reproducible testing

v1.2.0 (2026-01-03)

  • ๐Ÿ”€ Multi-model support (4 models: 1.8B, 1.8B-FP8, 7B, 7B-FP8)
  • ๐Ÿ”„ Model switching via UI and API
  • ๐Ÿ“ MCP Server: added list_models and switch_model tools
  • ๐Ÿ› Fixed model name display in translation response

v1.0.0 (2026-01-03)

  • ๐ŸŽ‰ Initial release
  • โœจ All-in-One Docker image
  • โšก Streaming translation with SSE
  • ๐ŸŽจ Dark/Light theme Web UI
  • ๐Ÿ”ง Long text optimization (chunk size 150)
  • ๐Ÿค– MCP Server support

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is based on Tencent HunyuanMT. See License.txt for details.

๐Ÿ™ Acknowledgments


โญ Star History

Star History Chart

๐Ÿ“ฑ Follow Us

neosun100/hy-mt

๐Ÿš€ All-in-One Docker deployment for Tencent HunyuanMT 1.5 translation model with Web UI, REST API, and MCP Server support. 38 languages, streaming translation, dark/light theme.

Python

5

14 commits

updated Jan 3, 2026

See the code

README

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž

Docker Pulls Stars License HuggingFace

HY-MT Translation Service

๐Ÿš€ All-in-One Docker deployment for Tencent HunyuanMT 1.5 translation model with Web UI, REST API, and MCP Server support.

โœจ Features

  • ๐ŸŒ 38 Languages Support - Chinese, English, Japanese, Korean, French, German, Spanish, and 31 more
  • ๐ŸŽจ Modern Web UI - Dark/Light theme toggle, drag & drop file upload, real-time progress display
  • โšก Streaming Translation - Server-Sent Events (SSE) for real-time output, perfect for long texts
  • ๐Ÿ”ง Full Parameter Control - Temperature, Top-P, Top-K, repetition penalty adjustable
  • ๐Ÿ“š Terminology Intervention - Custom term mapping for domain-specific translations
  • ๐Ÿค– MCP Server - Model Context Protocol support for AI assistants (Claude, etc.)
  • ๐Ÿณ One-Click Deployment - All-in-One Docker image with all models pre-downloaded
  • ๐Ÿ”„ Smart GPU Management - Auto GPU selection, idle timeout, memory release
  • ๐Ÿ”€ Multi-Model Support - Switch between 4 models (1.8B/7B, base/FP8) via UI or API

๐ŸŽฏ Model Selection Guide

ModelVRAMSpeedQualityRecommendation
HY-MT 7B16GBโญโญโญโญโญโญโญโญโญ๐Ÿ† Best Choice - Highest quality, fast speed
HY-MT 1.8B6GBโญโญโญโญโญโญโญโญโญGood for limited VRAM
HY-MT 1.8B FP84GBโญโญโญโญโญโญโญFor VRAM < 6GB
HY-MT 7B FP810GBโญโญโญโญโญโญโญ7B quality with less VRAM

๐Ÿ’ก Tip: If you have 16GB+ VRAM, use HY-MT 7B for best results. FP8 models save memory but are slower due to runtime decompression.

๐Ÿ“ธ Screenshot

๐Ÿš€ Quick Start

# One command to start (uses 7B model by default)
docker run -d --gpus all \
  -p 8021:8021 \
  -v ./models:/app/models \
  --name hy-mt \
  neosun/hy-mt:latest

# Access Web UI
open http://localhost:8021

The Docker image (~43GB) includes all 4 models pre-downloaded. No external downloads needed!

Docker Compose

Create docker-compose.yml:

services:
  hy-mt:
    image: neosun/hy-mt:latest
    container_name: hy-mt
    ports:
      - "8021:8021"
    environment:
      - MODEL_NAME=tencent/HY-MT1.5-7B  # Recommended for 16GB+ VRAM
      - GPU_IDLE_TIMEOUT=300
      - HF_ENDPOINT=https://huggingface.co  # Use https://hf-mirror.com for China
    volumes:
      - ./models:/app/models
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    restart: unless-stopped
docker compose up -d

๐Ÿ“‹ Requirements

RequirementMinimumRecommended
GPUNVIDIA GPU with 6GB+ VRAM16GB+ VRAM (for 7B model)
CUDA11.8+12.4+
Docker20.10+24.0+
nvidia-dockerRequired-

Verify GPU Support

# Check NVIDIA driver
nvidia-smi

# Check Docker GPU support
docker run --rm --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi

๐Ÿ“Š Performance Benchmark

Tested on NVIDIA L40S GPU, translating English to Chinese:

ModelShort (61 chars)Medium (530 chars)Long (1.8K chars)Extra Long (4.2K chars)
HY-MT 7B0.4s4.4s17.7s43.0s
HY-MT 1.8B0.4s3.6s14.0s32.3s
HY-MT 1.8B FP81.1s10.8s38.1s92.9s
HY-MT 7B FP82.9s28.5s115.6s274.1s

โš ๏ธ Why are FP8 models slower?

This is counter-intuitive but technically correct:

ComparisonSpeed ChangeReason
1.8B FP8 vs 1.8B2.7x slowerRuntime decompression overhead
7B FP8 vs 7B6.4x slowerMore parameters = more decompression

FP8 quantization is designed to save VRAM, not to speed up inference. The model is stored in 8-bit format but needs to be decompressed to 16-bit for GPU computation at runtime. This decompression happens for every token generation.

When to use FP8:

  • โœ… When VRAM is limited (< 16GB for 7B, < 6GB for 1.8B)
  • โŒ Not for speed optimization
  • โŒ Not for batch processing (speed loss accumulates)

See Benchmark Report for detailed analysis.

๐Ÿ”‘ Key Optimization: Chunk Size

Critical finding: Smaller chunk size = Better translation quality

Chunk SizeQualityNotes
500 charsโŒ PoorMixed languages in output
300 charsโš ๏ธ FairSome untranslated residue
150 charsโœ… ExcellentComplete, accurate translation

The service uses MAX_CHUNK_LENGTH=150 by default for optimal quality.

Why? HY-MT model tends to "slack off" on long inputs, only translating part of the content. Shorter chunks force the model to fully translate each segment.

See Optimization Guide for details.

โš™๏ธ Configuration

Environment Variables

VariableDefaultDescription
PORT8021Service port
MODEL_NAMEtencent/HY-MT1.5-7BHuggingFace model name
MODEL_PATH./modelsLocal model cache path
GPU_IDLE_TIMEOUT300Auto-release GPU after idle (seconds)
NVIDIA_VISIBLE_DEVICESautoGPU ID (empty = auto select)
HF_ENDPOINThttps://huggingface.coHuggingFace mirror URL

Using .env File

# Copy example config
cp .env.example .env

# Edit as needed
vim .env

๐Ÿ“– API Usage

Basic Translation

curl -X POST "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello, how are you?",
    "target_lang": "zh"
  }'

Response:

{
  "status": "success",
  "result": "ไฝ ๅฅฝ๏ผŒไฝ ๅฅฝๅ—๏ผŸ",
  "elapsed_ms": 358,
  "model": "tencent/HY-MT1.5-7B",
  "chunks": 1
}

Streaming Translation (SSE)

curl -N "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Long article to translate...",
    "target_lang": "en",
    "stream": true
  }'

With Terminology Intervention

curl -X POST "http://localhost:8021/api/translate" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Apple released iPhone 16",
    "target_lang": "zh",
    "terms": {"Apple": "่‹นๆžœๅ…ฌๅธ", "iPhone": "่‹นๆžœๆ‰‹ๆœบ"}
  }'

Output: ่‹นๆžœๅ…ฌๅธๅ‘ๅธƒไบ†่‹นๆžœๆ‰‹ๆœบ16

File Upload Translation

curl "http://localhost:8021/api/translate/file" \
  -F "[email protected]" \
  -F "target_lang=zh" \
  -F "stream=true"

Switch Model

curl -X POST "http://localhost:8021/api/models/switch" \
  -H "Content-Type: application/json" \
  -d '{"model": "tencent/HY-MT1.5-1.8B"}'

๐Ÿ“š API Endpoints

EndpointMethodDescription
/GETWeb UI
/api/translatePOSTTranslate text (supports streaming)
/api/translate/filePOSTUpload and translate file
/api/translate/batchPOSTBatch translation
/api/translate/streamPOSTStreaming translation (SSE)
/api/languagesGETList supported languages
/api/modelsGETList available models
/api/models/switchPOSTSwitch translation model
/api/gpu/statusGETGPU status and memory info
/api/gpu/offloadPOSTRelease GPU memory
/api/configGETService configuration
/healthGETHealth check
/docsGETSwagger API documentation

๐ŸŒ Supported Languages

LanguageCodeLanguageCodeLanguageCode
ChinesezhEnglishenJapaneseja
KoreankoFrenchfrGermande
SpanishesPortugueseptRussianru
ArabicarThaithVietnamesevi
ItalianitDutchnlPolishpl
TurkishtrIndonesianidMalayms
HindihiTraditional Chinesezh-HantCantoneseyue

And 17 more languages. See /api/languages for full list.

๐Ÿ› ๏ธ Tech Stack

  • Model: Tencent HY-MT1.5 (1.8B & 7B)
  • Backend: FastAPI + Uvicorn
  • Frontend: Vanilla JS with Dark/Light Mode
  • Container: NVIDIA CUDA 12.4 base image
  • Streaming: Server-Sent Events (SSE)
  • MCP: Model Context Protocol for AI integration

๐Ÿ“ Project Structure

hy-mt/
โ”œโ”€โ”€ app_fastapi.py      # Main FastAPI application
โ”œโ”€โ”€ mcp_server.py       # MCP Server for AI assistants
โ”œโ”€โ”€ benchmark.py        # Performance benchmark script
โ”œโ”€โ”€ templates/
โ”‚   โ””โ”€โ”€ index.html      # Web UI (Dark/Light theme)
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ BENCHMARK_REPORT.md    # Performance test report
โ”‚   โ”œโ”€โ”€ OPTIMIZATION_GUIDE.md  # Long text optimization guide
โ”‚   โ””โ”€โ”€ QUICK_REFERENCE.md     # API quick reference
โ”œโ”€โ”€ Dockerfile          # All-in-One Docker build
โ”œโ”€โ”€ docker-compose.yml  # Docker Compose config
โ”œโ”€โ”€ start.sh           # Quick start script
โ”œโ”€โ”€ test_api.sh        # API test script
โ””โ”€โ”€ .env.example       # Environment config template

๐Ÿ”ง Advanced Usage

Manual Start (Development)

# Clone repository
git clone https://github.com/neosun100/hy-mt.git
cd hy-mt

# Install dependencies
pip install torch transformers accelerate fastapi uvicorn

# Run
python -m uvicorn app_fastapi:app --host 0.0.0.0 --port 8021

MCP Server Integration

For AI assistants like Claude Desktop, add to MCP config:

{
  "mcpServers": {
    "hy-mt": {
      "command": "python",
      "args": ["/path/to/hy-mt/mcp_server.py"],
      "env": {
        "HY_MT_API": "http://localhost:8021"
      }
    }
  }
}

Available MCP tools:

  • translate - Translate text
  • list_languages - Get supported languages
  • list_models - Get available models
  • switch_model - Switch translation model

See MCP_GUIDE.md for details.

๐Ÿ› Troubleshooting

IssueSolution
Model download slowSet HF_ENDPOINT=https://hf-mirror.com (China mirror)
GPU out of memoryUse quantized model: tencent/HY-MT1.5-1.8B-FP8
Container won't startCheck nvidia-smi and nvidia-docker installation
Translation incompleteAlready optimized with chunk size 150
Container shows unhealthyWait 1-2 minutes for model loading

๐Ÿ“ Changelog

v2.0.1 (2026-01-03)

  • ๐Ÿ† Default model changed to HY-MT 7B (best quality & speed)
  • ๐Ÿฉบ Added Docker HEALTHCHECK for container health monitoring
  • ๐Ÿ“ฆ Container status now shows (healthy) when ready

v2.0.0 (2026-01-03) - True All-in-One

  • ๐ŸŽฏ All 4 models pre-downloaded in Docker image - No external downloads needed!
  • ๐Ÿ“ฆ Image size: ~43GB (includes all models)
  • ๐Ÿ† Recommended: HY-MT 7B for best quality and speed
  • ๐Ÿ“Š Added performance benchmark report
  • ๐Ÿ”ง Added benchmark.py for reproducible testing

v1.2.0 (2026-01-03)

  • ๐Ÿ”€ Multi-model support (4 models: 1.8B, 1.8B-FP8, 7B, 7B-FP8)
  • ๐Ÿ”„ Model switching via UI and API
  • ๐Ÿ“ MCP Server: added list_models and switch_model tools
  • ๐Ÿ› Fixed model name display in translation response

v1.0.0 (2026-01-03)

  • ๐ŸŽ‰ Initial release
  • โœจ All-in-One Docker image
  • โšก Streaming translation with SSE
  • ๐ŸŽจ Dark/Light theme Web UI
  • ๐Ÿ”ง Long text optimization (chunk size 150)
  • ๐Ÿค– MCP Server support

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is based on Tencent HunyuanMT. See License.txt for details.

๐Ÿ™ Acknowledgments


โญ Star History

Star History Chart

๐Ÿ“ฑ Follow Us