Text Classification
Transformers
Safetensors
English
roberta
code
algorithms
competitive-programming
multi-label-classification
codebert
text-embeddings-inference
Run this model with HF Jobs
Run Ahmedjr/codebert-algorithm-tagger 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/Ahmedjr/codebert-algorithm-tagger. 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/Ahmedjr/codebert-algorithm-tagger 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 Ahmedjr/codebert-algorithm-tagger with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ahmedjr/codebert-algorithm-tagger with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ahmedjr/codebert-algorithm-tagger")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ahmedjr/codebert-algorithm-tagger") model = AutoModelForSequenceClassification.from_pretrained("Ahmedjr/codebert-algorithm-tagger", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---language: entags:- code- algorithms- competitive-programming- multi-label-classification- codebertdatasets:- xCodeEvalmetrics:- f1- precision- recalllibrary_name: transformerspipeline_tag: text-classification---
# CodeBERT Algorithm Tagger
A fine-tuned CodeBERT model for multi-label classification of algorithmic problems from competitive programming platforms like Codeforces.
## Model Description
This model predicts algorithmic tags/categories for competitive programming problems based on their problem descriptions and solution code. It's fine-tuned from [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base).
**Supported Tags:**- math- graphs- strings- number theory- trees- geometry- games- probabilities
## Training Data
- **Dataset**: xCodeEval (Codeforces problems)- **Training examples**: 2,147 problems (filtered for focus tags)- **Test examples**: 531 problems- **Source**: Problems and solutions from Codeforces platform
### Model Architecture
- **Input**: Concatenated problem description and solution code- **Encoder**: CodeBERT (RoBERTa-based architecture)- **Output**: 8-dimensional binary classification (one per tag)
## Usage
### Installation
```bashpip install transformers torch```
README.mdAdded+57