maywell/ko_Ultrafeedback_binarized
Viewer • Updated • 62k • 81 • 37
How to use dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach")
model = AutoModelForCausalLM.from_pretrained("dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach")How to use dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach
How to use dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach" \
--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": "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach",
"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 "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach" \
--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": "dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach with Docker Model Runner:
docker model run hf.co/dddsaty/OPEN_SOLAR_KO_10.7B_DPO_Adapter_Attach
Explanation
Base Model
Used Corpus
Score
| Average | Ko-ARC | Ko-HellaSwag | Ko-MMLU | Ko-TruthfulQA | Ko-CommonGen V2 |
|---|---|---|---|---|---|
| 52.83 | 50 | 60.55 | 48.8 | 71.51 | 43.65 |
Log
LICENSE
Citation
@misc {solar_ko_junbum_2023,
author = { {L. Junbum} },
title = { Solar-Ko-10.7b },
year = 2024,
url = { https://huggingface.co/beomi/SOLAR-KO-10.7B },
publisher = { Hugging Face }
}