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 Settings
- 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
Model save
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
base_model:
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
|
@@ -13,7 +13,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
# gptj-supervised-summarize-checkpoint
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
base_model: li-jay-cs/gptj-supervised-summarize-checkpoint
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
|
|
|
| 13 |
|
| 14 |
# gptj-supervised-summarize-checkpoint
|
| 15 |
|
| 16 |
+
This model is a fine-tuned version of [li-jay-cs/gptj-supervised-summarize-checkpoint](https://huggingface.co/li-jay-cs/gptj-supervised-summarize-checkpoint) on an unknown dataset.
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "li-jay-cs/gptj-supervised-summarize-checkpoint",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
runs/Nov13_00-55-24_d816b4927aca/events.out.tfevents.1699836935.d816b4927aca.7494.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61f5f1e805b5d64cbf866fa716bb0f36b073914435afdbf498aded5bb3d465bb
|
| 3 |
+
size 5019
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5944
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85f2ff2feb9e7729c075275beaa9740b99c4b421afb518920f6ebd9ab204145e
|
| 3 |
size 5944
|