cedricbonhomme commited on
Commit
d582301
·
verified ·
1 Parent(s): dc9559a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -16
README.md CHANGED
@@ -7,28 +7,34 @@ tags:
7
  model-index:
8
  - name: vulnerability-description-generation-gpt2-xl
9
  results: []
 
 
10
  ---
11
 
12
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
  should probably proofread and complete it, then remove this comment. -->
14
 
15
- # vulnerability-description-generation-gpt2-xl
 
 
16
 
17
- This model is a fine-tuned version of [gpt2-xl](https://huggingface.co/gpt2-xl) on an unknown dataset.
18
  It achieves the following results on the evaluation set:
19
- - Loss: 1.0718
20
 
21
  ## Model description
22
 
23
- More information needed
24
 
25
- ## Intended uses & limitations
26
 
27
- More information needed
28
 
29
- ## Training and evaluation data
 
 
30
 
31
- More information needed
 
 
32
 
33
  ## Training procedure
34
 
@@ -39,7 +45,7 @@ The following hyperparameters were used during training:
39
  - train_batch_size: 16
40
  - eval_batch_size: 16
41
  - seed: 42
42
- - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
  - lr_scheduler_type: linear
44
  - lr_scheduler_warmup_steps: 500
45
  - num_epochs: 3
@@ -48,14 +54,14 @@ The following hyperparameters were used during training:
48
 
49
  | Training Loss | Epoch | Step | Validation Loss |
50
  |:-------------:|:-----:|:-----:|:---------------:|
51
- | 1.3776 | 1.0 | 28894 | 1.3028 |
52
- | 1.1025 | 2.0 | 57788 | 1.1303 |
53
- | 0.9252 | 3.0 | 86682 | 1.0718 |
54
 
55
 
56
  ### Framework versions
57
 
58
- - Transformers 4.57.3
59
- - Pytorch 2.9.1+cu128
60
- - Datasets 4.4.1
61
- - Tokenizers 0.22.1
 
7
  model-index:
8
  - name: vulnerability-description-generation-gpt2-xl
9
  results: []
10
+ datasets:
11
+ - CIRCL/vulnerability
12
  ---
13
 
14
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
  should probably proofread and complete it, then remove this comment. -->
16
 
17
+ # vulnerability-description-generation-gpt2
18
+
19
+ This model is a fine-tuned version of [gpt2-xl](https://huggingface.co/gpt2-xl) on the dataset [CIRCL/vulnerability](https://huggingface.co/datasets/CIRCL/vulnerability).
20
 
 
21
  It achieves the following results on the evaluation set:
22
+ - Loss: 1.8131
23
 
24
  ## Model description
25
 
26
+ It is a text generation model and is aimed to assist in writing vulnerability descriptions.
27
 
 
28
 
29
+ ## How to get started with the model
30
 
31
+ ```python
32
+ from transformers import pipeline
33
+ pipe = pipeline("text-generation", model="CIRCL/vulnerability-description-generation-gpt2-xl")
34
 
35
+ >>> print(pipe("A new vulnerability in OpenSSL allows", max_length=300))
36
+ [{'generated_text': 'A new vulnerability in OpenSSL allows remote attackers to create insecure connections. The impact of this vulnerability is that one or more TLS connections will be created under one username or one username/logon in a session for which another username or logon is valid. An attacker that can control the username or logon string of an openSSL host can effectively manipulate the OpenSSL host in a way that enables the attacker to create arbitrary openSSL connections by calling `http-server-create` in a non-secure sequence across other hosts. The vulnerability may be used to perform a man-in-the-middle attack, making the attacker completely different to the attacker. An exploitation may include MITM attacks and man-in-the-middle attacks. NOTE: the vendor states that "SUSE OpenSSL\'s implementation of \'openSSL_connect`, is not vulnerable to MITM attacks. If the attack vector is a MITM attack, OpenSSL will work under any circumstances." The CVE has been assigned for tracking purposes. In no way does the vendor\'s position change that an OpenSSL client should not use openSSL in the context of another OpenSSL server, but an attacker must choose the vulnerability according to their configuration if they are to exploit their attack. NOTE: the vendor indicates that it has considered the impact of this vulnerability "moderate". If by any measure, an OpenSSL client is susceptible to MITM attacks, that vulnerability would be considered low because it would be difficult to exploit a vulnerability that'}]
37
+ ```
38
 
39
  ## Training procedure
40
 
 
45
  - train_batch_size: 16
46
  - eval_batch_size: 16
47
  - seed: 42
48
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
49
  - lr_scheduler_type: linear
50
  - lr_scheduler_warmup_steps: 500
51
  - num_epochs: 3
 
54
 
55
  | Training Loss | Epoch | Step | Validation Loss |
56
  |:-------------:|:-----:|:-----:|:---------------:|
57
+ | 0.9951 | 1.0 | 24295 | 1.9421 |
58
+ | 0.9311 | 2.0 | 48590 | 1.8412 |
59
+ | 0.914 | 3.0 | 72885 | 1.8131 |
60
 
61
 
62
  ### Framework versions
63
 
64
+ - Transformers 4.49.0
65
+ - Pytorch 2.6.0+cu124
66
+ - Datasets 3.4.0
67
+ - Tokenizers 0.21.1