Instructions to use azherali/CodeGenDetect-Roberta_Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use azherali/CodeGenDetect-Roberta_Lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("FacebookAI/roberta-base") model = PeftModel.from_pretrained(base_model, "azherali/CodeGenDetect-Roberta_Lora") - Notebooks
- Google Colab
- Kaggle
File too large to display, you can check the raw version instead.