Downloads · 30 days
16
6% of all-time downloads
Alphaplasti/ToneBridge-MiniCPM4.1-8B
ToneBridge-MiniCPM4.1-8B is a text generation model from Alphaplasti. Use it when you need the model to write or continue text. It is set up for transformers.
ToneBridge-MiniCPM4.1-8B is a full merged fine-tuned model based on openbmb/MiniCPM4.1-8B.
Downloads · 30 days
16
6% of all-time downloads
All-time downloads
278
Public
Parameters
8.2B
32.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
ToneBridge-MiniCPM4.1-8B is a full merged fine-tuned model based on
openbmb/MiniCPM4.1-8B.
It was created for the Hugging Face BuildSmall hackathon as the correction model powering the ToneBridge Space.
The model is designed for beginner Mandarin learners. Given a short context, target tone, and one imperfect Chinese sentence, it helps produce a more natural Chinese sentence while preserving the learner's original meaning as much as possible.
This repository contains merged model weights, not only a LoRA adapter.
The model should be used conservatively: if a sentence is already correct and natural enough for the selected context, the best correction may be no change.
This model is part of ToneBridge, a Hugging Face Space built for the BuildSmall hackathon. ToneBridge focuses on helping beginner learners bridge the gap between "grammatically understandable" Chinese and Chinese that fits the intended social tone.
The model was trained in two fine-tuning stages.
| Stage | Local files | Train rows | Validation rows | Goal |
|---|---|---|---|---|
| Stage 1 | hsk12_english_order_train.jsonl / hsk12_english_order_valid.jsonl | 1,800 | 200 | Correct HSK 1/2-style sentences influenced by English word order. |
| Stage 2 | context_tone_hsk3_train.jsonl / context_tone_hsk3_valid.jsonl | 4,500 | 500 | Adapt HSK 1-3 sentences to the selected context and tone. |
Total generated examples documented in this repository:
The training data is synthetic and task-specific. It was generated to reduce exact duplicate source/correction pairs and to cover distinct tones and communication contexts.
The relevant JSONL training files are included in the training_data/ folder of
this repository for transparency.
The model was fine-tuned with a LoRA/QLoRA workflow:
openbmb/MiniCPM4.1-8B.Main local artifacts:
minicpm41-hsk12-english-order-loraminicpm41-tonebridge-v2-loraToneBridge-MiniCPM4.1-8B-mergedThe fine-tuning data used chat-style prompts. A typical training prompt looked like this:
System:
你是中文语境校对助手。只输出更合适的句子,不要解释。
User:
上下文:类别:微信非正式;场景:微信朋友聊天,轻松提醒回复;语气:短句、轻松、适合微信朋友聊天。原句的语法基本能懂,但不适合当前语境。
原句:如果你有时间,请回复我关于这个问题的消息。
任务:请根据上下文把原句改成更合适的中文。/no_think
Assistant:
有空回我一下关于这个问题的事。
This model is intended for:
It is not intended for long-form rewriting, translation, legal/medical advice, or open-ended assistant chat.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Alphaplasti/ToneBridge-MiniCPM4.1-8B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
device_map="auto",
)
For memory-constrained Spaces, load the model in 4-bit quantization.
This model is derived from openbmb/MiniCPM4.1-8B. Please review and respect the base
model's license and usage conditions.