Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use bencyc1129/art-gpt2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bencyc1129/art-gpt2-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bencyc1129/art-gpt2-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bencyc1129/art-gpt2-base") model = AutoModelForCausalLM.from_pretrained("bencyc1129/art-gpt2-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bencyc1129/art-gpt2-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bencyc1129/art-gpt2-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bencyc1129/art-gpt2-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bencyc1129/art-gpt2-base
- SGLang
How to use bencyc1129/art-gpt2-base 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 "bencyc1129/art-gpt2-base" \ --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": "bencyc1129/art-gpt2-base", "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 "bencyc1129/art-gpt2-base" \ --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": "bencyc1129/art-gpt2-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bencyc1129/art-gpt2-base with Docker Model Runner:
docker model run hf.co/bencyc1129/art-gpt2-base
Commit History
-
Model save
Verified signature2779897 -
Training in progress, step 3100
Verified signaturea314c9c -
Training in progress, step 3000
Verified signature2d7af0f -
Training in progress, step 2500
Verified signaturead9c450 -
Training in progress, step 2400
Verified signaturedbde355 -
Training in progress, step 2300
Verified signature465adcd -
Training in progress, step 2200
Verified signature9ae066e -
Training in progress, step 2100
Verified signaturee0d8d3a -
Training in progress, step 1900
Verified signature7d342c2 -
Training in progress, step 1800
Verified signature4d741e8 -
Training in progress, step 1700
Verified signaturee2e5ae4 -
Training in progress, step 1600
Verified signature3350333 -
Training in progress, step 1300
Verified signature2642648 -
Training in progress, step 1200
Verified signaturee4d0214 -
Training in progress, step 1100
Verified signature0bb074a -
Training in progress, step 1000
Verified signatureebd898e -
Training in progress, step 900
Verified signature5601c2e -
Training in progress, step 800
Verified signature3bb06ac -
Training in progress, step 700
Verified signature22d40e3 -
Training in progress, step 600
Verified signature292edae -
Training in progress, step 500
Verified signature8f03dc5 -
Training in progress, step 300
Verified signatured318227 -
Training in progress, step 100
Verified signature4efd340 -
Training in progress, step 13000
Verified signature9141e90 -
Training in progress, step 12000
Verified signature41a805a -
Training in progress, step 11000
Verified signature4c14dac -
Training in progress, step 10000
Verified signature49c737c -
Training in progress, step 9000
Verified signaturea9142df -
Training in progress, step 7000
Verified signaturee1e4d2f -
Training in progress, step 6000
Verified signature3b769db -
Training in progress, step 5000
Verified signaturec987039 -
Training in progress, step 4000
Verified signaturefa93511 -
Training in progress, step 3000
Verified signatureb312b0c -
Training in progress, step 2000
Verified signaturecb421ea -
Training in progress, step 1000
Verified signaturee1e6182 -
Upload tokenizer
Verified signature774d10e -
Upload tokenizer
Verified signature912b998 -
Upload tokenizer
Verified signature4e4b28a -
Upload tokenizer
Verified signaturee7bc562
-
Training in progress, step 1000
Verified signature1723695 -
Upload tokenizer
Verified signaturebed69e9 -
Training in progress, step 4000
Verified signature5dacb3c -
Training in progress, step 1000
Verified signaturedac227f -
Upload tokenizer
Verified signature65db815 -
initial commit
Verified signature550404b