Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2") model = AutoModelForCausalLM.from_pretrained("gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2
- SGLang
How to use gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2 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 "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2" \ --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": "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2", "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 "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2" \ --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": "gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2 with Docker Model Runner:
docker model run hf.co/gjonesQ02/StatementOfWork_Generator_Omega_BS_1024_2
End of training
Browse files- README.md +131 -0
- config.json +46 -0
- generation_config.json +6 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Jul01_20-15-06_viridian/events.out.tfevents.1719864914.viridian.3786935.3 +3 -0
- runs/Jul01_20-19-12_viridian/events.out.tfevents.1719865157.viridian.3786935.4 +3 -0
- runs/Jul01_20-24-47_viridian/events.out.tfevents.1719865528.viridian.3874171.0 +3 -0
- special_tokens_map.json +5 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: distilgpt2
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: StatementOfWork_Generator_Omega_BS_1024_2
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
# StatementOfWork_Generator_Omega_BS_1024_2
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [distilgpt2](https://huggingface.co/distilgpt2) on an unknown dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 1.3889
|
| 19 |
+
|
| 20 |
+
## Model description
|
| 21 |
+
|
| 22 |
+
More information needed
|
| 23 |
+
|
| 24 |
+
## Intended uses & limitations
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Training and evaluation data
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training procedure
|
| 33 |
+
|
| 34 |
+
### Training hyperparameters
|
| 35 |
+
|
| 36 |
+
The following hyperparameters were used during training:
|
| 37 |
+
- learning_rate: 2e-05
|
| 38 |
+
- train_batch_size: 10
|
| 39 |
+
- eval_batch_size: 100
|
| 40 |
+
- seed: 42
|
| 41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
+
- lr_scheduler_type: linear
|
| 43 |
+
- num_epochs: 75
|
| 44 |
+
|
| 45 |
+
### Training results
|
| 46 |
+
|
| 47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
| 49 |
+
| No log | 1.0 | 10 | 3.3893 |
|
| 50 |
+
| No log | 2.0 | 20 | 3.1683 |
|
| 51 |
+
| No log | 3.0 | 30 | 2.9900 |
|
| 52 |
+
| No log | 4.0 | 40 | 2.8271 |
|
| 53 |
+
| No log | 5.0 | 50 | 2.6741 |
|
| 54 |
+
| No log | 6.0 | 60 | 2.5419 |
|
| 55 |
+
| No log | 7.0 | 70 | 2.4238 |
|
| 56 |
+
| No log | 8.0 | 80 | 2.3227 |
|
| 57 |
+
| No log | 9.0 | 90 | 2.2323 |
|
| 58 |
+
| No log | 10.0 | 100 | 2.1533 |
|
| 59 |
+
| No log | 11.0 | 110 | 2.0906 |
|
| 60 |
+
| No log | 12.0 | 120 | 2.0305 |
|
| 61 |
+
| No log | 13.0 | 130 | 1.9847 |
|
| 62 |
+
| No log | 14.0 | 140 | 1.9410 |
|
| 63 |
+
| No log | 15.0 | 150 | 1.9026 |
|
| 64 |
+
| No log | 16.0 | 160 | 1.8693 |
|
| 65 |
+
| No log | 17.0 | 170 | 1.8388 |
|
| 66 |
+
| No log | 18.0 | 180 | 1.8103 |
|
| 67 |
+
| No log | 19.0 | 190 | 1.7877 |
|
| 68 |
+
| No log | 20.0 | 200 | 1.7618 |
|
| 69 |
+
| No log | 21.0 | 210 | 1.7385 |
|
| 70 |
+
| No log | 22.0 | 220 | 1.7191 |
|
| 71 |
+
| No log | 23.0 | 230 | 1.6999 |
|
| 72 |
+
| No log | 24.0 | 240 | 1.6793 |
|
| 73 |
+
| No log | 25.0 | 250 | 1.6650 |
|
| 74 |
+
| No log | 26.0 | 260 | 1.6472 |
|
| 75 |
+
| No log | 27.0 | 270 | 1.6334 |
|
| 76 |
+
| No log | 28.0 | 280 | 1.6172 |
|
| 77 |
+
| No log | 29.0 | 290 | 1.6063 |
|
| 78 |
+
| No log | 30.0 | 300 | 1.5923 |
|
| 79 |
+
| No log | 31.0 | 310 | 1.5826 |
|
| 80 |
+
| No log | 32.0 | 320 | 1.5702 |
|
| 81 |
+
| No log | 33.0 | 330 | 1.5632 |
|
| 82 |
+
| No log | 34.0 | 340 | 1.5513 |
|
| 83 |
+
| No log | 35.0 | 350 | 1.5421 |
|
| 84 |
+
| No log | 36.0 | 360 | 1.5328 |
|
| 85 |
+
| No log | 37.0 | 370 | 1.5244 |
|
| 86 |
+
| No log | 38.0 | 380 | 1.5136 |
|
| 87 |
+
| No log | 39.0 | 390 | 1.5087 |
|
| 88 |
+
| No log | 40.0 | 400 | 1.4996 |
|
| 89 |
+
| No log | 41.0 | 410 | 1.4912 |
|
| 90 |
+
| No log | 42.0 | 420 | 1.4852 |
|
| 91 |
+
| No log | 43.0 | 430 | 1.4789 |
|
| 92 |
+
| No log | 44.0 | 440 | 1.4724 |
|
| 93 |
+
| No log | 45.0 | 450 | 1.4659 |
|
| 94 |
+
| No log | 46.0 | 460 | 1.4632 |
|
| 95 |
+
| No log | 47.0 | 470 | 1.4556 |
|
| 96 |
+
| No log | 48.0 | 480 | 1.4505 |
|
| 97 |
+
| No log | 49.0 | 490 | 1.4467 |
|
| 98 |
+
| 1.8264 | 50.0 | 500 | 1.4397 |
|
| 99 |
+
| 1.8264 | 51.0 | 510 | 1.4383 |
|
| 100 |
+
| 1.8264 | 52.0 | 520 | 1.4330 |
|
| 101 |
+
| 1.8264 | 53.0 | 530 | 1.4282 |
|
| 102 |
+
| 1.8264 | 54.0 | 540 | 1.4263 |
|
| 103 |
+
| 1.8264 | 55.0 | 550 | 1.4213 |
|
| 104 |
+
| 1.8264 | 56.0 | 560 | 1.4186 |
|
| 105 |
+
| 1.8264 | 57.0 | 570 | 1.4152 |
|
| 106 |
+
| 1.8264 | 58.0 | 580 | 1.4129 |
|
| 107 |
+
| 1.8264 | 59.0 | 590 | 1.4100 |
|
| 108 |
+
| 1.8264 | 60.0 | 600 | 1.4079 |
|
| 109 |
+
| 1.8264 | 61.0 | 610 | 1.4035 |
|
| 110 |
+
| 1.8264 | 62.0 | 620 | 1.4022 |
|
| 111 |
+
| 1.8264 | 63.0 | 630 | 1.3998 |
|
| 112 |
+
| 1.8264 | 64.0 | 640 | 1.3979 |
|
| 113 |
+
| 1.8264 | 65.0 | 650 | 1.3960 |
|
| 114 |
+
| 1.8264 | 66.0 | 660 | 1.3944 |
|
| 115 |
+
| 1.8264 | 67.0 | 670 | 1.3929 |
|
| 116 |
+
| 1.8264 | 68.0 | 680 | 1.3926 |
|
| 117 |
+
| 1.8264 | 69.0 | 690 | 1.3923 |
|
| 118 |
+
| 1.8264 | 70.0 | 700 | 1.3907 |
|
| 119 |
+
| 1.8264 | 71.0 | 710 | 1.3904 |
|
| 120 |
+
| 1.8264 | 72.0 | 720 | 1.3897 |
|
| 121 |
+
| 1.8264 | 73.0 | 730 | 1.3894 |
|
| 122 |
+
| 1.8264 | 74.0 | 740 | 1.3890 |
|
| 123 |
+
| 1.8264 | 75.0 | 750 | 1.3889 |
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
### Framework versions
|
| 127 |
+
|
| 128 |
+
- Transformers 4.38.2
|
| 129 |
+
- Pytorch 2.2.1+cu121
|
| 130 |
+
- Datasets 2.18.0
|
| 131 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "distilgpt2",
|
| 3 |
+
"_num_labels": 1,
|
| 4 |
+
"activation_function": "gelu_new",
|
| 5 |
+
"architectures": [
|
| 6 |
+
"GPT2LMHeadModel"
|
| 7 |
+
],
|
| 8 |
+
"attn_pdrop": 0.1,
|
| 9 |
+
"bos_token_id": 50256,
|
| 10 |
+
"embd_pdrop": 0.1,
|
| 11 |
+
"eos_token_id": 50256,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "LABEL_0"
|
| 14 |
+
},
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"label2id": {
|
| 17 |
+
"LABEL_0": 0
|
| 18 |
+
},
|
| 19 |
+
"layer_norm_epsilon": 1e-05,
|
| 20 |
+
"model_type": "gpt2",
|
| 21 |
+
"n_ctx": 1024,
|
| 22 |
+
"n_embd": 768,
|
| 23 |
+
"n_head": 12,
|
| 24 |
+
"n_inner": null,
|
| 25 |
+
"n_layer": 6,
|
| 26 |
+
"n_positions": 1024,
|
| 27 |
+
"reorder_and_upcast_attn": false,
|
| 28 |
+
"resid_pdrop": 0.1,
|
| 29 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 30 |
+
"scale_attn_weights": true,
|
| 31 |
+
"summary_activation": null,
|
| 32 |
+
"summary_first_dropout": 0.1,
|
| 33 |
+
"summary_proj_to_labels": true,
|
| 34 |
+
"summary_type": "cls_index",
|
| 35 |
+
"summary_use_proj": true,
|
| 36 |
+
"task_specific_params": {
|
| 37 |
+
"text-generation": {
|
| 38 |
+
"do_sample": true,
|
| 39 |
+
"max_length": 50
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.38.2",
|
| 44 |
+
"use_cache": true,
|
| 45 |
+
"vocab_size": 50257
|
| 46 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.38.2"
|
| 6 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa153239fa10a2417e5e073b5013718c2e92c524d75532c9384ce1244002bbcf
|
| 3 |
+
size 327657928
|
runs/Jul01_20-15-06_viridian/events.out.tfevents.1719864914.viridian.3786935.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e028bb67d941700066728546b9b86677e945fe46591002d326eea54119f8ee1e
|
| 3 |
+
size 14974
|
runs/Jul01_20-19-12_viridian/events.out.tfevents.1719865157.viridian.3786935.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b52c0379b5b3cc8bc6bfbf48bc2869ea3e88d174975707bf1a2d36c3a3c2b53b
|
| 3 |
+
size 5048
|
runs/Jul01_20-24-47_viridian/events.out.tfevents.1719865528.viridian.3874171.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d01f9ba4cd5f422b975682fad4faab275621b305a17a3b60eb398ce75405113
|
| 3 |
+
size 25879
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<|endoftext|>",
|
| 3 |
+
"eos_token": "<|endoftext|>",
|
| 4 |
+
"unk_token": "<|endoftext|>"
|
| 5 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"50256": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
}
|
| 12 |
+
},
|
| 13 |
+
"bos_token": "<|endoftext|>",
|
| 14 |
+
"clean_up_tokenization_spaces": true,
|
| 15 |
+
"eos_token": "<|endoftext|>",
|
| 16 |
+
"model_max_length": 1024,
|
| 17 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 18 |
+
"unk_token": "<|endoftext|>"
|
| 19 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c4c95b1c49caaecefc9c892b87652f0f4ae1bed1e6c68c6f1d2bdc55f795c7e
|
| 3 |
+
size 5048
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|