Run this model with HF Jobs

Run Mallard74/codebert-xcode-tags-classification 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/Mallard74/codebert-xcode-tags-classification. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/Mallard74/codebert-xcode-tags-classification 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.
How to use from the
Use from the
Transformers library
# Gated model: Login with a HF token with gated access permission
hf auth login
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Mallard74/codebert-xcode-tags-classification")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Mallard74/codebert-xcode-tags-classification")
model = AutoModelForSequenceClassification.from_pretrained("Mallard74/codebert-xcode-tags-classification", device_map="auto")
Quick Links

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

codebert-base

This model is a fine-tuned version of microsoft/codebert-base on the xCodeEval dataset, more precisely on the multi-tag classification task.. It achieves the following results on the evaluation set:

  • Loss: 0.2756
  • F1 Macro: 0.3907
  • F1 Micro: 0.6159
  • Roc Auc: 0.8944
  • Accuracy: 0.4118
  • Hamming Loss: 0.1088

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 3

Training results

Training Loss Epoch Step Validation Loss F1 Macro F1 Micro Roc Auc Accuracy Hamming Loss
No log 1.0 287 0.3148 0.1532 0.4274 0.8593 0.2510 0.1314
0.3402 2.0 574 0.2830 0.3484 0.5897 0.8873 0.3765 0.1132
0.3402 3.0 861 0.2756 0.3907 0.6159 0.8944 0.4118 0.1088

Framework versions

  • Transformers 4.44.2
  • Pytorch 2.2.2
  • Datasets 3.0.0
  • Tokenizers 0.19.1
Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Mallard74/codebert-xcode-tags-classification

Finetuned
(162)
this model

Collection including Mallard74/codebert-xcode-tags-classification