File size: 4,591 Bytes
7343966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
2026-04-17 15:38:49,100 - INFO - ===== Training Configuration =====
2026-04-17 15:38:49,102 - INFO - model_name           : microsoft/graphcodebert-base
2026-04-17 15:38:49,105 - INFO - output_dir           : output_checkpoints/graphcodebert-mixcode-fft
2026-04-17 15:38:49,108 - INFO - num_epochs           : 4
2026-04-17 15:38:49,110 - INFO - batch_size           : 64
2026-04-17 15:38:49,112 - INFO - learning_rate        : 5e-05
2026-04-17 15:38:49,114 - INFO - max_length           : 512
2026-04-17 15:38:49,116 - INFO - num_labels           : 2
2026-04-17 15:38:49,117 - INFO - use_wandb            : True
2026-04-17 15:38:49,120 - INFO - freeze_base          : True
2026-04-17 15:38:49,122 - INFO - loss_type            : r-drop
2026-04-17 15:38:49,124 - INFO - focal_alpha          : 1.0
2026-04-17 15:38:49,125 - INFO - focal_gamma          : 2.0
2026-04-17 15:38:49,127 - INFO - r_drop_alpha         : 6.0
2026-04-17 15:38:49,129 - INFO - infonce_temperature  : 0.07
2026-04-17 15:38:49,131 - INFO - infonce_weight       : 0.5
2026-04-17 15:38:49,134 - INFO - seed                 : 42
2026-04-17 15:38:49,136 - INFO - resume_from_checkpoint : None
2026-04-17 15:38:49,138 - INFO - label_smoothing      : 0.2
2026-04-17 15:38:49,140 - INFO - adversarial_epsilon  : 0.5
2026-04-17 15:38:49,141 - INFO - use_swa              : True
2026-04-17 15:38:49,142 - INFO - swa_start_epoch      : 2
2026-04-17 15:38:49,144 - INFO - swa_lr               : 1e-05
2026-04-17 15:38:49,146 - INFO - data_augmentation    : True
2026-04-17 15:38:49,147 - INFO - aug_rename_prob      : 0.6
2026-04-17 15:38:49,149 - INFO - aug_format_prob      : 0.6
2026-04-17 15:38:49,151 - INFO - mixup_alpha          : 1.0
2026-04-17 15:38:49,152 - INFO - low_pass_keep_ratio  : 0.5
2026-04-17 15:38:49,153 - INFO - freq_consistency_weight : 0.1
2026-04-17 15:38:49,154 - INFO - =================================
2026-04-17 15:38:51,130 - INFO - Model placed on cuda
2026-04-17 15:38:51,137 - INFO - ===== Model Architecture =====
2026-04-17 15:38:51,140 - INFO - 
RobertaForSequenceClassification(
  (roberta): RobertaModel(
    (embeddings): RobertaEmbeddings(
      (word_embeddings): Embedding(50265, 768, padding_idx=1)
      (position_embeddings): Embedding(514, 768, padding_idx=1)
      (token_type_embeddings): Embedding(1, 768)
      (LayerNorm): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
      (dropout): Dropout(p=0.1, inplace=False)
    )
    (encoder): RobertaEncoder(
      (layer): ModuleList(
        (0-11): 12 x RobertaLayer(
          (attention): RobertaAttention(
            (self): RobertaSdpaSelfAttention(
              (query): Linear(in_features=768, out_features=768, bias=True)
              (key): Linear(in_features=768, out_features=768, bias=True)
              (value): Linear(in_features=768, out_features=768, bias=True)
              (dropout): Dropout(p=0.1, inplace=False)
            )
            (output): RobertaSelfOutput(
              (dense): Linear(in_features=768, out_features=768, bias=True)
              (LayerNorm): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
              (dropout): Dropout(p=0.1, inplace=False)
            )
          )
          (intermediate): RobertaIntermediate(
            (dense): Linear(in_features=768, out_features=3072, bias=True)
            (intermediate_act_fn): GELUActivation()
          )
          (output): RobertaOutput(
            (dense): Linear(in_features=3072, out_features=768, bias=True)
            (LayerNorm): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
            (dropout): Dropout(p=0.1, inplace=False)
          )
        )
      )
    )
  )
  (classifier): RobertaClassificationHead(
    (dense): Linear(in_features=768, out_features=768, bias=True)
    (dropout): Dropout(p=0.1, inplace=False)
    (out_proj): Linear(in_features=768, out_features=2, bias=True)
  )
)
2026-04-17 15:38:51,145 - INFO - ===== Parameter Summary =====
2026-04-17 15:38:51,148 - INFO - Total Parameters:         124,647,170
2026-04-17 15:38:51,150 - INFO - Trainable Parameters:     592,130
2026-04-17 15:38:51,153 - INFO - Non-trainable Parameters: 124,055,040
2026-04-17 15:38:51,155 - INFO - ===== Tokenizer Summary =====
2026-04-17 15:38:51,176 - INFO - Vocab size: 50265 | Special tokens: ['<s>', '</s>', '<unk>', '<pad>', '<mask>']
2026-04-17 15:38:51,177 - INFO - ===== End of Architecture Log =====
2026-04-17 15:38:51,179 - INFO - Data augmentation enabled (rename=0.6, format=0.6)
2026-04-17 15:38:59,697 - INFO - === Starting training with MixCode + FFT low-pass consistency ===