Text Classification
Transformers
Safetensors
English
roberta
code
classification
BERT
Python
Java
JavaScript
text-embeddings-inference
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")# 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") - Notebooks
- Google Colab
- Kaggle
File size: 1,071 Bytes
b9ae652 e50960c b9ae652 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | ---
license: apache-2.0
language:
- en
base_model:
- microsoft/graphcodebert-base
pipeline_tag: text-classification
library_name: transformers
tags:
- code
- classification
- BERT
- transformers
- Python
- Java
- JavaScript
---
# 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 |