How to use from
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 "sangdal/ChatBot" \
    --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": "sangdal/ChatBot",
		"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 "sangdal/ChatBot" \
        --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": "sangdal/ChatBot",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

https://huggingface.co/taeminlee/kogpt2์„ ๊ธฐ๋ฐ˜์œผ๋กœ https://github.com/codertimo/KorQuAD-Question-Generation ์„ ๊ฐ€์ง€๊ณ  ๋ฌธ๋งฅ์„ ์ž…๋ ฅ ํ–ˆ์„๋•Œ ์งˆ๋ฌธ์„ ๋ฝ‘์•„์ฃผ๋Š” ๋ชจ๋ธ๋กœ ์ˆ˜์ • ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ํ•™์›์—์„œ ํ”„๋กœ์ ํŠธ๋กœ ์“ฐ๊ธฐ ์œ„ํ•ด ์ œ์ž‘ ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

์ฝ”๋žฉ์—์„œ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๊ฒŒ ์ฝ”๋žฉ ์†Œ์Šค๋„ ํ•จ๊ป˜ ๋ฐฐํฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. tokenizer์˜ vocab.json, merges.txt ์œ„์น˜ ์ž˜ ์žก์•„์ฃผ์…”์•ผํ•ฉ๋‹ˆ๋‹ค.

2023-08-06

  • ํ•™์Šต์šฉ ๋ฐ์ดํ„ฐ๋Ÿ‰ ์ด : 4087
  • Train : 3269 [train.jsonํŒŒ์ผ]
  • Test : 818 [dev.jsonํŒŒ์ผ] ** ์ตœ์‹  ์—…๋กœ๋“œ ๋ชจ๋ธ
Downloads last month
4
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support