Downloads · 30 days
14
5% of all-time downloads
mkd-hossain/keural-14.8b-stage2-vllm
keural-14.8b-stage2-vllm is a text generation model from mkd-hossain. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Keural is a 14.83B parameter bilingual Korean-English Mixture-of-Experts language model trained from scratch on Korean and English text. This repository contains the Stage 2 annealing checkpoint (120,000 steps total)…
Downloads · 30 days
14
5% of all-time downloads
All-time downloads
288
Public
Parameters
15.4B
30.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors30.7 GB · 100%
From the Hugging Face model README
Keural is a 14.83B parameter bilingual Korean-English Mixture-of-Experts language model trained from scratch on Korean and English text. This repository contains the Stage 2 annealing checkpoint (120,000 steps total) in HuggingFace Mixtral-compatible safetensors format, ready to serve with vLLM or Transformers.
Note: This is a base pretrained model, not an instruction-following or chat model. SFT (Supervised Fine-Tuning) training is planned as the next stage.
| Property | Value |
|---|---|
| Architecture | Mixtral MoE (MixtralForCausalLM) |
| Parameters | ~14.83B total (~2.9B active per token) |
| Layers | 24 |
| Hidden size | 4096 |
| Attention heads | 32 (GQA: 8 KV heads) |
| Experts | 8 total, top-2 active per token |
| FFN intermediate size | 5632 |
| Context length | 4096 tokens |
| Vocabulary | 131,072 |
| RoPE theta | 500,000 |
| Sliding window | 512 |
| Activation | SiLU |
| dtype | bfloat16 |
Custom SentencePiece tokenizer trained on Korean and English text.
| Token | String | ID |
|---|---|---|
| BOS | <bos> | 1 |
| EOS | <eos> | 2 |
| PAD | <pad> | 0 |
| UNK | <unk> | 3 |
Install vLLM:
pip install vllm==0.9.2 --no-build-isolation
pip install "transformers==4.57.0"
Serve as OpenAI-compatible API:
vllm serve mkd-hossain/keural-14.8b-stage2-vllm \
--dtype bfloat16 \
--max-model-len 4096
Query the API:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="token")
response = client.completions.create(
model="mkd-hossain/keural-14.8b-stage2-vllm",
prompt="인공지능이란 무엇인가?",
max_tokens=256,
temperature=0.7,
)
print(response.choices[0].text)
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "mkd-hossain/keural-14.8b-stage2-vllm"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
prompt = "인공지능이란 무엇인가?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.7,
top_p=0.9,
top_k=50,
repetition_penalty=1.1,
do_sample=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
prompt = "한국의 역사에 대해 설명해 주세요."
prompt = "Explain the history of artificial intelligence."
@misc{keural2026,
title = {Keural: A Bilingual Korean-English MoE Language Model},
author = {MKD Hossain},
year = {2026},
url = {https://huggingface.co/mkd-hossain/keural-14.8b-stage2-vllm}
}
Trained from scratch on KT Cloud NIPA2-H200 infrastructure using FSDP distributed training.