Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use azherali/CodeDetect-RoBERTa-T2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeDetect-RoBERTa-T2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeDetect-RoBERTa-T2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeDetect-RoBERTa-T2") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeDetect-RoBERTa-T2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download B_results.csv from azherali/CodeDetect-RoBERTa-T2: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/azherali/CodeDetect-RoBERTa-T2/resolve/main/B_results.csv
- Command line
-
hf download hf://azherali/CodeDetect-RoBERTa-T2/B_results.csv
-
curl -L -o B_results.csv https://huggingface.co/azherali/CodeDetect-RoBERTa-T2/resolve/main/B_results.csv
318 Bytes
| model_name,split,accuracy,precision,recall,macro_f1,weighted_f1 | |
| FacebookAI/roberta-base,validation,0.6347740426055904,0.5843402758885755,0.6057486711450843,0.5912811195585213,0.6375779180869081 | |
| FacebookAI/roberta-base,test,0.6337783538561245,0.5823908636245498,0.6033436567519965,0.5891474781330058,0.6367790012862856 | |