Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use li-jay-cs/gptj-supervised-summarize-checkpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use li-jay-cs/gptj-supervised-summarize-checkpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="li-jay-cs/gptj-supervised-summarize-checkpoint")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("li-jay-cs/gptj-supervised-summarize-checkpoint") model = AutoModelForCausalLM.from_pretrained("li-jay-cs/gptj-supervised-summarize-checkpoint") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use li-jay-cs/gptj-supervised-summarize-checkpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "li-jay-cs/gptj-supervised-summarize-checkpoint" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "li-jay-cs/gptj-supervised-summarize-checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/li-jay-cs/gptj-supervised-summarize-checkpoint
- SGLang
How to use li-jay-cs/gptj-supervised-summarize-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 "li-jay-cs/gptj-supervised-summarize-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": "li-jay-cs/gptj-supervised-summarize-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 "li-jay-cs/gptj-supervised-summarize-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": "li-jay-cs/gptj-supervised-summarize-checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use li-jay-cs/gptj-supervised-summarize-checkpoint with Docker Model Runner:
docker model run hf.co/li-jay-cs/gptj-supervised-summarize-checkpoint
gptj-supervised-summarize-checkpoint
This model is a fine-tuned version of li-jay-cs/gptj-supervised-summarize-checkpoint on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.8506
- Rouge1: 0.5938
- Rouge2: 0.1912
- Rougel: 0.3937
- Rougelsum: 0.5184
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 50
- eval_batch_size: 50
- seed: 42
- distributed_type: multi-GPU
- optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 100
- num_epochs: 2
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 1.904 | 0.43 | 1000 | 1.8633 | 0.5912 | 0.1888 | 0.3913 | 0.5149 |
| 1.8931 | 0.86 | 2000 | 1.8584 | 0.5907 | 0.1890 | 0.3920 | 0.5153 |
| 1.8758 | 1.28 | 3000 | 1.8545 | 0.5929 | 0.1906 | 0.3929 | 0.5168 |
| 1.8699 | 1.71 | 4000 | 1.8506 | 0.5938 | 0.1912 | 0.3937 | 0.5184 |
Framework versions
- Transformers 4.35.0
- Pytorch 2.1.0+cu118
- Datasets 2.14.6
- Tokenizers 0.14.1
- Downloads last month
- 3
Model tree for li-jay-cs/gptj-supervised-summarize-checkpoint
Unable to build the model tree, the base model loops to the model itself. Learn more.