Text Generation
Transformers
Safetensors
gpt2
Generated from Trainer
sft
trl
text-generation-inference
Instructions to use JocelyneSmith/HW2-supervised with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JocelyneSmith/HW2-supervised with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JocelyneSmith/HW2-supervised")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JocelyneSmith/HW2-supervised") model = AutoModelForCausalLM.from_pretrained("JocelyneSmith/HW2-supervised", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JocelyneSmith/HW2-supervised with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JocelyneSmith/HW2-supervised" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JocelyneSmith/HW2-supervised", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JocelyneSmith/HW2-supervised
- SGLang
How to use JocelyneSmith/HW2-supervised 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 "JocelyneSmith/HW2-supervised" \ --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": "JocelyneSmith/HW2-supervised", "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 "JocelyneSmith/HW2-supervised" \ --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": "JocelyneSmith/HW2-supervised", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JocelyneSmith/HW2-supervised with Docker Model Runner:
docker model run hf.co/JocelyneSmith/HW2-supervised
Commit History
-
End of training
Verified signatureb57b8f9 -
Training in progress, step 3000
Verified signature3b5a6e1 -
Training in progress, step 2000
Verified signature17feedf -
Training in progress, step 1500
Verified signaturee5c23e3 -
Training in progress, step 1000
Verified signaturec862977 -
Training in progress, step 500
Verified signature849de8e -
End of training
Verified signatureaf4b63b -
Training in progress, step 2500
Verified signaturec892a52 -
Training in progress, step 1500
Verified signatureca2f632 -
Training in progress, step 1000
Verified signature7058e0c -
Training in progress, step 500
Verified signatured735d38 -
End of training
Verified signature0b64be2 -
Training in progress, step 2500
Verified signaturef19b886 -
Training in progress, step 1500
Verified signaturebbf199b -
Training in progress, step 1000
Verified signature5e7b4bd -
Training in progress, step 500
Verified signature06a0b21
-
End of training
Verified signature613f23f -
Training in progress, step 3000
Verified signature7b843b1 -
Training in progress, step 2000
Verified signatureefa88f6 -
Training in progress, step 1000
Verified signature79a4517 -
Training in progress, step 500
Verified signature4d0708e -
End of training
Verified signatured5e5ed0 -
Training in progress, step 2500
Verified signature9f343bc -
Training in progress, step 1500
Verified signature5694e7e -
Training in progress, step 500
Verified signaturecad4b30
-
Training in progress, step 2418
Verified signature23eada5 -
Training in progress, step 1500
Verified signature823b15a -
Training in progress, step 500
Verified signaturecd4be09
-
Training in progress, step 2418
Verified signaturece84f56 -
Training in progress, step 1500
Verified signaturea3bf1f7 -
Training in progress, step 500
Verified signatured6ef2f0 -
Training in progress, step 2418
Verified signature4c5a179 -
Training in progress, step 1500
Verified signature97ee4b5 -
Training in progress, step 500
Verified signature08153ed -
Training in progress, step 2418
Verified signaturef479067 -
Training in progress, step 1500
Verified signature1846ac1 -
Training in progress, step 500
Verified signature0d58137 -
Training in progress, step 2418
Verified signature61ea9f3 -
Training in progress, step 1500
Verified signature273e75c -
Training in progress, step 500
Verified signature2d2d16d -
End of training
Verified signatureb3dc2ac -
Training in progress, step 3000
Verified signature168ea4f -
Training in progress, step 2500
Verified signaturecf5f694 -
Training in progress, step 2000
Verified signaturee700783 -
Training in progress, step 1500
Verified signature7e7d46a -
Training in progress, step 500
Verified signatureb887dc3 -
initial commit
Verified signature3ebed58