Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use azherali/CodeDetect-GraphCodeBERT-T1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeDetect-GraphCodeBERT-T1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeDetect-GraphCodeBERT-T1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeDetect-GraphCodeBERT-T1") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeDetect-GraphCodeBERT-T1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download A_results.csv from azherali/CodeDetect-GraphCodeBERT-T1: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/azherali/CodeDetect-GraphCodeBERT-T1/resolve/main/A_results.csv
- Command line
-
hf download hf://azherali/CodeDetect-GraphCodeBERT-T1/A_results.csv
-
curl -L -o A_results.csv https://huggingface.co/azherali/CodeDetect-GraphCodeBERT-T1/resolve/main/A_results.csv
325 Bytes
| model_name,split,accuracy,precision,recall,macro_f1,weighted_f1 | |
| microsoft/graphcodebert-base,validation,0.9760778094251684,0.97613794654941,0.9759429272373402,0.9760347315702568,0.9760753593906688 | |
| microsoft/graphcodebert-base,test,0.9762037312756509,0.976278281933328,0.9760567623346739,0.9761602673049433,0.9762009637092929 | |