Text Generation
Transformers
PyTorch
Safetensors
Korean
gpt_neox
causal-lm
text-generation-inference
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")# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Update README.md
557e162
-
add safetensors weights
0a64af5
-
Update README.md
48cb0a6 -
Update README.md
1e00d78 -
Update README.md
7a5c19a
-
Update README.md
a5575a8
-
Update README.md
17d963f -
Update README.md
eef1be6 -
Update README.md
e866b8a
-
Update README.md
054ad2b
-
Update README.md
711da29
-
Update README.md
f2aa936 -
Update README.md
b24c33a
-
Update README.md
4e68da7 -
Update README.md
96e9233 -
Update README.md
8203060 -
Update README.md
a95c9b0 -
Update README.md
be707dc -
Update README.md
cdbc65b -
Update README.md
a1e5aed -
Update README.md
8c617c2 -
Update README.md
b3c65a5 -
Update README.md
3b761ae -
Update README.md
0920012 -
Update README.md
2aebddf -
Update README.md
c750458
-
Update README.md
614fe66
-
Update README.md
6bb7d5b -
Update README.md
4fe9d81 -
Update README.md
d9c1d6a
-
Update README.md
8bd6f6d -
Update README.md
3b9cfe4 -
Update README.md
2d5b2bf
-
Update README.md
df8abe5 -
Update README.md
c0752a7 -
Update README.md
1b4ebdb -
Update README.md
f107078 -
Update README.md
2a80cf1 -
Update README.md
2dbdad8 -
Update README.md
b69b8d6
-
Update config.json
39801cb -
Update config.json
5d649dd
-
Update README.md
82f7e31 -
Update README.md
aff88e3 -
Update README.md
caa6744 -
Update tokenizer_config.json
42da130 -
Update tokenizer_config.json
a9367b9 -
Update tokenizer_config.json
fc3444f -
Update tokenizer_config.json
20acf6f -
Update config.json
5a68d75