Downloads · 30 days
470
100% of all-time downloads
luispoveda93/MiniCPM5-2B-catalan-chat-v2
MiniCPM5-2B-catalan-chat-v2 is a text generation model from luispoveda93. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Conversational Catalan chat model — round 2. A LoRA fine-tune of luispoveda93/MiniCPM5-2B-catalan-chat (itself a LoRA fine-tune of openbmb/MiniCPM5-2B on InstruCAT) focused on multi-turn chat behaviour.
Downloads · 30 days
470
100% of all-time downloads
All-time downloads
470
Public
Parameters
2.5B
15.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
Conversational Catalan chat model — round 2. A LoRA fine-tune of luispoveda93/MiniCPM5-2B-catalan-chat (itself a LoRA fine-tune of openbmb/MiniCPM5-2B on InstruCAT) focused on multi-turn chat behaviour.
Round 1 trained on single-turn task instructions (projecte-aina/InstruCAT). Round 2 trains on 23.4K multi-turn Catalan conversations from the chat-dense sources of BSC-LT/ALIA-2606-SFT — the SFT mixture that trained ALIA-40b-instruct-2606:
| Source | Conversations | What it teaches |
|---|---|---|
| mturn-plus5 (multi-turn augmentation) | 5,281 | multi-turn conversation flow |
| eif (exact instruction following) | 5,821 | instruction adherence |
| mentor-ca | 5,047 | mentoring/dialogue |
| dolly-ca | 2,449 | open-ended instruction following |
| coqcat | 2,372 | conversational QA |
| alia-identity | 1,259 | self-identity |
| system-prompt multi-turn | 1,226 | system-prompt adherence |
All conversations CC-BY-4.0 (removes round-1's non-commercial restriction on the training data; note InstruCAT is still in the round-1 lineage). A Catalan system prompt ("Ets un assistent conversacional que respon sempre en català.") was prepended to conversations lacking one. 400 conversations held out for eval.
luispoveda93/MiniCPM5-2B-catalan-chat (round-1 merged model)from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("luispoveda93/MiniCPM5-2B-catalan-chat-v2", dtype="bfloat16")
tok = AutoTokenizer.from_pretrained("luispoveda93/MiniCPM5-2B-catalan-chat-v2")
messages = [
{"role": "system", "content": "Ets un assistent conversacional que respon sempre en català."},
{"role": "user", "content": "Hola! Com estàs avui?"},
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
print(tok.decode(model.generate(inputs, max_new_tokens=256)[0][inputs.shape[1]:], skip_special_tokens=True))