Instructions to use EleutherAI/polyglot-ko-1.3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/polyglot-ko-1.3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/polyglot-ko-1.3b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/polyglot-ko-1.3b") model = AutoModelForCausalLM.from_pretrained("EleutherAI/polyglot-ko-1.3b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EleutherAI/polyglot-ko-1.3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/polyglot-ko-1.3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EleutherAI/polyglot-ko-1.3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/polyglot-ko-1.3b
- SGLang
How to use EleutherAI/polyglot-ko-1.3b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "EleutherAI/polyglot-ko-1.3b" \ --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": "EleutherAI/polyglot-ko-1.3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
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 "EleutherAI/polyglot-ko-1.3b" \ --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": "EleutherAI/polyglot-ko-1.3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/polyglot-ko-1.3b with Docker Model Runner:
docker model run hf.co/EleutherAI/polyglot-ko-1.3b
I can't reproduce the kobest_hellaswag
As I tried to reproduce the polyglot evaluation, kobest_hellaswag does not match, although other datasets(kobest_copa, wic, boolq) match well.
Is there a problem or the kobest_hellaswage data has been changed?
์ ๋ skt/kogpt-trinity-1.2b-v0.5 ๋ชจ๋ธ์ lm-evaluation-harness๋ก ํ๊ฐํด๋ณด์์ผ๋, ์ ์ฌํ๊ฒ HellaSwag์ WiC ํ์คํฌ์์ ์์ดํ ์ค์ฝ์ด๊ฐ ๋์์ต๋๋ค. (5-shot / F1 Score ๊ธฐ์ค์ผ๋ก) HellaSwag์ WiC๋ ์๋ฌธ์์ ๊ฐ๊ฐ 0.5272, 0.4313์ ์ ๋ฐ์๋ค๊ณ ํ์ง๋ง, ์ ๊ฐ ํ
์คํธํ ๊ฒฐ๊ณผ๋ก๋ 0.3999์ 0.3953๋ก ํฐ ์ฐจ์ด๊ฐ ๋ฌ์ต๋๋ค. ์์ธํ ๋ด์ฉ์ ๋ค์ ๋ธ๋ก๊ทธ ํฌ์คํธ์ ์ ์ด๋์์ต๋๋ค.