Instructions to use benchaffe/shakespeare-gpt-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use benchaffe/shakespeare-gpt-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="benchaffe/shakespeare-gpt-mini")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("benchaffe/shakespeare-gpt-mini") model = AutoModelForCausalLM.from_pretrained("benchaffe/shakespeare-gpt-mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use benchaffe/shakespeare-gpt-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "benchaffe/shakespeare-gpt-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "benchaffe/shakespeare-gpt-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/benchaffe/shakespeare-gpt-mini
- SGLang
How to use benchaffe/shakespeare-gpt-mini 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 "benchaffe/shakespeare-gpt-mini" \ --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": "benchaffe/shakespeare-gpt-mini", "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 "benchaffe/shakespeare-gpt-mini" \ --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": "benchaffe/shakespeare-gpt-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use benchaffe/shakespeare-gpt-mini with Docker Model Runner:
docker model run hf.co/benchaffe/shakespeare-gpt-mini
Commit History
-
Training in progress, epoch 10
Verified signaturea4487d3 -
Training in progress, epoch 9
Verified signatured77649c -
Training in progress, epoch 8
Verified signature0c3d12a -
Training in progress, epoch 7
Verified signaturecbccd39 -
Training in progress, epoch 6
Verified signaturec4bc776 -
Training in progress, epoch 5
Verified signature9ed066d -
Training in progress, epoch 4
Verified signatured38c1c3 -
Training in progress, epoch 3
Verified signaturedbec926 -
Training in progress, epoch 2
Verified signature00e35db -
Training in progress, epoch 1
Verified signature32435ab
-
Training in progress, epoch 10
Verified signature9c935ae -
Training in progress, epoch 9
Verified signature8cb9042 -
Training in progress, epoch 8
Verified signature7291237 -
Training in progress, epoch 7
Verified signature581fd0c -
Training in progress, epoch 6
Verified signature8e5c1b2 -
Training in progress, epoch 5
Verified signature1daf790 -
Training in progress, epoch 4
Verified signature5f224b2 -
Training in progress, epoch 3
Verified signature95886f5 -
Training in progress, epoch 2
Verified signaturee81fcd7 -
Training in progress, epoch 1
Verified signature3c28977 -
Training in progress, epoch 10
Verified signaturec354cf2 -
Training in progress, epoch 9
Verified signatureb421e62 -
Training in progress, epoch 8
Verified signature4b375a0 -
Training in progress, epoch 7
Verified signature4099456 -
Training in progress, epoch 6
Verified signatureb9c5141 -
Training in progress, epoch 5
Verified signature704aa3f -
Training in progress, epoch 4
Verified signatured520ef4 -
Training in progress, epoch 3
Verified signaturec7f759a -
Training in progress, epoch 2
Verified signaturee3b9d9e -
Training in progress, epoch 1
Verified signature4ec2f22 -
Training in progress, epoch 5
Verified signature4db003f -
Training in progress, epoch 4
Verified signaturea67a7ad -
Training in progress, epoch 3
Verified signatured8ac9a7 -
Training in progress, epoch 2
Verified signature4db95f0 -
Training in progress, epoch 1
Verified signatured3388b3 -
Upload tokenizer
Verified signatureef56f0a -
Upload model
Verified signature90b9000 -
initial commit
Verified signature7a1efc1