tellang/yeji-fortune-telling-ko-v3
Viewer β’ Updated β’ 35.6k β’ 19
How to use tellang/yeji-8b-rslora-v7 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="tellang/yeji-8b-rslora-v7")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tellang/yeji-8b-rslora-v7")
model = AutoModelForCausalLM.from_pretrained("tellang/yeji-8b-rslora-v7", 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=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use tellang/yeji-8b-rslora-v7 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "tellang/yeji-8b-rslora-v7"
# 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-8b-rslora-v7",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/tellang/yeji-8b-rslora-v7
How to use tellang/yeji-8b-rslora-v7 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "tellang/yeji-8b-rslora-v7" \
--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-8b-rslora-v7",
"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-8b-rslora-v7" \
--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-8b-rslora-v7",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use tellang/yeji-8b-rslora-v7 with Docker Model Runner:
docker model run hf.co/tellang/yeji-8b-rslora-v7
νκ΅μ΄ μ΄μΈ/μ μ λλ©μΈ νΉν 8B LLM. Qwen3-8B-Base κΈ°λ° RSLoRA νμΈνλ.
YEJI νλ‘μ νΈμ 8B μ£Όλ ₯ λͺ¨λΈμ λλ€. Qwen3-8B-Baseλ₯Ό RSLoRA (Rank-Stabilized LoRA)λ‘ νμΈνλνμ¬ μ¬μ£Ό, μ μ±μ , νλ‘, νν¬ 4κ° λλ©μΈμμ μ λ¬Έ μλ΄ λ₯λ ₯μ κ°μΆμμ΅λλ€.
| Version | Base | Method | Params | Status |
|---|---|---|---|---|
| v1 | Qwen3-8B | QDoRA | 8.2B | Deprecated |
| v2 | Qwen3-8B | QLoRA | 8.2B | Deprecated |
| v4 | Qwen3-8B | RSLoRA + T-Shirt | 8.2B | Deprecated |
| v7 | Qwen3-8B | RSLoRA | 8.2B | Stable |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "tellang/yeji-8b-rslora-v7"
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-8b-rslora-v7-AWQ | vLLM μλΉ |
| Model | Params | Status |
|---|---|---|
| yeji-4b-instruct-v9 | 4.0B | Latest |
| yeji-4b-instruct-v9-AWQ | ~1.3B | Production |