Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs") model = AutoModelForCausalLM.from_pretrained("Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs
- SGLang
How to use Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs 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 "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs" \ --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": "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs", "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 "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs" \ --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": "Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs with Docker Model Runner:
docker model run hf.co/Mou11209203/distilgpt2-finetuned-github_cybersecurity_READMEs
Training in progress, step 500
Browse files- README.md +6 -6
- generation_config.json +1 -1
- model.safetensors +1 -1
- runs/Apr19_01-30-26_arg10/events.out.tfevents.1713461426.arg10.2604415.0 +2 -2
- runs/Apr19_01-30-26_arg10/events.out.tfevents.1713464821.arg10.2604415.1 +3 -0
- runs/Apr19_05-07-16_arg10/events.out.tfevents.1713474439.arg10.3558760.0 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -15,7 +15,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 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: 2.
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
@@ -46,14 +46,14 @@ The following hyperparameters were used during training:
|
|
| 46 |
|
| 47 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
|:-------------:|:-----:|:-----:|:---------------:|
|
| 49 |
-
| 2.
|
| 50 |
-
| 2.
|
| 51 |
-
| 2.
|
| 52 |
|
| 53 |
|
| 54 |
### Framework versions
|
| 55 |
|
| 56 |
-
- Transformers 4.
|
| 57 |
- Pytorch 2.2.1
|
| 58 |
- Datasets 2.18.0
|
| 59 |
-
- Tokenizers 0.
|
|
|
|
| 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: 2.1872
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
|
|
| 46 |
|
| 47 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
|:-------------:|:-----:|:-----:|:---------------:|
|
| 49 |
+
| 2.4593 | 1.0 | 23953 | 2.3440 |
|
| 50 |
+
| 2.3243 | 2.0 | 47906 | 2.2203 |
|
| 51 |
+
| 2.266 | 3.0 | 71859 | 2.1872 |
|
| 52 |
|
| 53 |
|
| 54 |
### Framework versions
|
| 55 |
|
| 56 |
+
- Transformers 4.40.0
|
| 57 |
- Pytorch 2.2.1
|
| 58 |
- Datasets 2.18.0
|
| 59 |
+
- Tokenizers 0.19.1
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 50256,
|
| 4 |
"eos_token_id": 50256,
|
| 5 |
-
"transformers_version": "4.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 50256,
|
| 4 |
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.40.0"
|
| 6 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 327657928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57155bea6726984b932e0ebb605f5baea070223f24afe9c1f6b12fdb682bfd6e
|
| 3 |
size 327657928
|
runs/Apr19_01-30-26_arg10/events.out.tfevents.1713461426.arg10.2604415.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d9932420539f6fc4b3e129f021efa0e6f04733deff42139e4f8f3168480e704
|
| 3 |
+
size 36906
|
runs/Apr19_01-30-26_arg10/events.out.tfevents.1713464821.arg10.2604415.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fee8919379ec73fb2b60fe69eaebdaec9d98a9d680124e27dffac8489b0fcf5
|
| 3 |
+
size 364
|
runs/Apr19_05-07-16_arg10/events.out.tfevents.1713474439.arg10.3558760.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd6ebff4b73c359fbaf29e4d02d31a5e051901df1cbef76c69d6ce648d7c9393
|
| 3 |
+
size 5312
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5048
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4a7d608f4f86f21ecf9334cfd8a763a9f418b25bf78e1e5a306beb2cde02e18
|
| 3 |
size 5048
|