JeloH commited on
Commit
cf8fdd6
·
verified ·
1 Parent(s): 49a54d9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -15
README.md CHANGED
@@ -1,19 +1,17 @@
1
-
2
  ## Model Details
3
 
4
  ### Model Description
5
 
6
- `JeloH/Xgenq_FineTuned_adapter` is a PEFT adapter for binary sequence classification built on top of the base model `JeloH/Full_pre-trained_src_binary_ass_nld_qwen7`. It is intended to classify source code or code-like input into one of two classes:
7
 
8
  - `BENIGN`
9
  - `MALWARE`
10
 
11
-
12
  ## Uses
13
 
14
  ### Direct Use
15
 
16
- This model is intended for binary classification of source code snippets, program text, or related code artifacts. A typical use case is malware detection, where the model predicts whether an input sample is more likely to be:
17
 
18
  - `MALWARE`
19
  - `BENIGN`
@@ -27,15 +25,15 @@ Potential direct uses include:
27
 
28
  ### Downstream Use [optional]
29
 
30
- This adapter can be integrated into larger security workflows, such as:
31
 
32
- - static-analysis pipelines
33
  - malware analysis platforms
34
  - secure code ingestion systems
35
  - dataset annotation pipelines
36
  - human-in-the-loop review systems
37
 
38
- It may also be used as a feature extractor or scoring component within a broader detection stack.
39
 
40
  ### Out-of-Scope Use
41
 
@@ -47,7 +45,7 @@ This model is not intended to be used as:
47
  - a general-purpose natural language classifier
48
  - a legal or compliance decision tool
49
 
50
- The model may perform poorly on inputs far from its training distribution, including heavily obfuscated code, incomplete snippets, unsupported programming languages, or non-code text.
51
 
52
  ## Bias, Risks, and Limitations
53
 
@@ -55,24 +53,24 @@ This model inherits limitations from both the base model and the fine-tuning dat
55
 
56
  Known risks and limitations include:
57
 
58
- - **Dataset bias:** performance may depend heavily on the composition of the training set
59
- - **Language/domain bias:** results may vary by programming language, code style, compiler artifacts, or malware family
60
  - **False positives:** benign code may be flagged as malware
61
  - **False negatives:** malicious code may be classified as benign
62
- - **Input truncation:** long samples may be truncated, which can remove important signals
63
- - **Incomplete context:** isolated code snippets may not contain enough information for reliable classification
64
  - **Adapter dependency:** the adapter must be used with the correct base model
65
 
66
  ### Recommendations
67
 
68
  Users should:
69
 
70
- - treat outputs as model predictions, not ground truth
71
  - review high-risk predictions with human analysts
72
  - validate performance on their own datasets before deployment
73
  - monitor false positive and false negative rates
74
  - combine this model with other static and dynamic analysis techniques
75
- - clearly communicate uncertainty when using predictions in downstream systems
76
 
77
  ## How to Get Started with the Model
78
 
@@ -84,7 +82,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
84
  from peft import PeftModel
85
 
86
  BASE_MODEL = "JeloH/Full_pre-trained_src_binary_ass_nld_qwen7"
87
- ADAPTER_PATH = "JeloH/Xgenq_FineTuned_adapter"
88
 
89
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
90
 
 
 
1
  ## Model Details
2
 
3
  ### Model Description
4
 
5
+ `JeloH/xGenQ-sec-cls` is a PEFT adapter for binary sequence classification built on top of the base model `JeloH/Full_pre-trained_src_binary_ass_nld_qwen7`. It is designed to classify source code or code-like input into one of two classes:
6
 
7
  - `BENIGN`
8
  - `MALWARE`
9
 
 
10
  ## Uses
11
 
12
  ### Direct Use
13
 
14
+ This model is intended for binary classification of source code snippets, program text, and related code artifacts. A primary use case is malware detection, where the model predicts whether an input sample is more likely to be:
15
 
16
  - `MALWARE`
17
  - `BENIGN`
 
25
 
26
  ### Downstream Use [optional]
27
 
28
+ This adapter can be integrated into broader security workflows, such as:
29
 
30
+ - static analysis pipelines
31
  - malware analysis platforms
32
  - secure code ingestion systems
33
  - dataset annotation pipelines
34
  - human-in-the-loop review systems
35
 
36
+ It may also be used as a feature extractor or scoring component within a larger detection stack.
37
 
38
  ### Out-of-Scope Use
39
 
 
45
  - a general-purpose natural language classifier
46
  - a legal or compliance decision tool
47
 
48
+ The model may perform poorly on inputs that are far from its training distribution, including heavily obfuscated code, incomplete snippets, unsupported programming languages, or non-code text.
49
 
50
  ## Bias, Risks, and Limitations
51
 
 
53
 
54
  Known risks and limitations include:
55
 
56
+ - **Dataset bias:** performance may depend heavily on the composition of the training data
57
+ - **Language and domain bias:** results may vary across programming languages, coding styles, compiler artifacts, or malware families
58
  - **False positives:** benign code may be flagged as malware
59
  - **False negatives:** malicious code may be classified as benign
60
+ - **Input truncation:** long samples may be truncated, potentially removing important signals
61
+ - **Incomplete context:** isolated code snippets may not provide enough information for reliable classification
62
  - **Adapter dependency:** the adapter must be used with the correct base model
63
 
64
  ### Recommendations
65
 
66
  Users should:
67
 
68
+ - treat outputs as model predictions rather than ground truth
69
  - review high-risk predictions with human analysts
70
  - validate performance on their own datasets before deployment
71
  - monitor false positive and false negative rates
72
  - combine this model with other static and dynamic analysis techniques
73
+ - communicate model uncertainty clearly in downstream systems
74
 
75
  ## How to Get Started with the Model
76
 
 
82
  from peft import PeftModel
83
 
84
  BASE_MODEL = "JeloH/Full_pre-trained_src_binary_ass_nld_qwen7"
85
+ ADAPTER_PATH = "JeloH/xGenQ-sec-cls"
86
 
87
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
88