Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zohaib002/GPT2-Model-Large-Dataset-Psycho")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zohaib002/GPT2-Model-Large-Dataset-Psycho") model = AutoModelForCausalLM.from_pretrained("Zohaib002/GPT2-Model-Large-Dataset-Psycho") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zohaib002/GPT2-Model-Large-Dataset-Psycho" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Zohaib002/GPT2-Model-Large-Dataset-Psycho
- SGLang
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho 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 "Zohaib002/GPT2-Model-Large-Dataset-Psycho" \ --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": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "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 "Zohaib002/GPT2-Model-Large-Dataset-Psycho" \ --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": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with Docker Model Runner:
docker model run hf.co/Zohaib002/GPT2-Model-Large-Dataset-Psycho
Ctrl+K
- Dec01_03-55-03_4ab13bf2e132
- Nov06_06-35-14_c834f524a516
- Nov06_06-49-44_c834f524a516
- Nov06_06-51-35_c834f524a516
- Nov27_18-44-29_def81e2668b5
- Nov28_18-31-19_0b2105eaf878
- Nov28_19-23-23_91f23b32cd58
- Nov28_19-58-00_047a5ea32355
- Nov28_20-25-24_64e0710e55a4
- Nov29_06-06-44_601cc10b298c
- Nov29_06-27-02_601cc10b298c
- Nov29_15-17-00_72f9557ebb3b
- Nov29_15-35-20_72f9557ebb3b
- Nov29_16-09-45_72f9557ebb3b
- Nov29_18-16-34_9cb9643df522
- Nov29_18-30-50_9cb9643df522
- Nov29_19-07-51_9cb9643df522
- Nov30_02-38-10_2183ebfc782d
- Nov30_02-52-24_7b876ac6023b
- Nov30_03-24-23_c4e1eed4bd64
- Nov30_03-27-10_c4e1eed4bd64
- Nov30_05-50-30_98fef5ca325d
- Nov30_17-32-01_1b816d918473
- Nov30_17-41-09_1b816d918473
- Nov30_17-57-03_1b816d918473
- Nov30_18-10-21_1b816d918473
- Oct17_06-51-18_1a8db98c9f2c
- Oct17_07-16-39_1a8db98c9f2c
- Oct17_07-17-12_1a8db98c9f2c
- Oct17_07-18-13_1a8db98c9f2c
- Oct20_11-38-45_15675d8b657d