MaryAngel commited on
Commit
a39899b
·
verified ·
1 Parent(s): b97f737

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +69 -0
  2. config.json +42 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +14 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ tags:
5
+ - ci-cd
6
+ - github-actions
7
+ - bert
8
+ - lora
9
+ - peft
10
+ - xai
11
+ - explainable-ai
12
+ - text-classification
13
+ - software-engineering
14
+ datasets:
15
+ - facebook/react
16
+ metrics:
17
+ - f1
18
+ - accuracy
19
+ model-index:
20
+ - name: AdaptCI-XAI
21
+ results:
22
+ - task:
23
+ type: text-classification
24
+ metrics:
25
+ - type: f1
26
+ value: 0.7124
27
+ ---
28
+
29
+ # AdaptCI-XAI: CI Pipeline Failure Classifier
30
+
31
+ **Research project:** IS 8101 — Sabaragamuwa University of Sri Lanka
32
+ **Student:** Mary Angel Anton Premathas (20APC4548)
33
+ **Paper:** AdaptCI-XAI: Explainable AI for CI Pipeline Failure Diagnosis using Transformer-Based Models on GitHub Actions
34
+
35
+ ## What this model does
36
+ Classifies GitHub Actions CI/CD pipeline failure logs into 4 categories:
37
+ | Label | Description |
38
+ |-------|-------------|
39
+ | `config_error` | Malformed YAML, outdated action versions |
40
+ | `dependency_failure` | npm/pip install failures, missing packages |
41
+ | `test_failure` | Unit/integration test failures, type errors |
42
+ | `infrastructure` | Runner timeout, OOM, network errors |
43
+
44
+ ## How to use
45
+ ```python
46
+ from transformers import pipeline
47
+ clf = pipeline("text-classification", model="MaryAngel/AdaptCI-XAI")
48
+ result = clf("npm ERR ENOENT no such file or directory node_modules/react")
49
+ print(result)
50
+ # [{'label': 'dependency_failure', 'score': 0.94}]
51
+ ```
52
+
53
+ ## Training details
54
+ - **Base model:** bert-base-uncased
55
+ - **Fine-tuning:** LoRA (r=8, alpha=16, target=query+value layers)
56
+ - **Trainable parameters:** ~0.54% of BERT total
57
+ - **Training data:** Real failed CI runs from facebook/react (GitHub API)
58
+ - **Hardware:** Google Colab T4 GPU (free tier)
59
+ - **Weighted F1:** 0.7124
60
+
61
+ ## Novelty
62
+ 1. First LoRA fine-tuning applied to CI/CD log classification
63
+ 2. First SHAP attribution on CI/CD failure predictions
64
+ 3. First expertise-aware (novice) adaptive explanation system for CI/CD
65
+ 4. Multi-source labelling: log text + workflow name + step name signals
66
+ 5. Fully reproducible on FREE hardware (Colab T4 + HF)
67
+
68
+ ## XAI
69
+ Each prediction includes SHAP token attribution showing which log words drove the classification decision — making the black-box model transparent to developers.
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "config_error",
17
+ "1": "dependency_failure",
18
+ "2": "test_failure",
19
+ "3": "infrastructure"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "config_error": 0,
26
+ "dependency_failure": 1,
27
+ "infrastructure": 3,
28
+ "test_failure": 2
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "max_position_embeddings": 512,
32
+ "model_type": "bert",
33
+ "num_attention_heads": 12,
34
+ "num_hidden_layers": 12,
35
+ "pad_token_id": 0,
36
+ "position_embedding_type": "absolute",
37
+ "tie_word_embeddings": true,
38
+ "transformers_version": "5.0.0",
39
+ "type_vocab_size": 2,
40
+ "use_cache": false,
41
+ "vocab_size": 30522
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba85ba322467f1e147c51100268f5f4a2b21911cd43dc67c964c5e5bad67768f
3
+ size 437964776
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }