CoolFace
Modelpublic

luispoveda93/MiniCPM5-2B-catalan-chat-GGUF

sourceHugging Faceotherupdated 13d agoView on Hugging Face
0likes212downloads
Model Card

MiniCPM5-2B-catalan-chat — GGUF

GGUF conversions of [luispoveda93/MiniCPM5-2B-catalan-chat](https://huggingface.co/luispoveda93/MiniCPM5-2B-catalan-chat) — a LoRA fine-tune of openbmb/MiniCPM5-2B on projecte-aina/InstruCAT (165,100 Catalan instructions, 1 epoch) for conversational Catalan.

Converted with llama.cpp convert_hf_to_gguf.py (fp16) and quantized with llama-quantize. The chat template is embedded in the GGUF metadata (tokenizer.chat_template).

Available quants

FileQuantSizeNotes
MiniCPM5-2B-catalan-chat-Q4_K_M.ggufQ4KM1.6 GBBest size/quality trade-off for most uses
MiniCPM5-2B-catalan-chat-Q8_0.ggufQ8_02.7 GBNear-lossless
MiniCPM5-2B-catalan-chat-f16.ggufF165.0 GBReference / re-quantization source

Usage

llama.cpp

bash
llama-cli -m MiniCPM5-2B-catalan-chat-Q4_K_M.gguf \
  --chat-template llama3 \
  -p "Ets un assistent conversacional que respon sempre en català.\nUser: Hola! Com estàs?"

Or with the server (the embedded chat template is applied automatically):

bash
llama-server -m MiniCPM5-2B-catalan-chat-Q4_K_M.gguf --port 8080

Ollama

Create a Modelfile:

FROM MiniCPM5-2B-catalan-chat-Q4_K_M.gguf
SYSTEM "Ets un assistent conversacional que respon sempre en català."
bash
ollama create minicpm5-catalan -f Modelfile
ollama run minicpm5-catalan

Details

  • Base model: openbmb/MiniCPM5-2B (2.5B params, Llama architecture, vocab 130,560)
  • Training: LoRA r=32/α=64, lr 2e-4, effective batch 32, max_length 2048 packed, completion-only loss; final loss ≈ 0.33, token accuracy ≈ 0.92 (see training metrics)
  • License: base model Apache-2.0; training data CC-BY-NC-ND-4.0 (non-commercial) — check InstruCAT terms before commercial use
  • Limitations: single-turn task-oriented training data; general chit-chat behavior comes from the base model