Text Generation
Transformers
PyTorch
Safetensors
English
Korean
gpt2
generation
text-generation-inference
Instructions to use psyche/kogpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use psyche/kogpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="psyche/kogpt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("psyche/kogpt") model = AutoModelForCausalLM.from_pretrained("psyche/kogpt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use psyche/kogpt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "psyche/kogpt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "psyche/kogpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/psyche/kogpt
- SGLang
How to use psyche/kogpt 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 "psyche/kogpt" \ --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": "psyche/kogpt", "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 "psyche/kogpt" \ --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": "psyche/kogpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use psyche/kogpt with Docker Model Runner:
docker model run hf.co/psyche/kogpt
Commit History
-
Adding Evaluation Results
This is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions4f28714
-
Update README.md
fe35203 -
Update config.json
f8da832 -
Update README.md
7b0401e
-
Upload model
f726391
-
Delete rust_model.ot
a97bb2f
-
Upload model
f33663e -
Update README.md
72c091b -
Upload model
e70d425 -
Update README.md
8586c3a -
Update README.md
c4efaa5 -
Update README.md
b31de87 -
Upload model
3eff152
-
Upload model
78de23a
-
Upload model
5705d5b -
Upload model
77bd3bd -
Upload model
0be287a
-
Update README.md
2d27f50 -
Update README.md
c593b5d -
Update README.md
cb7a9c0 -
Update README.md
eb8b3a4 -
Update README.md
1c073e9 -
Create README.md
49b3808
-
Upload model
c8534cd -
Upload model
3a5de41
-
Upload model
19cbbea
-
Upload model
57451bc
-
Upload model
946baea
-
Upload model
3aabb27
-
Upload model
d745056 -
Upload model
1872787 -
Upload model
d13ef15
-
Update config.json
53073ae -
Upload model
86c068d -
Upload T5ForConditionalGeneration
d5ffe5c
-
Upload model
6672add -
Upload model
a68dcbc -
Upload model
964c384
-
Upload model
bb4efd9 -
Upload model
657ef03 -
Upload model
cc2504c -
Upload model
670817b -
Upload model
18c3732 -
Upload model
23c92c2
-
Upload model
1b9aa58 -
Upload model
0c85a26 -
Update config.json
f5889b7 -
Upload model
751128d
-
Upload model
1e4d394
-
Upload model
a5b8e54