haebo/meow-v1-dataset
Viewer β’ Updated β’ 8.78k β’ 6
How to use haebo/meow-clovax-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="haebo/meow-clovax-v1")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("haebo/meow-clovax-v1")
model = AutoModelForCausalLM.from_pretrained("haebo/meow-clovax-v1", 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]:]))How to use haebo/meow-clovax-v1 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "haebo/meow-clovax-v1"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "haebo/meow-clovax-v1",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/haebo/meow-clovax-v1
How to use haebo/meow-clovax-v1 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "haebo/meow-clovax-v1" \
--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": "haebo/meow-clovax-v1",
"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 "haebo/meow-clovax-v1" \
--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": "haebo/meow-clovax-v1",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use haebo/meow-clovax-v1 with Docker Model Runner:
docker model run hf.co/haebo/meow-clovax-v1
meow-clovax-v1μ κ°μ (emotion)κ³Ό λλ¬Ό μ ν(post_type)μ λ°λΌ λ¬Έμ₯μ μμ°μ€λ½κ² λ³ννλ νκ΅μ΄ LLMμ λλ€.
naver-hyperclovax/HyperCLOVAX-SEED-Text-Instruct-1.5Bλ₯Ό κΈ°λ°μΌλ‘ Supervised Finetuning(SFT) λ°©μμΌλ‘ νμ΅λμμ΅λλ€.| νλͺ© | μ€λͺ |
|---|---|
| Base Model | HyperCLOVAX-SEED-Text-Instruct-1.5B |
| Fine-tuning Method | Supervised Finetuning (SFT) |
| Model Type | Decoder-only |
| Language | Korean (primary) |
| Parameters | 1.5B |
| Precision | fp16 / fp32 |
| Version | v1 |
| Framework | Transformers |
| license | hyperclovax-seed |
content, emotion, post_type, transformed_content νλλ‘ κ΅¬μ±λ jsonl λ°μ΄ν°μ
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "haebo/meow-clovax-v1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
content = "μ§μ¦λ¬κ² λ€ λλ μμΉ¨λ§λ€ μ§μ¦λ¨"
emotion = "angry"
post_type = "cat"
instruction = f"λ€μ λ¬Έμ₯μ {post_type}μ {emotion}ν λ§ν¬λ‘ λ°κΏμ€."
prompt = (
f"### Instruction:\n{example['instruction']}\n"
f"### Input:\n{example['input']}\n"
f"### Output:\n{example['output']}"
)
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=400)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
v1 λͺ¨λΈμλ μλμ κ°μ λ°μ΄ν°μ μ΄ μ¬μ©λμμ΅λλ€.μ΄ λ°μ΄ν°λ€μ λ³λμ μ μ²λ¦¬(ν΄λμ§/νν°λ§) μμ΄ μλ³Έ κ·Έλλ‘ νμ©λμμ΅λλ€.
νμΈνλ μ ν둬ννΈ κ΅¬μ‘°μ λ§κ² λ³κ²½λμμ΅λλ€.
λ°μ΄ν° ꡬ쑰
κ° μνμ μλμ κ°μ νλλ‘ κ΅¬μ±λμ΄ μμ΅λλ€.
content: μλ³Έ λ¬Έμ₯ (μΌμ νκ΅μ΄)emotion: κ°μ λ μ΄λΈ (μ: happy, sad, angry λ±)post_type: λλ¬Ό μ ν (μ: cat, dog)transformed_content: κ°μ λ° λλ¬Ό λ§ν¬λ‘ λ³νλ λ¬Έμ₯μμ
{
"content": "μ€λ μ μ¬ λ λ¨Ήμ§.",
"emotion": "normal",
"post_type": dog",
"transformed_content": "μ€λ μ μ¬ λ λ¨Ήμ§λ©? πΎ λ§μλ λμκ° λλ κ² κ°λ€λ©! μ£ΌμΈλ, μ λ°₯ μ΄λ¨λμ! 빨리 λ°₯κ·Έλ¦ μ±μλ¬λΌλ©! 𦴠αβΒ΄ κ³ `βα"
}