base_model, base_model_relation, frameworks, language, license, tasks
base_model base_model_relation frameworks language license tasks
Qwen/Qwen3-1.7B
finetune
pytorch
zh
en
Apache License 2.0
translation

Qwen3-1.7B-MT-en2zh-Gungeon

专门针对《挺进地牢》(Enter the Gungeon) 游戏文本翻译优化的中译英翻译模型

模型简介

本模型是基于 Qwen3-1.7B 微调的专门用于《挺进地牢》游戏内容的中英翻译模型,主要特点:

  • 针对游戏内特有的武器名称、角色对话、物品描述等进行了优化
  • 能正确处理游戏特有的俚语、双关语和幽默表达
  • 保持原版游戏"枪牢"风格的翻译腔调
  • 对游戏内大量武器/物品名称翻译进行了专门训练

使用场景

  • 《挺进地牢》游戏内容本地化
  • 游戏MOD制作时的文本翻译
  • 支持以<!pos!>N<!seg!>作为位置标注,以实现多项翻译

快速开始

  • GGUF格式

建议使用Llama.cpp创建llama-server服务器结合AutoTranslate模组实现本地运行。

llama-server -m /path/to/the/gguf/model --port 6133 --jinja --reasoning_budget 0 -ngl 1000
  • HF格式

模型加载和测试:

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_dir = "/path/to/the/HF/model"

tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_dir,
    torch_dtype=torch.float16,
    device_map="auto",
    trust_remote_code=True
)

conversations = [
    {
      "role": "system",
      "content": "英文翻译为中文"
    },
    {
      "role": "user",
      "content": "<!pos!>1<!seg!>Please consider this official notice of your promotion to Sr. Quartermaster of the Second Division.<!pos!>2<!seg!>This blessed bullet speaks with the voice of Kaliber herself.<!pos!>3<!seg!>The Last Transmission<!pos!>4<!seg!>The storm raged outside the research station, howling winds rattling the reinforced windows. Dr. Elena Carter adjusted her headset, her fingers trembling as she decoded the final transmission from the lost Mars expedition.\n\n\"Day 217. Oxygen critical. Found something... beneath the surface. It's not rock—it's moving. If anyone hears this, do not come after us. Repeat, do not—\"\n\nThe message cut to static. Elena's breath hitched. The agency had declared the crew dead months ago, but this was recorded yesterday.\n\nThen, the power flickered. Across the room, the radio crackled back to life—with a voice that wasn't human.\n\n\"We hear you.\"\n\nThe lights went out. Outside, something scraped against the station walls.\nSynergies:\n -Movement loss\n -Destroy Bass\n -Zero burning\n Fat jackass<!pos!>5<!seg!>Quality: B<!pos!>6<!seg!>Dragun Wing<!pos!>7<!seg!>Increases movement speed. Killing an enemy creates a ring of fire around the player.\n\nThe wing of an elderly Dragun that is too weak to allow for flight anymore. It glows in the presence of gunfire.\n\nRight before their home was destroyed, the Draguns sent their bravest warrior to the Gungeon in an attempt to prevent the onset of the apocolypse."
    }
  ]

prompt = tokenizer.apply_chat_template(
    conversations,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False
)

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
    **inputs,
    max_new_tokens=2048,
    do_sample=True,
    temperature=1.0,
    top_p=0.6,
    top_k=100
)

full_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(full_output)

训练数据

用专用翻译语料、通用知识和模型能力数据集一起训练,以防止灾难性遗忘。

  • 《挺进地牢》官方游戏本地化文本 + 游戏内特殊术语修正(/no_think6381条
  • 常规翻译文本对(/no_think2455条
  • 位置标注引导(/no_think26000条
  • 用Qwen-1.7B生成的常用知识和交互的对话样例(/no_think1140条
  • Qwen3 SFT混合mini数据集32B蒸馏 · 数据集1000条

翻译示例

  • 单项翻译

system prompt:

英文翻译为中文

user prompt:

Hey, welcome to the Gungeon! I'm your partner, the Cultist. Together we'll find the gun that can kill the past!

输出:

嘿,欢迎来到地牢!我是你的伙伴,异教徒。我们将一起找到那把能抹去过去的传奇神枪!
  • 分割多项翻译

system prompt:

英文翻译为中文

user prompt:

<!pos!>1<!seg!>Dragun Wing<!pos!>2<!seg!>Increases movement speed. Killing an enemy creates a ring of fire around the player.\n\nThe wing of an elderly Dragun that is too weak to allow for flight anymore. It glows in the presence of gunfire.\n\nRight before their home was destroyed, the Draguns sent their bravest warrior to the Gungeon in an attempt to prevent the onset of the apocolypse.\n\nThis item is from Children of Kaliber<!pos!>3<!seg!>Quality: B

输出:

<!pos!>1<!seg!>枪龙之翼<!pos!>2<!seg!>增加移动速度。击杀敌人会在玩家周围形成火焰光环。\n\n一个太弱以致不能飞行的老枪龙的翅膀。在枪火临近时会发光。\n\n在家园即将被毁的前夜这只枪龙派出最英勇的战士前往地牢试图阻止末日的降临。\n\n该物品属于卡利波尔的孩子们<!pos!>3<!seg!>品质B

局限性

  • 专精于《挺进地牢》相关内容,其他领域翻译质量可能下降
  • 对游戏外新梗/网络流行语识别有限
  • 极少数特殊武器名称可能需要人工校对
  • 对翻译以外的任务执行能力可能下降

授权信息

基于Qwen3-1.7B模型微调,遵循原模型许可协议


本模型由Enter the Gungeon爱好者支持开发非官方产品

Description
Model synced from source: kleirof/Qwen3-1.7B-MT-en2zh-Gungeon
Readme 2 MiB