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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dzungpham/graphcodebert-code-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
graphcodebert-code-classification / inference /graphcodebert-mixcode-fft /checkpoint-50 /metrics.json
Download inference/graphcodebert-mixcode-fft/checkpoint-50/metrics.json from dzungpham/graphcodebert-code-classification: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/4f8c4ed3d9cf9cdc213702412916e71be9634c88/inference/graphcodebert-mixcode-fft/checkpoint-50/metrics.json
- Command line
-
hf download hf://dzungpham/graphcodebert-code-classification@4f8c4ed3d9cf9cdc213702412916e71be9634c88/inference/graphcodebert-mixcode-fft/checkpoint-50/metrics.json
-
curl -L -o metrics.json https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/4f8c4ed3d9cf9cdc213702412916e71be9634c88/inference/graphcodebert-mixcode-fft/checkpoint-50/metrics.json
286 Bytes
| { | |
| "checkpoint": "checkpoint-50", | |
| "split": "test", | |
| "accuracy": 0.74, | |
| "precision": 0.664, | |
| "recall": 0.74, | |
| "f1_score": 0.6879, | |
| "confusion_matrix": [ | |
| [ | |
| 720, | |
| 57 | |
| ], | |
| [ | |
| 203, | |
| 20 | |
| ] | |
| ] | |
| } |