Text Classification
Transformers
Safetensors
English
roberta
code
classification
BERT
Python
Java
JavaScript
text-embeddings-inference
Run this model with HF Jobs
Run LavishKK/graphcodebert-slowcode-detector-unbalanced on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/LavishKK/graphcodebert-slowcode-detector-unbalanced. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/LavishKK/graphcodebert-slowcode-detector-unbalanced on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use LavishKK/graphcodebert-slowcode-detector-unbalanced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LavishKK/graphcodebert-slowcode-detector-unbalanced with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LavishKK/graphcodebert-slowcode-detector-unbalanced")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LavishKK/graphcodebert-slowcode-detector-unbalanced") model = AutoModelForSequenceClassification.from_pretrained("LavishKK/graphcodebert-slowcode-detector-unbalanced", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
Model Details
- Developed by: Lavish Kamal Kumar
- Language(s) (NLP): Python, Java, JavaScript
- License: Apache 2.0
- Finetuned from model: microsoft/graphcodebert-base
Uses
This model is a code classifier designed to detect whether a given code snippet is fast or slow in terms of performance.
It is particularly useful for:
- Flagging potentially inefficient or unoptimized code
- Assisting automated code review tools
The model predicts one of two labels:
LABEL_0: Slow code (potential performance issues detected)LABEL_1: Fast code (no major performance concerns)
It works best on short to medium-length code snippets in supported programming languages and is intended for use with the ๐ค Transformers library.
Supported Languages
- Python
- Java
- JavaScript
- Downloads last month
- 38
Model tree for LavishKK/graphcodebert-slowcode-detector-unbalanced
Base model
microsoft/graphcodebert-base