Instructions to use kaizerBox/retnet-summarization_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kaizerBox/retnet-summarization_small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kaizerBox/retnet-summarization_small")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kaizerBox/retnet-summarization_small", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kaizerBox/retnet-summarization_small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kaizerBox/retnet-summarization_small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kaizerBox/retnet-summarization_small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kaizerBox/retnet-summarization_small
- SGLang
How to use kaizerBox/retnet-summarization_small 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 "kaizerBox/retnet-summarization_small" \ --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": "kaizerBox/retnet-summarization_small", "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 "kaizerBox/retnet-summarization_small" \ --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": "kaizerBox/retnet-summarization_small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kaizerBox/retnet-summarization_small with Docker Model Runner:
docker model run hf.co/kaizerBox/retnet-summarization_small
retnet-summarization-small
Browse files- README.md +5 -5
- config.json +1 -1
- generation_config.json +1 -1
- model.safetensors +1 -1
- runs/Nov14_23-01-17_ab594931a9c7/events.out.tfevents.1700002877.ab594931a9c7.404.0 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [kaizerBox/retnet-summarization_small](https://huggingface.co/kaizerBox/retnet-summarization_small) on the xsum dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 4.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -35,7 +35,7 @@ More information needed
|
|
| 35 |
### Training hyperparameters
|
| 36 |
|
| 37 |
The following hyperparameters were used during training:
|
| 38 |
-
- learning_rate: 0.
|
| 39 |
- train_batch_size: 10
|
| 40 |
- eval_batch_size: 10
|
| 41 |
- seed: 42
|
|
@@ -51,13 +51,13 @@ The following hyperparameters were used during training:
|
|
| 51 |
|
| 52 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 53 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 54 |
-
| 4.
|
| 55 |
-
| 4.
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
| 59 |
|
| 60 |
-
- Transformers 4.35.
|
| 61 |
- Pytorch 2.1.0+cu118
|
| 62 |
- Datasets 2.14.6
|
| 63 |
- Tokenizers 0.14.1
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [kaizerBox/retnet-summarization_small](https://huggingface.co/kaizerBox/retnet-summarization_small) on the xsum dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 4.1658
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 35 |
### Training hyperparameters
|
| 36 |
|
| 37 |
The following hyperparameters were used during training:
|
| 38 |
+
- learning_rate: 0.0006
|
| 39 |
- train_batch_size: 10
|
| 40 |
- eval_batch_size: 10
|
| 41 |
- seed: 42
|
|
|
|
| 51 |
|
| 52 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 53 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 54 |
+
| 4.3805 | 1.0 | 4610 | 4.1733 |
|
| 55 |
+
| 4.3591 | 2.0 | 9220 | 4.1658 |
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
| 59 |
|
| 60 |
+
- Transformers 4.35.1
|
| 61 |
- Pytorch 2.1.0+cu118
|
| 62 |
- Datasets 2.14.6
|
| 63 |
- Tokenizers 0.14.1
|
config.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
| 28 |
"subln": true,
|
| 29 |
"tie_word_embeddings": false,
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
-
"transformers_version": "4.35.
|
| 32 |
"use_cache": true,
|
| 33 |
"use_ffn_rms_norm": false,
|
| 34 |
"use_glu": true,
|
|
|
|
| 28 |
"subln": true,
|
| 29 |
"tie_word_embeddings": false,
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
+
"transformers_version": "4.35.1",
|
| 32 |
"use_cache": true,
|
| 33 |
"use_ffn_rms_norm": false,
|
| 34 |
"use_glu": true,
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"eos_token_id": 50256,
|
| 4 |
"pad_token_id": 50257,
|
| 5 |
-
"transformers_version": "4.35.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"eos_token_id": 50256,
|
| 4 |
"pad_token_id": 50257,
|
| 5 |
+
"transformers_version": "4.35.1"
|
| 6 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 53857264
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e6b20b9a50d0f2c0a4bca3e88f26d3f4a73f533ed90135269d6fe9f17f8531
|
| 3 |
size 53857264
|
runs/Nov14_23-01-17_ab594931a9c7/events.out.tfevents.1700002877.ab594931a9c7.404.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:789942e4a6b1136eb3bb7e1555ed5b9863c069b7b2d0eb1078863486834a4173
|
| 3 |
+
size 5811
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9694146efcfcb88aeb0d34baeff5fa74143a3a48528f8e2110e3cd15707fcbdb
|
| 3 |
size 4600
|