Instructions to use gorkemgoknar/gpt2chatbotenglish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gorkemgoknar/gpt2chatbotenglish with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gorkemgoknar/gpt2chatbotenglish") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gorkemgoknar/gpt2chatbotenglish") model = AutoModelForCausalLM.from_pretrained("gorkemgoknar/gpt2chatbotenglish") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gorkemgoknar/gpt2chatbotenglish with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gorkemgoknar/gpt2chatbotenglish" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gorkemgoknar/gpt2chatbotenglish", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gorkemgoknar/gpt2chatbotenglish
- SGLang
How to use gorkemgoknar/gpt2chatbotenglish 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 "gorkemgoknar/gpt2chatbotenglish" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gorkemgoknar/gpt2chatbotenglish", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "gorkemgoknar/gpt2chatbotenglish" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gorkemgoknar/gpt2chatbotenglish", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gorkemgoknar/gpt2chatbotenglish with Docker Model Runner:
docker model run hf.co/gorkemgoknar/gpt2chatbotenglish
Commit ·
6251a47
1
Parent(s): d18684a
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,9 @@ https://github.com/gorkemgoknar/moviescriptcleaner
|
|
| 26 |
Example persona how to:
|
| 27 |
https://gist.github.com/gorkemgoknar/ae29bf9d14fa814e6a64d0e57a4a4ed7
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 29 |
For obvious reasons I cannot share raw personafile but you can check above gist for example how to create it.
|
| 30 |
|
| 31 |
A working "full" demo can be seen in https://www.metayazar.com/chatbot
|
|
|
|
| 26 |
Example persona how to:
|
| 27 |
https://gist.github.com/gorkemgoknar/ae29bf9d14fa814e6a64d0e57a4a4ed7
|
| 28 |
|
| 29 |
+
Tried a AI job interview over some characters here, details on this post
|
| 30 |
+
https://www.linkedin.com/pulse/ai-goes-job-interview-g%C3%B6rkem-g%C3%B6knar/
|
| 31 |
+
|
| 32 |
For obvious reasons I cannot share raw personafile but you can check above gist for example how to create it.
|
| 33 |
|
| 34 |
A working "full" demo can be seen in https://www.metayazar.com/chatbot
|