Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use gweltou/tiny-gpt2-br with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gweltou/tiny-gpt2-br with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gweltou/tiny-gpt2-br")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gweltou/tiny-gpt2-br") model = AutoModelForCausalLM.from_pretrained("gweltou/tiny-gpt2-br", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gweltou/tiny-gpt2-br with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gweltou/tiny-gpt2-br" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gweltou/tiny-gpt2-br", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gweltou/tiny-gpt2-br
- SGLang
How to use gweltou/tiny-gpt2-br 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 "gweltou/tiny-gpt2-br" \ --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": "gweltou/tiny-gpt2-br", "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 "gweltou/tiny-gpt2-br" \ --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": "gweltou/tiny-gpt2-br", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gweltou/tiny-gpt2-br with Docker Model Runner:
docker model run hf.co/gweltou/tiny-gpt2-br
Commit History
-
End of training
Verified signature5f41fc3 -
Model save
Verified signature9169d68 -
Training in progress, step 47000
Verified signaturea6dd643 -
Delete runs/Mar30_18-12-43_gweltaz-NUC10i7FNK
Verified signature7030fa3 -
Delete runs/Mar30_14-55-05_gweltaz-NUC10i7FNK
Verified signature2fada6a -
Delete runs/Apr01_18-06-47_gweltaz-NUC10i7FNK
Verified signature8c8acf4 -
Delete runs/Apr01_17-30-35_gweltaz-NUC10i7FNK
Verified signature5d68cb3 -
Training in progress, step 45000
Verified signatureeae982b -
Training in progress, step 43000
Verified signature4ad2cb3 -
Training in progress, step 41000
Verified signatureb47e6dc -
Training in progress, step 39000
Verified signatureb778541 -
Training in progress, step 37000
Verified signature21b5f85 -
Training in progress, step 35000
Verified signaturef457115 -
Training in progress, step 33000
Verified signatureca061b4 -
Training in progress, step 31000
Verified signature7480097 -
Training in progress, step 29000
Verified signaturef4bbc0b -
Training in progress, step 27000
Verified signature762b902 -
Training in progress, step 25000
Verified signaturee326af7 -
Training in progress, step 23000
Verified signaturec5643c7 -
Training in progress, step 21000
Verified signature731ef7c -
Training in progress, step 19000
Verified signaturee9210b1 -
Training in progress, step 10000
Verified signatureaf93661 -
Training in progress, step 5000
Verified signature386ae1a -
Training in progress, step 1000
Verified signature25aadf6 -
Upload tokenizer
Verified signature4dd0af8
-
Update README.md
Verified signature5931822 -
Update README.md
Verified signature3dae47c -
Update README.md
Verified signaturef9e5c67 -
End of training
Verified signaturedf57601
-
Upload tokenizer
Verified signature39beba3 -
Training in progress, step 5000
Verified signature46efe5f -
Training in progress, step 4000
Verified signatured838d80 -
Training in progress, step 3000
Verified signaturef5ae543 -
Training in progress, step 2000
Verified signature903eaf9 -
Training in progress, step 1000
Verified signature5fd6055 -
Upload tokenizer
Verified signaturec64d7eb -
Training in progress, step 2000
Verified signature997feaa -
Training in progress, step 1000
Verified signaturea8efac0 -
Upload tokenizer
Verified signaturea8d01fb
-
End of training
Verified signature0c4739e -
Model save
Verified signature1fdaa35 -
Training in progress, step 17000
Verified signature36a7ff9 -
Training in progress, step 13000
Verified signatureb4435ae -
Training in progress, step 9000
Verified signature7ef9c83 -
Training in progress, step 7000
Verified signaturec38d96e -
Training in progress, step 5000
Verified signature7405307 -
Training in progress, step 3000
Verified signaturea4514f6 -
Training in progress, step 1000
Verified signature113b069 -
Training in progress, step 23000
Verified signature3e6c8d0 -
Training in progress, step 22000
Verified signatureeb02f05