Instructions to use georgeyw/gpt-2-small-testing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use georgeyw/gpt-2-small-testing with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="georgeyw/gpt-2-small-testing")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("georgeyw/gpt-2-small-testing") model = AutoModelForCausalLM.from_pretrained("georgeyw/gpt-2-small-testing", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use georgeyw/gpt-2-small-testing with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "georgeyw/gpt-2-small-testing" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "georgeyw/gpt-2-small-testing", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/georgeyw/gpt-2-small-testing
- SGLang
How to use georgeyw/gpt-2-small-testing 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 "georgeyw/gpt-2-small-testing" \ --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": "georgeyw/gpt-2-small-testing", "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 "georgeyw/gpt-2-small-testing" \ --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": "georgeyw/gpt-2-small-testing", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use georgeyw/gpt-2-small-testing with Docker Model Runner:
docker model run hf.co/georgeyw/gpt-2-small-testing
Commit History
-
Training in progress, step 100, checkpoint
Verified signature5635e93 -
Training in progress, step 50, checkpoint
Verified signatureb4bb529 -
Training in progress, step 100, checkpoint
Verified signature910cafd -
Training in progress, step 50, checkpoint
Verified signaturebbbda43 -
Training in progress, step 20, checkpoint
Verified signatureb4e70d1 -
Training in progress, step 400, checkpoint
Verified signatureb8e0a80 -
Training in progress, step 200, checkpoint
Verified signatureb1cfd25
-
Training in progress, step 1000
Verified signature41ae740 -
Training in progress, step 900
Verified signature6d783d7 -
Training in progress, step 800
Verified signaturea557051 -
Training in progress, step 700
Verified signature28452f5 -
Training in progress, step 600
Verified signaturef5987c6 -
Training in progress, step 500
Verified signaturecb6446e -
Training in progress, step 400
Verified signature19162de -
Training in progress, step 300
Verified signature76249e3 -
Training in progress, step 200
Verified signature7aafd45 -
Training in progress, step 100
Verified signaturedfb748c -
Training in progress, step 100
Verified signature7609ef8 -
Training in progress, step 900
Verified signature15440b1 -
Training in progress, step 800
Verified signature69d75cc -
Training in progress, step 500
Verified signaturec0c9db1 -
Training in progress, step 400
Verified signature4faf488 -
Training in progress, step 300
Verified signaturefd6afbd -
Training in progress, step 200
Verified signature41de868 -
Training in progress, step 100
Verified signature3a4c458
-
Training in progress, step 180
Verified signature70346e5 -
Training in progress, step 170
Verified signature2c2d3d5 -
Training in progress, step 160
Verified signature0c1f3a9 -
Training in progress, step 150
Verified signature6339be4 -
Training in progress, step 140
Verified signature237a05e -
Training in progress, step 130
Verified signature5af9594 -
Training in progress, step 110
Verified signature78d7d72 -
Training in progress, step 100
Verified signaturebed0e56 -
Training in progress, step 90
Verified signature526f74d -
Training in progress, step 80
Verified signature9f1b006 -
Training in progress, step 70
Verified signature41a787b -
Training in progress, step 60
Verified signaturef16e781 -
Training in progress, step 50
Verified signatureeef15f4 -
Training in progress, step 40
Verified signaturec91cd75 -
Training in progress, step 30
Verified signatureeaff883 -
Training in progress, step 20
Verified signature6d10951 -
Training in progress, step 10
Verified signature0b735a5 -
initial commit
Verified signatureddf88d0