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")# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Training in progress, step 548
Verified signature3075188 -
Training in progress, step 500
Verified signature8bc264b -
Training in progress, step 548
Verified signature891be01 -
Training in progress, step 500
Verified signature68bb84e -
Training in progress, step 548
Verified signature045b162 -
Training in progress, step 500
Verified signature839a0a5 -
Training in progress, step 548
Verified signature36978ce -
Training in progress, step 500
Verified signaturead04da7 -
Training in progress, step 548
Verified signatureef689f1 -
Training in progress, step 500
Verified signatureebea780 -
Training in progress, step 500
Verified signaturea1000a2 -
Training in progress, step 548
Verified signatureaeb17b3 -
Training in progress, step 500
Verified signatureb11822a -
Training in progress, step 548
Verified signaturef975258 -
Training in progress, step 500
Verified signature2488fd3 -
Training in progress, step 548
Verified signaturefa14b2c -
Training in progress, step 500
Verified signature99e0119 -
Training in progress, step 548
Verified signature8b9d94a -
Training in progress, step 500
Verified signature9546566 -
Training in progress, step 548
Verified signature2abcdca -
Training in progress, step 500
Verified signature67f25ba
-
Training in progress, step 548
Verified signature3a2abe6 -
Training in progress, step 500
Verified signature00a5c68 -
Training in progress, step 548
Verified signature17a28d7 -
Training in progress, step 500
Verified signature99e613a -
End of training
Verified signaturefdb3077 -
Training in progress, step 4384
Verified signature13925d6 -
Training in progress, step 4000
Verified signature69d6bce -
Training in progress, step 3500
Verified signature0df783c -
Training in progress, step 3000
Verified signature5671fdc -
Training in progress, step 2500
Verified signaturee03b902 -
Training in progress, step 2000
Verified signaturecbcfe82 -
Training in progress, step 1500
Verified signature3564b16 -
Training in progress, step 1000
Verified signaturee9f1306 -
Training in progress, step 500
Verified signaturecbd28a8 -
Training in progress, step 2000
Verified signature89def83 -
Training in progress, step 1500
Verified signature56950ed -
Training in progress, step 1000
Verified signaturef846a94 -
Training in progress, step 500
Verified signature4c4afe0 -
Training in progress, step 500
Verified signature6ca8f78 -
Training in progress, step 500
Verified signature324054e -
Training in progress, step 500
Verified signature79b27b7 -
Training in progress, step 548
Verified signature4bafba9 -
Training in progress, step 500
Verified signaturedcefdaf -
Training in progress, step 548
Verified signature1d1210b -
Training in progress, step 500
Verified signaturea3f0fe4
-
Training in progress, step 500
Verified signature5a97ffe -
Training in progress, step 500
Verified signature3bd886f -
Training in progress, step 500
Verified signatured814676 -
Training in progress, step 500
Verified signature2e522d4