Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use azherali/CodeDetect-GraphCodeBERT-T2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeDetect-GraphCodeBERT-T2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeDetect-GraphCodeBERT-T2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeDetect-GraphCodeBERT-T2") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeDetect-GraphCodeBERT-T2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download B_results.csv from azherali/CodeDetect-GraphCodeBERT-T2: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/azherali/CodeDetect-GraphCodeBERT-T2/resolve/main/B_results.csv
- Command line
-
hf download hf://azherali/CodeDetect-GraphCodeBERT-T2/B_results.csv
-
curl -L -o B_results.csv https://huggingface.co/azherali/CodeDetect-GraphCodeBERT-T2/resolve/main/B_results.csv
326 Bytes
| model_name,split,accuracy,precision,recall,macro_f1,weighted_f1 | |
| microsoft/graphcodebert-base,validation,0.639861567476134,0.5928929455142122,0.6064985570372149,0.5977424927754723,0.6425900404911722 | |
| microsoft/graphcodebert-base,test,0.6380816591056384,0.590262377854302,0.6034767545047094,0.5949197629919633,0.6407116348266371 | |