Instructions to use anyu205/codebert-code-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anyu205/codebert-code-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="anyu205/codebert-code-detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("anyu205/codebert-code-detection") model = AutoModelForSequenceClassification.from_pretrained("anyu205/codebert-code-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fine-tuned CodeBERT 3 epochs - Macro F1 0.97
Verified signatured67def9
-
Fine-tuned CodeBERT 3 epochs - Macro F1 0.97
Verified signaturefba9b7f -
Update tokenizer with cleaned code config
Verified signaturebf11558 -
Upload RobertaForSequenceClassification
Verified signaturef1b198c -
Upload tokenizer
Verified signature097a943 -
initial commit
Verified signaturefa57b2d