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 "devjwsong/gpt2-open-domain-dialogue" \
    --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": "devjwsong/gpt2-open-domain-dialogue",
		"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 "devjwsong/gpt2-open-domain-dialogue" \
        --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": "devjwsong/gpt2-open-domain-dialogue",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

Model Card for Model ID

This model is based on GPT2LMHeadModel which has been trained with a total of 4 open-domain dialogue dataset.

Model Details

The details can be found on my blog posts:

Model Description

This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.

  • Developed by: devjwsong
  • Model type: GPT2LMHeadModel
  • Language(s) (NLP): English
  • License: MIT
  • Finetuned from model [optional]: openai-community/gpt2

Model Sources

Citation

BibTeX:

@misc{Song_2020,
  title={Multi-turn chatbot project (3): GPT-2 chatbot with multi-turn generation settings},
  url={https://songstudio.info/tech/tech-35},
  journal={SongStudio},
  author={Song, Jaewoo},
  year={2020},
  month={Nov}
} 

Model Card Authors

  • Jaewoo (Kyle) Song

Model Card Contact

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train devjwsong/gpt2-open-domain-dialogue