Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use HuangAurelianus/test-trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuangAurelianus/test-trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuangAurelianus/test-trainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HuangAurelianus/test-trainer") model = AutoModelForCausalLM.from_pretrained("HuangAurelianus/test-trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuangAurelianus/test-trainer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuangAurelianus/test-trainer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuangAurelianus/test-trainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuangAurelianus/test-trainer
- SGLang
How to use HuangAurelianus/test-trainer 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 "HuangAurelianus/test-trainer" \ --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": "HuangAurelianus/test-trainer", "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 "HuangAurelianus/test-trainer" \ --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": "HuangAurelianus/test-trainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuangAurelianus/test-trainer with Docker Model Runner:
docker model run hf.co/HuangAurelianus/test-trainer
Commit History
-
End of training
Verified signaturebbb42fb -
Training in progress, step 7000
Verified signaturec571d36 -
Training in progress, step 6500
Verified signature85dc483 -
Training in progress, step 6000
Verified signature09e834f -
Training in progress, step 5500
Verified signatureab81161 -
Training in progress, step 5000
Verified signaturea51c563 -
Training in progress, step 4500
Verified signature87256fa -
Training in progress, step 4000
Verified signature29b6f43 -
Training in progress, step 3500
Verified signature3f048f1 -
Training in progress, step 3000
Verified signaturea9ce905 -
Training in progress, step 2500
Verified signaturec13122a -
End of training
Verified signature411c219 -
Training in progress, step 6747
Verified signature649b7c4 -
Training in progress, step 2000
Verified signaturecbd4468 -
Training in progress, step 6500
Verified signaturec706aab -
Training in progress, step 6000
Verified signatureba3bbe3 -
Training in progress, step 5500
Verified signature887fd6f -
Training in progress, step 5000
Verified signatured01d23d -
Training in progress, step 4500
Verified signatureb055ebf -
Training in progress, step 1500
Verified signature29ea1f9 -
Training in progress, step 4000
Verified signaturec6281fd -
Training in progress, step 3500
Verified signature608dc8e -
Training in progress, step 3000
Verified signaturea2fc4f3 -
Training in progress, step 2500
Verified signature36d0e32 -
Training in progress, step 1000
Verified signature40834ec -
Training in progress, step 2000
Verified signaturefb06662 -
Training in progress, step 1500
Verified signature88151c0 -
Training in progress, step 1000
Verified signaturea18edc0 -
Training in progress, step 500
Verified signature4e4e2df -
Training in progress, step 500
Verified signaturef5ac424 -
Training in progress, step 3500
Verified signature8bcadcb -
Training in progress, step 3000
Verified signature7f441b8 -
Training in progress, step 2500
Verified signaturecbbbef8
-
Training in progress, step 2000
Verified signature7c70768 -
Training in progress, step 1500
Verified signaturece7aa63 -
Training in progress, step 1000
Verified signature7f551d9 -
Training in progress, step 500
Verified signature51c644d -
End of training
Verified signaturecc09dd9 -
Training in progress, step 3207
Verified signature6582c76 -
Training in progress, step 3000
Verified signature0890179 -
Training in progress, step 2500
Verified signature1ccaef2 -
Training in progress, step 2000
Verified signature83ed6c0 -
Training in progress, step 1500
Verified signaturee7e2661 -
Training in progress, step 1000
Verified signature31bc675 -
Training in progress, step 500
Verified signature57936e2 -
initial commit
Verified signature8e07449