kyujinpy/OpenOrca-KO
Viewer β’ Updated β’ 21.6k β’ 73 β’ 31
How to use werty1248/Llama-3-Ko-8B-OpenOrca with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="werty1248/Llama-3-Ko-8B-OpenOrca") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("werty1248/Llama-3-Ko-8B-OpenOrca")
model = AutoModelForCausalLM.from_pretrained("werty1248/Llama-3-Ko-8B-OpenOrca", device_map="auto")How to use werty1248/Llama-3-Ko-8B-OpenOrca with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "werty1248/Llama-3-Ko-8B-OpenOrca"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "werty1248/Llama-3-Ko-8B-OpenOrca",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/werty1248/Llama-3-Ko-8B-OpenOrca
How to use werty1248/Llama-3-Ko-8B-OpenOrca with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "werty1248/Llama-3-Ko-8B-OpenOrca" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "werty1248/Llama-3-Ko-8B-OpenOrca",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "werty1248/Llama-3-Ko-8B-OpenOrca" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "werty1248/Llama-3-Ko-8B-OpenOrca",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use werty1248/Llama-3-Ko-8B-OpenOrca with Docker Model Runner:
docker model run hf.co/werty1248/Llama-3-Ko-8B-OpenOrca
Original model: beomi/Llama-3-Open-Ko-8B (2024.04.24 λ²μ )
Dataset: kyujinpy/OpenOrca-KO
Training: Axolotlμ μ΄μ©ν΄ LoRA-8bitλ‘ 4epoch νμ΅ μμΌ°μ΅λλ€.
νμ΅ μκ°: A6000x2, 6μκ°
| Tasks | n-shot | Metric | Value | Stderr | |
|---|---|---|---|---|---|
| kobest_boolq | 0 | acc | 0.5021 | Β± | 0.0133 |
| kobest_copa | 0 | acc | 0.6920 | Β± | 0.0146 |
| kobest_hellaswag | 0 | acc | 0.4520 | Β± | 0.0223 |
| kobest_sentineg | 0 | acc | 0.7330 | Β± | 0.0222 |
| kobest_wic | 0 | acc | 0.4881 | Β± | 0.0141 |
| Tasks | n-shot | Metric | Value | Stderr | |
|---|---|---|---|---|---|
| kobest_boolq | 5 | acc | 0.7123 | Β± | 0.0121 |
| kobest_copa | 5 | acc | 0.7620 | Β± | 0.0135 |
| kobest_hellaswag | 5 | acc | 0.4780 | Β± | 0.0224 |
| kobest_sentineg | 5 | acc | 0.9446 | Β± | 0.0115 |
| kobest_wic | 5 | acc | 0.6103 | Β± | 0.0137 |