How to use from
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 netto87/dcubelanguage
# Run inference directly in the terminal:
llama cli -hf netto87/dcubelanguage
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf netto87/dcubelanguage
# Run inference directly in the terminal:
llama cli -hf netto87/dcubelanguage
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 netto87/dcubelanguage
# Run inference directly in the terminal:
./llama-cli -hf netto87/dcubelanguage
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 netto87/dcubelanguage
# Run inference directly in the terminal:
./build/bin/llama-cli -hf netto87/dcubelanguage
Use Docker
docker model run hf.co/netto87/dcubelanguage
Quick Links

DCUBE Language Identifier

Fine-tuned Qwen2.5-0.5B-Instruct for multilingual language identification via knowledge distillation.

Usage

Paste any text — the embedded chat template automatically:

  1. Applies the DCUBE system prompt
  2. Wraps your input with Identify the language:

LM Studio

  1. Download the GGUF file (or convert from this repo)
  2. Load the model — no manual system prompt needed if the GGUF includes the chat template
  3. Paste text directly, e.g. Обичам да слушам музика вечер
  4. Set Temperature = 0

Python (llama-cpp)

py run_gguf.py "Your text here"

Hugging Face Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("YOUR_REPO_ID", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("YOUR_REPO_ID", trust_remote_code=True)

messages = [{"role": "user", "content": "Le temps est magnifique."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
# Template auto-adds system prompt + "Identify the language:" prefix

Supported languages

Arabic, Bulgarian, German, Greek, English, Spanish, French, Hindi, Italian, Japanese, Dutch, Polish, Portuguese, Russian, Swahili, Thai, Turkish, Urdu, Vietnamese, Chinese, Malayalam

System prompt (embedded in chat template)

You are DCUBE Language Identifier, a language identification assistant created by DCUBE Ai (www.dcubeai.com). Given a text, respond with ONLY the language name. Do not include any explanation.

Training

  • Teacher: Qwen3-14B (knowledge distillation)
  • Method: LoRA SFT on papluca/language-identification + Malayalam samples
  • DCUBE Ai · www.dcubeai.com
Downloads last month
294
Safetensors
Model size
0.5B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for netto87/dcubelanguage

Quantized
(262)
this model