Text Generation
Transformers
PyTorch
TensorFlow
JAX
Safetensors
Korean
gpt2
text-generation-inference
Instructions to use lcw99/ko-dialoGPT-korean-chit-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lcw99/ko-dialoGPT-korean-chit-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lcw99/ko-dialoGPT-korean-chit-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lcw99/ko-dialoGPT-korean-chit-chat") model = AutoModelForCausalLM.from_pretrained("lcw99/ko-dialoGPT-korean-chit-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lcw99/ko-dialoGPT-korean-chit-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lcw99/ko-dialoGPT-korean-chit-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lcw99/ko-dialoGPT-korean-chit-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lcw99/ko-dialoGPT-korean-chit-chat
- SGLang
How to use lcw99/ko-dialoGPT-korean-chit-chat 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 "lcw99/ko-dialoGPT-korean-chit-chat" \ --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": "lcw99/ko-dialoGPT-korean-chit-chat", "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 "lcw99/ko-dialoGPT-korean-chit-chat" \ --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": "lcw99/ko-dialoGPT-korean-chit-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lcw99/ko-dialoGPT-korean-chit-chat with Docker Model Runner:
docker model run hf.co/lcw99/ko-dialoGPT-korean-chit-chat
dialoGPT-medium-korean-chit-chat
This model is a fine-tuning of Ko-DialoGPT model using AIHUB data "Korean SNS". This model chats in Korean terms used in messenger chats such as KakaoTalk.
μ΄ λͺ¨λΈμ Ko-DialoGPT modelμ AIHUB λ°μ΄ν° "νκ΅μ΄ SNS"λ₯Ό μ΄μ©νμ¬ fine tunning ν κ²μ λλ€. μ΄ λͺ¨λΈμ μΌλ° λ©μ μ μ±ν μμ μ¬μ©λλ μ©μ΄λ‘ μ±ν μ ν©λλ€.
Usage
Try the app in space
Framework versions
- Transformers 4.22.2
- TensorFlow 2.10.0
- Datasets 2.5.1
- Tokenizers 0.12.1
- Downloads last month
- 137