tellang/yeji-fortune-telling-ko-v9
Viewer • Updated • 63.3k • 62
How to use tellang/yeji-4b-instruct-v9 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="tellang/yeji-4b-instruct-v9")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tellang/yeji-4b-instruct-v9")
model = AutoModelForCausalLM.from_pretrained("tellang/yeji-4b-instruct-v9")
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]:]))How to use tellang/yeji-4b-instruct-v9 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "tellang/yeji-4b-instruct-v9"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "tellang/yeji-4b-instruct-v9",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/tellang/yeji-4b-instruct-v9
How to use tellang/yeji-4b-instruct-v9 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "tellang/yeji-4b-instruct-v9" \
--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": "tellang/yeji-4b-instruct-v9",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "tellang/yeji-4b-instruct-v9" \
--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": "tellang/yeji-4b-instruct-v9",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use tellang/yeji-4b-instruct-v9 with Docker Model Runner:
docker model run hf.co/tellang/yeji-4b-instruct-v9
한국어 운세/점술 도메인 특화 LLM. Qwen3-4B 기반 RSLoRA 파인튜닝 모델 (v9, 최종).
YEJI는 사주(四柱), 서양 점성술, 타로, 화투 4개 도메인에 특화된 한국어 LLM입니다. v1부터 v9까지 9회 반복 실험을 거쳐 최적화되었습니다.
| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen3-4B |
| Method | RSLoRA |
| Dataset Size | 31,625 samples |
| Domains | 4 (사주, 점성술, 타로, 화투) |
| Language | Korean |
| Framework | Unsloth + Transformers |
| Version | Base | Method | Status |
|---|---|---|---|
| v1 | Qwen3-8B | QDoRA | Deprecated |
| v2 | Qwen3-8B | QLoRA | Deprecated |
| v7 | Qwen3-8B | RSLoRA | Stable (8B) |
| v9 | Qwen3-4B | RSLoRA | Latest (4B) |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "tellang/yeji-4b-instruct-v9"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
messages = [
{"role": "system", "content": "당신은 전문 사주 상담사입니다."},
{"role": "user", "content": "1997년 10월 24일생 사주 풀이를 부탁합니다."}
]
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, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Format | Model | Use Case |
|---|---|---|
| AWQ 4-bit | yeji-4b-instruct-v9-AWQ | vLLM 서빙, GPU 추론 |
| MLX 4-bit | yeji-4b-instruct-v9-mlx-4bit | Apple Silicon |
| GGUF | yeji-4b-gguf | llama.cpp, Ollama |
@misc{yeji-4b-instruct-v9,
author = {tellang},
title = {YEJI-4B-Instruct-v9: Korean Fortune-Telling Domain LLM},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/tellang/yeji-4b-instruct-v9}
}