Downloads · 30 days
0
Aayush518/korean-conversation-checkpoint-250
korean-conversation-checkpoint-250 is a machine learning model from Aayush518. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A fine-tuned Korean conversation model optimized for natural dialogue, customer service, and chat applications.
Downloads · 30 days
0
Access
Public
Updated Oct 16, 2025
Repo size
7.3 MB
Likes
0
Public
Click a slice to open those files.
.json9.9 MB · 54%
From the Hugging Face model README
A fine-tuned Korean conversation model optimized for natural dialogue, customer service, and chat applications.
v_proj, q_projThis model is specifically optimized for:
pip install transformers torch bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
import torch
# Load model with 4-bit quantization (recommended)
model_name = "YOUR_USERNAME/korean-conversation-checkpoint-250"
quant_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
quantization_config=quant_config,
device_map="auto",
trust_remote_code=True
)
# Simple inference
def generate_response(instruction, input_text=""):
prompt = f"### Instruction:\n{instruction}\n\n### Input:\n{input_text}\n\n### Response:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=48,
temperature=0.5,
top_p=0.88,
do_sample=True,
repetition_penalty=1.15
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
return response.split("Response:")[-1].strip()
# Example
result = generate_response(
instruction="고객이 배송 조회를 요청하고 있습니다.",
input_text="제 주문이 어디에 있나요?"
)
print(result)
For production use, we provide an optimized inference class with caching, batch processing, and monitoring:
# Download inference.py from this repo
from inference import KoreanConversationInference, load_model
# Load model
model, tokenizer = load_model("YOUR_USERNAME/korean-conversation-checkpoint-250")
# Create inference system
korean_ai = KoreanConversationInference(
model=model,
tokenizer=tokenizer,
cache_size=256, # LRU cache for repeated queries
enable_monitoring=True
)
# Generate with optimized config
result = korean_ai.generate(
instruction="고객이 배송 조회를 요청하고 있습니다.",
input_text="제 주문이 어디에 있나요?",
gen_config='dataset_standard' # Optimized for dataset
)
print(f"Response: {result['response']}")
print(f"Time: {result['inference_time']:.3f}s")
print(f"Cached: {result['from_cache']}")
The inference class provides 5 dataset-optimized configurations:
| Config | Max Tokens | Temperature | Best For |
|---|---|---|---|
ultra_short | 32 | 0.4 | Quick answers, yes/no |
dataset_standard ⭐ | 48 | 0.5 | General conversation (recommended) |
dataset_extended | 80 | 0.6 | Detailed explanations |
conversation_flow | 64 | 0.55 | Natural dialogue |
polite_formal | 56 | 0.45 | Customer service, formal |
result = korean_ai.generate(
instruction="고객이 환불을 요청하고 있습니다.",
input_text="제품이 마음에 들지 않아요.",
gen_config='polite_formal'
)
result = korean_ai.generate(
instruction="사용자가 영업 시간을 문의하고 있습니다.",
input_text="매장 영업 시간이 어떻게 되나요?",
gen_config='ultra_short'
)
result = korean_ai.generate(
instruction="사용자가 제품 추천을 요청하고 있습니다.",
input_text="초보자한테 좋은 제품이 뭐가 있을까요?",
gen_config='conversation_flow'
)
adapter_model.safetensors - LoRA adapter weightsadapter_config.json - Adapter configurationinference.py - Production-ready inference classREADME.md - This fileThis model is released under the Apache 2.0 license. The base model (HyperCLOVAX-SEED-Vision-Instruct-3B) has its own license terms.
If you use this model, please cite:
@model{korean_conversation_checkpoint_250,
title={Korean Conversation Model - Checkpoint 250},
author={Your Name},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/YOUR_USERNAME/korean-conversation-checkpoint-250}
}
For issues, questions, or feedback, please open an issue in the repository.
Made with ❤️ for the Korean NLP community