Instructions to use khu-bot/polyglot-essayist with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khu-bot/polyglot-essayist with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="khu-bot/polyglot-essayist")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("khu-bot/polyglot-essayist") model = AutoModelForCausalLM.from_pretrained("khu-bot/polyglot-essayist") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use khu-bot/polyglot-essayist with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khu-bot/polyglot-essayist" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "khu-bot/polyglot-essayist", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/khu-bot/polyglot-essayist
- SGLang
How to use khu-bot/polyglot-essayist 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 "khu-bot/polyglot-essayist" \ --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": "khu-bot/polyglot-essayist", "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 "khu-bot/polyglot-essayist" \ --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": "khu-bot/polyglot-essayist", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use khu-bot/polyglot-essayist with Docker Model Runner:
docker model run hf.co/khu-bot/polyglot-essayist
Polyglot Essayist
polyglot-ko-1.3b 사전학습 모델을 수필 데이터를 활용하여 finetune 했습니다.
이 모델은 제목을 이용해 본문의 내용을 생성합니다. 프롬프트의 형식은 "제목: <뭔가 제목~~~>\n" 형식이어야하며 추가로 내용은 입력을 더 해줘도 되고 그냥 사용하셔도 됩니다.
- Downloads last month
- 4