Instructions to use Akatsuki-Amemiya/Nobihaza-trans-demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Akatsuki-Amemiya/Nobihaza-trans-demo", filename="Nobihaza-Trans-demo-C4Ai-r7B-8.0B-Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0 # Run inference directly in the terminal: llama cli -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0 # Run inference directly in the terminal: llama cli -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Use Docker
docker model run hf.co/Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
- LM Studio
- Jan
- Ollama
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Ollama:
ollama run hf.co/Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
- Unsloth Studio
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Akatsuki-Amemiya/Nobihaza-trans-demo to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Akatsuki-Amemiya/Nobihaza-trans-demo to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Akatsuki-Amemiya/Nobihaza-trans-demo to start chatting
- Pi
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Docker Model Runner:
docker model run hf.co/Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
- Lemonade
How to use Akatsuki-Amemiya/Nobihaza-trans-demo with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Akatsuki-Amemiya/Nobihaza-trans-demo:Q8_0
Run and chat with the model
lemonade run user.Nobihaza-trans-demo-Q8_0
List all available models
lemonade list
【英文、日文版本由deepseek-r1翻译,如有与中文版不一致之处,以中文版为准】
※ English and Japanese versions are translated by deepseek-r1. In case of discrepancies, the Chinese version shall prevail.
※ 英語・日本語版はdeepseek-r1による翻訳です。中国語版と不一致がある場合は、中国語版が優先されます。
背景 Background 背景
由于sakurallm缺乏多语种语言互译的支持,当前所有本地模型看起来都不能很好的支持rpgmaker游戏(如野比大雄的生化危机)翻译的情况下,我们提出了Nobihaza-trans-demo系列模型,旨在验证基于大语言模型微调成多语言互译模型的可能性。
Given the lack of multilingual translation support in sakurallm and the current limitations of local models in handling RPGMaker game translations (e.g., Nobita's Biohazard), we propose the Nobihaza-trans-demo series to validate the feasibility of fine-tuning LLMs for multilingual translation tasks.
sakurallmが多言語翻訳機能を欠き、現地モデルがRPGMakerゲーム(例:『のび太のバイオハザード』)の翻訳を適切に処理できない現状を踏まえ、大規模言語モデルを多言語相互翻訳用にファインチューニングする可能性を検証するため、Nobihaza-trans-demoシリーズを提案します。
模型列表 Model List モデル一覧
我们开源了基于qwen2.5-7B/llama3.1-8B/gemma3-12B/Ministral-8B/c4ai-r7b的微调模型,仅使用中日平行语料微调,所以本系列理论上暂时只支持中日互译,甚至可能仅支持野比大雄的生化危机领域文本。
We open-source fine-tuned models based on qwen2.5-7B/llama3.1-8B/gemma3-12B/Ministral-8B/c4ai-r7b, trained exclusively on Japanese-Chinese parallel corpora. This series currently supports only Jp↔Zh translation, with potential domain limitations to Nobita's Biohazard series texts.
qwen2.5-7B/llama3.1-8B/gemma3-12B/Ministral-8B/c4ai-r7bを基に中日対訳コーパスのみでファインチューニングしたモデルを公開。理論上は中日相互翻訳のみ対応し、『のび太のバイオハザード』領域テキストに限定される可能性があります。
数据集 Dataset データセット
- 野比大雄的生化危机(日、中)
- 新译野比大雄的生化危机(日、中)
- 大雄战记ACE(日、中)
- 野比大雄的生化危机G(日、中)(Qwen-7B/Llama-8B版模型不包含这个数据)
- Nobita's Biohazard (Jp/Zh)
- New Translation: Nobita's Biohazard (Jp/Zh)
- Nobita War Chronicle ACE (Jp/Zh)
- Nobita's Biohazard G (Jp/Zh) (Excluded from Qwen-7B/Llama-8B versions)
- 『のび太のバイオハザード』(日・中)
- 『新訳 のび太のバイオハザード』(日・中)
- 『のび太戦記ACE』(日・中)
- 『のび太のバイオハザードG』(日・中)(Qwen-7B/Llama-8Bモデルは本データを含まない)
训练细节 Training Details 学習詳細
在4060ti16G上使用不同级别的qlora进行训练(穷)
Trained with varying levels of qLoRA on RTX 4060Ti 16GB (Limited resources)
GeForce RTX 4060Ti 16GBで異なるレベルのqLoRAを適用して学習(リソース制約あり)
测试结果 Evaluation 評価結果
- Qwen: 中文表达能力优秀,日语能力欠缺
- Llama: 中日勉勉强强,日中没几句人话
- Gemma: 中文优秀,日语尚可(但需16G显存)
- Ministral: Loss最低,日中夹杂英文
- c4ai-r: Loss最差,中日质量接近Gemma/Ministral
- Qwen: Excellent Chinese, poor Japanese
- Llama: Barely functional in Jp→Zh
- Gemma: Strong Chinese, acceptable Japanese (16G VRAM required)
- Ministral: Lowest loss, occasional English in outputs
- c4ai-r: Worst loss, comparable quality to Gemma/Ministral
- Qwen: 中国語優秀、日本語未達
- Llama: 日中翻訳が不完全
- Gemma: 中国語優位、日本語は可(16G VRAM要)
- Ministral: 最低loss値、英文混在あり
- c4ai-r: 最悪loss値、Gemma/Ministral並み品質
部署方法 Deployment デプロイ方法
建议使用LM Studio(较易)、ollama+open webui(可能较难)部署
Recommended tools: LM Studio (easier), ollama+Open WebUI (advanced)
推奨ツール: LM Studio(簡単)、ollama+Open WebUI(上級者向け)
Prompt提示 Prompt Guide プロンプト指針
日→中:
把下列文本从日文翻译到中文
(日文原文、日本語原文、Japanese text)
中→日:
把下列文本从中文翻译到日文
(中文原文、中国語原文、Chinese text)
多轮对话翻译:
System prompt写上述翻译提示,直接输入原文
(Qwen-7B/Llama-8B不支持)
Multi-turn Translation:
Set translation instruction in system prompt, input raw text
(Not supported by Qwen-7B/Llama-8B)
マルチターン翻訳:
システムプロンプトに翻訳指示を設定し、原文を直接入力
(Qwen-7B/Llama-8B非対応)
使用条款 Terms of Use 利用規約
许可证 License ライセンス
| Model | License |
|---|---|
| Nobihaza-Trans-demo-Qwen-7B | Apache 2.0 |
| Nobihaza-Trans-demo-Llama-8B | Llama3.1 License |
| Nobihaza-Trans-demo-Gemma3-12B | Gemma License |
| Nobihaza-Trans-demo-Ministral-8B | Mistral AI Research License |
| Nobihaza-Trans-demo-c4ai-r7B | CC-BY-NC-4.0 |
- Downloads last month
- 5
8-bit
Model tree for Akatsuki-Amemiya/Nobihaza-trans-demo
Base model
CohereLabs/c4ai-command-r7b-12-2024