NTU-NLP-sg/xCodeEval
Updated โข 42.9k โข 72
Run Mallard74/bert-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:
Use HF Jobs to fine-tune https://huggingface.co/Mallard74/bert-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.
Use HF Jobs to run batch inference with https://huggingface.co/Mallard74/bert-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 Mallard74/bert-xcode-tags-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Mallard74/bert-xcode-tags-classification") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Mallard74/bert-xcode-tags-classification")
model = AutoModelForSequenceClassification.from_pretrained("Mallard74/bert-xcode-tags-classification", device_map="auto")This model is a fine-tuned version of bert-base-uncased on the xCodeEval dataset, more precisely on the multi-tag classification task.
It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 Macro | F1 Micro | Roc Auc | Accuracy | Hamming Loss |
|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 287 | 0.3286 | 0.1706 | 0.4810 | 0.8514 | 0.3137 | 0.1270 |
| 0.3527 | 2.0 | 574 | 0.2958 | 0.3283 | 0.6029 | 0.8760 | 0.4196 | 0.1059 |
| 0.3527 | 3.0 | 861 | 0.2880 | 0.3305 | 0.6076 | 0.8857 | 0.4314 | 0.1064 |
Base model
google-bert/bert-base-uncased