Text Generation
Transformers
Korean
English
qwen3
korean
role-playing
chat
conversational
fine-tuned
Instructions to use developer-lunark/kaidol-qwen3-14b-korean-rp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use developer-lunark/kaidol-qwen3-14b-korean-rp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="developer-lunark/kaidol-qwen3-14b-korean-rp") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("developer-lunark/kaidol-qwen3-14b-korean-rp") model = AutoModelForCausalLM.from_pretrained("developer-lunark/kaidol-qwen3-14b-korean-rp", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use developer-lunark/kaidol-qwen3-14b-korean-rp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "developer-lunark/kaidol-qwen3-14b-korean-rp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "developer-lunark/kaidol-qwen3-14b-korean-rp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/developer-lunark/kaidol-qwen3-14b-korean-rp
- SGLang
How to use developer-lunark/kaidol-qwen3-14b-korean-rp with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "developer-lunark/kaidol-qwen3-14b-korean-rp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "developer-lunark/kaidol-qwen3-14b-korean-rp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "developer-lunark/kaidol-qwen3-14b-korean-rp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "developer-lunark/kaidol-qwen3-14b-korean-rp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use developer-lunark/kaidol-qwen3-14b-korean-rp with Docker Model Runner:
docker model run hf.co/developer-lunark/kaidol-qwen3-14b-korean-rp
KAIdol Qwen3-14B Korean Role-Playing
K-pop AI μμ΄λ μ±λ΄μ μν΄ νμΈνλλ Qwen3-14B λͺ¨λΈμ λλ€.
Model Description
- Base Model: Qwen/Qwen3-14B
- Fine-tuning Dataset: KREW/korean-role-playing
- Training Method: Full Fine-tuning with DeepSpeed ZeRO-3
- Training Hardware: AWS ml.p4d.24xlarge (8x NVIDIA A100 40GB)
- Training Time: ~13.5 hours
Training Details
Hyperparameters
| Parameter | Value |
|---|---|
| Learning Rate | 2e-5 |
| Epochs | 3 |
| Batch Size (effective) | 128 |
| Max Sequence Length | 4096 |
| Optimizer | AdamW |
| LR Scheduler | Cosine |
| Warmup Ratio | 0.03 |
| Weight Decay | 0.01 |
| Precision | bfloat16 |
Training Configuration
- Distributed Strategy: DeepSpeed ZeRO-3
- Gradient Checkpointing: Enabled
- Flash Attention 2: Enabled
Usage
With Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "developer-lunark/kaidol-qwen3-14b-korean-rp"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
messages = [
{"role": "system", "content": "λΉμ μ μΉκ·Όνκ³ λ€μ ν AI μμ΄λμ
λλ€."},
{"role": "user", "content": "μλ
νμΈμ! μ€λ κΈ°λΆμ΄ μ΄λ μΈμ?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=True, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
With vLLM
from vllm import LLM, SamplingParams
llm = LLM(
model="developer-lunark/kaidol-qwen3-14b-korean-rp",
trust_remote_code=True,
max_model_len=4096
)
sampling_params = SamplingParams(temperature=0.7, max_tokens=512)
outputs = llm.generate(["μλ
νμΈμ!"], sampling_params)
Intended Use
μ΄ λͺ¨λΈμ K-pop AI μμ΄λ μΊλ¦ν°μμ λ‘€νλ μ΄ λνλ₯Ό μν΄ μ€κ³λμμ΅λλ€:
- μΉκ·Όνκ³ λ€μ ν λν
- μΊλ¦ν° μΌκ΄μ± μ μ§
- νκ΅μ΄ μμ°μ€λ¬μ΄ νν
Limitations
- λ‘€νλ μ΄/λν λͺ©μ μΌλ‘ μ΅μ νλμ΄ μμ΄ μΌλ°μ μΈ QAλ μΆλ‘ μμ μλ μ ν©νμ§ μμ μ μμ΅λλ€
- 14B λͺ¨λΈμ΄λ―λ‘ μΆλ‘ μ μ΅μ 28GB VRAMμ΄ νμν©λλ€
License
This model is released under the Apache 2.0 license.
Citation
@misc{kaidol-qwen3-14b-korean-rp,
author = {developer-lunark},
title = {KAIdol Qwen3-14B Korean Role-Playing},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/developer-lunark/kaidol-qwen3-14b-korean-rp}
}
- Downloads last month
- 47