cedricbonhomme commited on
Commit
a8deed3
·
verified ·
1 Parent(s): c894cb1

End of training

Browse files
Files changed (3) hide show
  1. README.md +22 -39
  2. emissions.csv +1 -1
  3. model.safetensors +1 -1
README.md CHANGED
@@ -1,56 +1,39 @@
1
-
2
  ---
3
- base_model: hfl/chinese-macbert-base
4
- datasets:
5
- - CIRCL/Vulnerability-CNVD
6
  library_name: transformers
7
  license: apache-2.0
8
- metrics:
9
- - accuracy
10
  tags:
11
  - generated_from_trainer
12
- - text-classification
13
- - classification
14
- - nlp
15
- - chinese
16
- - vulnerability
17
- pipeline_tag: text-classification
18
- language: zh
19
  model-index:
20
  - name: vulnerability-severity-classification-chinese-macbert-base
21
  results: []
22
  ---
23
 
24
- # VLAI: A RoBERTa-Based Model for Automated Vulnerability Severity Classification (Chinese Text)
 
25
 
26
- This model is a fine-tuned version of [hfl/chinese-macbert-base](https://huggingface.co/hfl/chinese-macbert-base) on the dataset [CIRCL/Vulnerability-CNVD](https://huggingface.co/datasets/CIRCL/Vulnerability-CNVD).
27
 
28
- For more information, visit the [Vulnerability-Lookup project page](https://vulnerability.circl.lu) or the [ML-Gateway GitHub repository](https://github.com/vulnerability-lookup/ML-Gateway), which demonstrates its usage in a FastAPI server.
 
 
 
29
 
30
- ## How to use
31
 
32
- You can use this model directly with the Hugging Face `transformers` library for text classification:
33
 
34
- ```python
35
- from transformers import pipeline
36
 
37
- classifier = pipeline(
38
- "text-classification",
39
- model="CIRCL/vulnerability-severity-classification-chinese-macbert-base"
40
- )
41
 
42
- # Example usage for a Chinese vulnerability description
43
- description_chinese = "TOTOLINK A3600R是中国吉翁电子(TOTOLINK)公司的一款6天线1200M无线路由器。TOTOLINK A3600R存在缓冲区溢出漏洞,该漏洞源于/cgi-bin/cstecgi.cgi文件的UploadCustomModule函数中的File参数未能正确验证输入数据的长度大小,攻击者可利用该漏洞在系统上执行任意代码或者导致拒绝服务。"
44
- result_chinese = classifier(description_chinese)
45
- print(result_chinese)
46
- # Expected output example: [{'label': '高', 'score': 0.9802}]
47
- ```
48
 
49
- ## Training procedure
50
 
51
- It achieves the following results on the evaluation set:
52
- - Loss: 0.6282
53
- - Accuracy: 0.7798
54
 
55
  ### Training hyperparameters
56
 
@@ -67,11 +50,11 @@ The following hyperparameters were used during training:
67
 
68
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
  |:-------------:|:-----:|:-----:|:---------------:|:--------:|
70
- | 0.5427 | 1.0 | 3447 | 0.6015 | 0.7505 |
71
- | 0.5167 | 2.0 | 6894 | 0.5665 | 0.7747 |
72
- | 0.365 | 3.0 | 10341 | 0.5643 | 0.7846 |
73
- | 0.3289 | 4.0 | 13788 | 0.5923 | 0.7777 |
74
- | 0.3408 | 5.0 | 17235 | 0.6282 | 0.7798 |
75
 
76
 
77
  ### Framework versions
 
 
1
  ---
 
 
 
2
  library_name: transformers
3
  license: apache-2.0
4
+ base_model: hfl/chinese-macbert-base
 
5
  tags:
6
  - generated_from_trainer
7
+ metrics:
8
+ - accuracy
 
 
 
 
 
9
  model-index:
10
  - name: vulnerability-severity-classification-chinese-macbert-base
11
  results: []
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-severity-classification-chinese-macbert-base
18
 
19
+ This model is a fine-tuned version of [hfl/chinese-macbert-base](https://huggingface.co/hfl/chinese-macbert-base) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5994
22
+ - Accuracy: 0.7858
23
 
24
+ ## Model description
25
 
26
+ More information needed
27
 
28
+ ## Intended uses & limitations
 
29
 
30
+ More information needed
 
 
 
31
 
32
+ ## Training and evaluation data
 
 
 
 
 
33
 
34
+ More information needed
35
 
36
+ ## Training procedure
 
 
37
 
38
  ### Training hyperparameters
39
 
 
50
 
51
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
  |:-------------:|:-----:|:-----:|:---------------:|:--------:|
53
+ | 0.6543 | 1.0 | 3465 | 0.5870 | 0.7529 |
54
+ | 0.5973 | 2.0 | 6930 | 0.5463 | 0.7736 |
55
+ | 0.4937 | 3.0 | 10395 | 0.5417 | 0.7841 |
56
+ | 0.448 | 4.0 | 13860 | 0.5541 | 0.7884 |
57
+ | 0.3624 | 5.0 | 17325 | 0.5994 | 0.7858 |
58
 
59
 
60
  ### Framework versions
emissions.csv CHANGED
@@ -1,2 +1,2 @@
1
  timestamp,project_name,run_id,experiment_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2
- 2025-09-23T07:11:38,codecarbon,1f17e608-4fa9-4987-90dd-91fd7affc58e,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,3959.345899205655,0.07726378551046184,1.951428025673708e-05,42.5,400.0415744241799,94.34468507766725,0.04671087107853902,0.5836095666095105,0.10368662567193301,0.7340070633599824,Luxembourg,LUX,luxembourg,,,Linux-6.8.0-71-generic-x86_64-with-glibc2.39,3.12.3,2.8.4,64,AMD EPYC 9124 16-Core Processor,2,2 x NVIDIA L40S,6.1294,49.6113,251.5858268737793,machine,N,1.0
 
1
  timestamp,project_name,run_id,experiment_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2
+ 2025-10-06T06:47:09,codecarbon,15aeb803-7d38-4051-a214-da3130a4bed2,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,3953.308398708701,0.07718071857326264,1.9523070499248874e-05,42.5,315.5237593318902,94.34468507766725,0.04663262536316761,0.5830715406235214,0.10351376028619633,0.7332179262728844,Luxembourg,LUX,luxembourg,,,Linux-6.8.0-71-generic-x86_64-with-glibc2.39,3.12.3,2.8.4,64,AMD EPYC 9124 16-Core Processor,2,2 x NVIDIA L40S,6.1294,49.6113,251.5858268737793,machine,N,1.0
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5e4ec007e7175b32c214877c243184f0906c6ccee16494456164e04d6478820
3
  size 409103316
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:607cde963c9cae8369b2c23dbf2c38da3a480afaf902cbe8303220ac33cbfc8e
3
  size 409103316