--- title: Automatic Machine Translation emoji: ๐ŸŒ colorFrom: blue colorTo: purple sdk: gradio sdk_version: 4.44.0 app_file: app.py pinned: false license: apache-2.0 short_description: Chinese โ†” English oral translation with Qwen3-0.6B + LoRA --- # ๐ŸŒ ๅฃ่ฏญๅŒ–่‡ชๅŠจๆœบๅ™จ็ฟป่ฏ‘ | Oral Machine Translation ๅŸบไบŽ **Qwen3-0.6B + LoRA** ๅพฎ่ฐƒ็š„ไธญ่‹ฑๅŒๅ‘ๅฃ่ฏญ็ฟป่ฏ‘็ณป็ปŸ A bilingual (Chinese โ†” English) oral translation system built with **Qwen3-0.6B** fine-tuned using **LoRA**. ## โœจ Features - ๐Ÿ”„ **Bidirectional Translation**: Chinese โ†’ English and English โ†’ Chinese - ๐Ÿ’ฌ **Oral Style**: Optimized for conversational, natural language - โšก **Lightweight**: Only 0.6B parameters, fast inference - ๐ŸŽฏ **LoRA Fine-tuned**: Parameter-efficient training on OpenSubtitles dataset ## ๐Ÿ“Š Performance | Model | BLEU Score | Improvement | |-------|------------|-------------| | Baseline (Qwen3-0.6B) | 1.24 | - | | **LoRA Fine-tuned** | **11.89** | **+858%** | ## ๐Ÿ› ๏ธ Technical Details - **Base Model**: [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B) - **Fine-tuning Method**: LoRA (rank=16, alpha=32, dropout=0.05) - **Training Data**: OpenSubtitles en-zh (5,000 samples) - **Training Time**: ~6 minutes (dual GPU) - **Framework**: Transformers + PEFT ## ๐Ÿš€ Usage Simply select the translation direction and enter your text. The model will generate a natural, conversational translation. ### Example Translations **Chinese โ†’ English:** - ่พ“ๅ…ฅ: ไฝ ๅฅฝๅ‘€ - ่พ“ๅ‡บ: Hi, how are you? **English โ†’ Chinese:** - ่พ“ๅ…ฅ: See you later - ่พ“ๅ‡บ: ๅ›žๅคด่งใ€‚ ## ๐Ÿ“ Citation If you use this model, please cite: ```bibtex @misc{mt-qwen-oral, title={MT-Qwen-Oral: Bilingual Oral Translation with Qwen and LoRA}, author={Hzzzzx0}, year={2025}, publisher={Hugging Face}, howpublished={\url{https://huggingface.co/spaces/Hzzzzx0/Automatic_machine_translation}} } ``` ## ๐Ÿ“„ License Apache 2.0 ## ๐Ÿ”— Links - [GitHub Repository](https://github.com/yourusername/mt-qwen-oral) - [Model Weights](https://huggingface.co/Hzzzzx0/qwen3-0.6b-oral-lora)