Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use KyS/Temp_Checkpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KyS/Temp_Checkpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KyS/Temp_Checkpoint")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KyS/Temp_Checkpoint") model = AutoModelForCausalLM.from_pretrained("KyS/Temp_Checkpoint", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KyS/Temp_Checkpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KyS/Temp_Checkpoint" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KyS/Temp_Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KyS/Temp_Checkpoint
- SGLang
How to use KyS/Temp_Checkpoint 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 "KyS/Temp_Checkpoint" \ --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": "KyS/Temp_Checkpoint", "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 "KyS/Temp_Checkpoint" \ --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": "KyS/Temp_Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KyS/Temp_Checkpoint with Docker Model Runner:
docker model run hf.co/KyS/Temp_Checkpoint
Commit History
-
update model card README.md
923cde5 -
Kys/GPT-2_decoder_upf2k
72ffc7a -
Training in progress, step 2000
59fb76f -
Training in progress, step 1900
04f72ca -
Training in progress, step 1800
1164b76 -
Training in progress, step 1700
7e8169a -
Training in progress, step 1600
6f6dc5f -
Training in progress, step 1500
58f8774 -
Training in progress, step 1400
31d9aae -
Training in progress, step 1300
db71ba1 -
Training in progress, step 1200
bd0d1bb -
Training in progress, step 1100
12ad5db -
Training in progress, step 1000
b73ec7e -
Training in progress, step 900
2032b61 -
Training in progress, step 800
b97a6d3 -
Training in progress, step 700
d7735bc -
Training in progress, step 600
41dcf94 -
Training in progress, step 500
f1c3fce -
Training in progress, step 400
bd93e29 -
Training in progress, step 300
897f239 -
Training in progress, step 200
13e71f3 -
Training in progress, step 100
84c11e1
-
initial commit
f16b030