Translation
Transformers
PyTorch
Safetensors
marian
text2text-generation
transformer
en-zh
minecraft modpack
finetune
Instructions to use XDawned/minecraft-en-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XDawned/minecraft-en-zh with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="XDawned/minecraft-en-zh")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("XDawned/minecraft-en-zh") model = AutoModelForSeq2SeqLM.from_pretrained("XDawned/minecraft-en-zh") - Notebooks
- Google Colab
- Kaggle
模型如何训练?
#1
by Pasuu - opened
不太明白这个是怎么运作的,可以简略讲下怎么训练它吗?我有很多ftb任务汉化文件,但不会使用,麻烦了。
无论是训练还是调用,hugging-face官方提供了十分便捷和全面的封装功能,建议查阅官方文档,
并且此项目支持AutoTrain,在准备好双语语料集之后点击右上角AutoTrain跟着提示一步步往下走上传语料集后就可以在网页上完成训练。语料集需要你自己去找已汉化过的整合包去提取收集,由于汉化知识产权方面的原因我是没有权利公开预料集的,但这个模型本身已经喂了不少mc模组术语和任务文本双语数据了,后面也会持续更新,你可以直接使用,如果某些术语翻译效果不佳你可以反馈上来。
如果你只是单纯想使用它汉化ftbquests任务的话,可以参考我的项目分支,它使用的正是这个模型而非外部翻译APImodel_trans
XDawned changed discussion status to closed