Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use armaanp/clean-gpt2-wikitext2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use armaanp/clean-gpt2-wikitext2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="armaanp/clean-gpt2-wikitext2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("armaanp/clean-gpt2-wikitext2") model = AutoModelForCausalLM.from_pretrained("armaanp/clean-gpt2-wikitext2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use armaanp/clean-gpt2-wikitext2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "armaanp/clean-gpt2-wikitext2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "armaanp/clean-gpt2-wikitext2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/armaanp/clean-gpt2-wikitext2
- SGLang
How to use armaanp/clean-gpt2-wikitext2 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 "armaanp/clean-gpt2-wikitext2" \ --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": "armaanp/clean-gpt2-wikitext2", "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 "armaanp/clean-gpt2-wikitext2" \ --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": "armaanp/clean-gpt2-wikitext2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use armaanp/clean-gpt2-wikitext2 with Docker Model Runner:
docker model run hf.co/armaanp/clean-gpt2-wikitext2
Commit History
-
End of training
Verified signature170efcf -
Training in progress, step 6500
Verified signature6608e1e -
Training in progress, step 6000
Verified signature5f58492 -
Training in progress, step 5500
Verified signature0f0d9b8 -
Training in progress, step 5000
Verified signature4046741 -
Training in progress, step 4500
Verified signature8467576 -
Training in progress, step 4000
Verified signature6c703f0 -
Training in progress, step 3500
Verified signaturea3e7a26 -
Training in progress, step 3000
Verified signaturea41def9 -
Training in progress, step 2500
Verified signature4ef33ca -
Training in progress, step 2000
Verified signatureed41fff -
Training in progress, step 1500
Verified signatured40f3ca -
Training in progress, step 1000
Verified signature9738203 -
Training in progress, step 500
Verified signature317af46 -
Training in progress, step 6000
Verified signaturefb2d7d8 -
Training in progress, step 5500
Verified signature59564f4 -
Training in progress, step 5000
Verified signatured9e74f7 -
Training in progress, step 4500
Verified signature72c0be0 -
Training in progress, step 4000
Verified signature2fa7411 -
Training in progress, step 3500
Verified signature2a5238e -
Training in progress, step 3000
Verified signaturefae5f82 -
Training in progress, step 2500
Verified signatureffdca29 -
Training in progress, step 2000
Verified signatureacdf8ba -
Training in progress, step 1500
Verified signature7d4ff29 -
Training in progress, step 1000
Verified signaturead6943a -
Training in progress, step 500
Verified signature26687bc -
Training in progress, step 1500
Verified signature307fa73 -
Training in progress, step 500
Verified signature98befb1 -
Training in progress, step 1000
Verified signaturefc654f3 -
Training in progress, step 500
Verified signature94133c4 -
Training in progress, step 500
Verified signature35a8879 -
Training in progress, step 5000
Verified signatured3bf0e7 -
Training in progress, step 4500
Verified signature4e1a7cf -
Training in progress, step 4000
Verified signature92f9548 -
Training in progress, step 3500
Verified signaturedea4479 -
Training in progress, step 3000
Verified signatureef8a77f -
Training in progress, step 2500
Verified signature241eb65 -
Training in progress, step 2000
Verified signatureb9bf872 -
Training in progress, step 1500
Verified signature35b7100 -
Training in progress, step 1000
Verified signature6e720bb -
Training in progress, step 500
Verified signature9a4ae85 -
Training in progress, step 5000
Verified signaturebe4cc37 -
Training in progress, step 4500
Verified signature49049e5 -
Training in progress, step 4000
Verified signature547ae46 -
Training in progress, step 3500
Verified signature97f472d -
Training in progress, step 3000
Verified signature2a4ed9a -
Training in progress, step 2500
Verified signature323587f -
Training in progress, step 2000
Verified signaturec440918 -
Training in progress, step 1500
Verified signatureb8a4720 -
Training in progress, step 1000
Verified signatureb27f951