Instructions to use dzungpham/graphcodebert-code-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dzungpham/graphcodebert-code-classification with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dzungpham/graphcodebert-code-classification", dtype="auto") - Notebooks
- Google Colab
- Kaggle
graphcodebert-code-classification / inference /graphcodebert-base-lowLR-highBatchSize /inference.log
| 2026-04-24 16:25:06,756 - INFO - Loading model and tokenizer from: output_checkpoints/graphcodebert-base-lowLR-highBatchSize/checkpoint-450 | |
| 2026-04-24 16:25:06,939 - INFO - ===== Model Architecture ===== | |
| 2026-04-24 16:25:06,941 - 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.3, 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.3, 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.3, 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.3, inplace=False) | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| (classifier): RobertaClassificationHead( | |
| (dense): Linear(in_features=768, out_features=768, bias=True) | |
| (dropout): Dropout(p=0.3, inplace=False) | |
| (out_proj): Linear(in_features=768, out_features=2, bias=True) | |
| ) | |
| ) | |
| 2026-04-24 16:25:06,943 - INFO - ===== Parameter Summary ===== | |
| 2026-04-24 16:25:06,945 - INFO - Total Parameters: 124,647,170 | |
| 2026-04-24 16:25:06,945 - INFO - Trainable Parameters: 124,647,170 | |
| 2026-04-24 16:25:06,947 - INFO - Non-trainable Parameters: 0 | |
| 2026-04-24 16:25:06,948 - INFO - ===== Tokenizer Summary ===== | |
| 2026-04-24 16:25:06,965 - INFO - Vocab size: 50265 | Special tokens: ['<s>', '</s>', '<unk>', '<pad>', '<mask>'] | |
| 2026-04-24 16:25:06,967 - INFO - ===== End of Architecture Log ===== | |
| 2026-04-24 16:25:07,131 - INFO - Loading dataset: DaniilOr/SemEval-2026-Task13 (A) | |
| 2026-04-24 16:25:07,758 - INFO - Tokenizing dataset... | |
| 2026-04-24 16:25:09,083 - INFO - Running inference on 1000 examples... | |
| 2026-04-24 16:25:39,283 - INFO - Calculating classification metrics... | |
| 2026-04-24 16:25:39,304 - INFO - ------------------------------ | |
| 2026-04-24 16:25:39,305 - INFO - METRICS FOR SPLIT: test | |
| 2026-04-24 16:25:39,306 - INFO - Accuracy: 0.7380 | |
| 2026-04-24 16:25:39,308 - INFO - Precision: 0.6753 | |
| 2026-04-24 16:25:39,310 - INFO - Recall: 0.7380 | |
| 2026-04-24 16:25:39,311 - INFO - F1-Score: 0.6952 | |
| 2026-04-24 16:25:39,312 - INFO - ------------------------------ | |
| 2026-04-24 16:25:39,315 - INFO - Confusion Matrix: | |
| [[710 67] | |
| [195 28]] | |
| 2026-04-24 16:25:39,318 - INFO - ✅ Predictions saved to test/inference/graphcodebert-base-lowLR-highBatchSize/submission.csv | |