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.
File size: 1,176 Bytes
bcf6008
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3a44226
bcf6008
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
---
language: en
tags:
- code
- algorithms
- competitive-programming
- multi-label-classification
- codebert
datasets:
- xCodeEval
metrics:
- f1
- precision
- recall
library_name: transformers
pipeline_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.

**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

```bash
pip install transformers torch
```