Issue Intent β€” DistilBERT ONNX INT8

Issue Intent is an NLP project for classifying real GitHub issue reports into four categories:

  • Bug
  • Feature
  • Question
  • Documentation

This repository provides a dynamically quantized INT8 ONNX version of a fine-tuned DistilBERT classifier, intended for lightweight CPU inference and browser-based demonstrations.

Model Details

Property Value
Architecture DistilBERT
Base model distilbert/distilbert-base-uncased
Task Four-class text classification
Language English
Input GitHub issue title and body
Format ONNX
Quantization Dynamic INT8
Model artifact model_int8.onnx
Approximate file size 132 MiB

The model was fine-tuned using PyTorch, exported to ONNX, and dynamically quantized to INT8.

Training Dataset

The model was trained using the NLBSE'23 Issue Report Classification Dataset, containing more than 1.4 million labeled GitHub issue reports collected from real open-source projects.

Dataset source:

https://github.com/nlbse2023/issue-report-classification

Competition information:

https://nlbse2023.github.io/tools/

The original dataset is not redistributed in this model repository.

Preprocessing and Tokenization

The classifier uses the issue title and body with structured text preprocessing.

The inference pipeline consists of:

  1. Structured body preprocessing (E4 configuration).
  2. DistilBERT WordPiece tokenization.
  3. Title/body token budgeting, with a maximum sequence length of 256 tokens and a title budget of 48 tokens.
  4. ONNX inference.
  5. Softmax probabilities for the four labels.

Correct predictions require the same preprocessing, tokenization, and input construction used during training.

Evaluation

The selected fine-tuned PyTorch model achieved the following results on the official NLBSE'23 test set:

Metric Score
Micro F1 0.8866
Macro F1 0.7912

The INT8 ONNX model was checked against the FP32 ONNX version using prediction agreement and smaller-scale evaluation experiments.

The INT8 model has not been established as equivalent to the full-test PyTorch scores through a complete official-test evaluation.

Browser compatibility tests confirmed matching predicted labels for three reference examples, with small numerical differences in model outputs.

These scores describe the project's evaluation setup and should not be interpreted as guaranteed performance across arbitrary repositories or issue distributions.

Intended Use

  • GitHub issue classification demonstrations.
  • NLP and machine-learning portfolio projects.
  • Experiments with ONNX, quantization, and browser inference.
  • Research and education in software engineering NLP.

The classifier is intended to assist issue triage, not automatically replace human review.

Limitations

  • Primarily designed for English GitHub issue reports.
  • Predictions may be less reliable on unseen repositories, unusual issue formats, or ambiguous reports.
  • Class confidence scores are not guaranteed to be calibrated.
  • Structured preprocessing and tokenization must match the original inference pipeline.
  • Quantization can introduce numerical differences relative to FP32 inference.
  • The model may inherit limitations and biases from its base model and training data.

Deployment

The ONNX graph supports CPU inference with ONNX Runtime and has been tested with ONNX Runtime Web using WebAssembly.

The public demo is designed to run model inference inside the user's browser, without requiring a continuously running Python backend.

The ONNX graph alone is not sufficient for reproducing the complete classifier; compatible tokenizer files and preprocessing code are also required.

Licensing and Attribution

The base model, DistilBERT Base Uncased, is distributed under the Apache License 2.0.

The training dataset was provided for the NLBSE'23 Issue Report Classification competition. The competition's GitHub repository carries an AGPL-3.0 license; that repository license should not be assumed to establish a separate blanket license for all underlying GitHub issue content or these derived model weights.

This model repository does not redistribute the original training examples. Licensing of the derived weights should be assessed in light of applicable upstream terms.

References

DistilBERT

Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter.

https://arxiv.org/abs/1910.01108

NLBSE'23 Tool Competition

Kallis, R., Izadi, M., Pascarella, L., Chaparro, O., & Rani, P. (2023). The NLBSE'23 Tool Competition.

https://github.com/nlbse2023/issue-report-classification

Predicting Issue Types on GitHub

Kallis, R., Di Sorbo, A., Canfora, G., & Panichella, S. (2021). Predicting issue types on GitHub. Science of Computer Programming, 205, 102598.

https://doi.org/10.1016/j.scico.2020.102598

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for mazenalasas/issue-intent-onnx

Quantized
(117)
this model

Paper for mazenalasas/issue-intent-onnx