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
update metric score
Browse files
README.md
CHANGED
|
@@ -72,11 +72,11 @@ As with all language models, it is hard to predict in advance how GPT-NeoX-Ko wi
|
|
| 72 |
|
| 73 |
<figure>
|
| 74 |
|
| 75 |
-
| Model | Public | Training FLOPs |
|
| 76 |
|--------------------------|-------------|----------------|--- |--- |--- |--- |--- |-------------------|
|
| 77 |
-
| KoGPT-trinity‡ | ✗ | ----- |
|
| 78 |
-
| KoGPT-KakaoBrain‡ | ✗ | ----- |
|
| 79 |
-
| GPT-NeoX-Ko-1.3B(ours)‡ | ✗ | ----- |
|
| 80 |
|
| 81 |
|
| 82 |
<figcaption><p>Models roughly sorted by performance, or by FLOPs if not available.</p>
|
|
@@ -111,17 +111,6 @@ To cite this model:
|
|
| 111 |
}
|
| 112 |
```
|
| 113 |
|
| 114 |
-
To cite the codebase that trained this model:
|
| 115 |
-
```bibtex
|
| 116 |
-
@misc{mesh-transformer-jax,
|
| 117 |
-
author = {Wang, Ben},
|
| 118 |
-
title = {{Mesh-Transformer-JAX: Model-Parallel Implementation of Transformer Language Model with JAX}},
|
| 119 |
-
howpublished = {\url{https://github.com/kingoflolz/mesh-transformer-jax}},
|
| 120 |
-
year = 2021,
|
| 121 |
-
month = May
|
| 122 |
-
}
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
If you use this model, we would love to hear about it! Reach out on [GitHub](https://github.com/kingoflolz/mesh-transformer-jax), Discord, or shoot Ben an email.
|
| 126 |
|
| 127 |
## Acknowledgements
|
|
|
|
| 72 |
|
| 73 |
<figure>
|
| 74 |
|
| 75 |
+
| Model | Public | Training FLOPs | kobest_boolq β | kobest_copa β | kobest_wic β | kobest_hellaswag β | kobest_sentineg β | Dataset Size (GB) |
|
| 76 |
|--------------------------|-------------|----------------|--- |--- |--- |--- |--- |-------------------|
|
| 77 |
+
| KoGPT-trinity‡ | ✗ | ----- | 0.6663 | 0.6222 | 0.656 | 0.4011 | 0.3534 | ----- |
|
| 78 |
+
| KoGPT-KakaoBrain‡ | ✗ | ----- | 0.3241 | 0.719 | 0.1356 | 0.4616 | 0.8065 | ----- |
|
| 79 |
+
| GPT-NeoX-Ko-1.3B(ours)‡ | ✗ | ----- | 0.5174 | 0.7072 | 0.6567 | 0.417 | 0.8444 | ----- |
|
| 80 |
|
| 81 |
|
| 82 |
<figcaption><p>Models roughly sorted by performance, or by FLOPs if not available.</p>
|
|
|
|
| 111 |
}
|
| 112 |
```
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
If you use this model, we would love to hear about it! Reach out on [GitHub](https://github.com/kingoflolz/mesh-transformer-jax), Discord, or shoot Ben an email.
|
| 115 |
|
| 116 |
## Acknowledgements
|