--- license: cc-by-4.0 base_model: google-bert/bert-base-uncased datasets: - hao-li/AIDev pipeline_tag: text-classification language: - en --- # aidev-task-type-bert `bert-base-uncased` fine-tuned to classify AI-agent pull requests into Conventional Commit task types (`build, chore, ci, docs, feat, fix, other, perf, refactor, revert, style, test`). AIDev dropped the `pr_task_type` table after v3. This model labels newer releases (v4, v5). ## Training - Labels: `hao-li/AIDev@v3` `pr_task_type` (LLM-generated), joined to v3 `pull_request`. 33,596 PRs. - Input: `title + "\n\n" + body`, truncated to 256 tokens. - 3 epochs, lr 2e-5, batch 32, AdamW, linear warmup 6%, fp16, T4 GPU. - 90/10 stratified split, seed 42. ## Validation (3,360 held-out PRs) | metric | value | |---|---| | accuracy | 0.894 | | weighted F1 | 0.893 | | macro F1 | 0.627 | | class | F1 | support | |---|---|---| | fix | 0.947 | 811 | | feat | 0.925 | 1445 | | docs | 0.917 | 389 | | test | 0.900 | 236 | | ci | 0.763 | 41 | | refactor | 0.746 | 229 | | perf | 0.742 | 34 | | chore | 0.639 | 89 | | build | 0.516 | 63 | | style | 0.429 | 19 | | other | 0.000 | 3 | | revert | 0.000 | 1 | `other` and `revert` have 31 and 16 training rows; model never predicts them. Labels inherit any error in the v3 LLM annotations. ## Usage ```python from transformers import pipeline clf = pipeline("text-classification", model="Hydragon123/aidev-task-type-bert", truncation=True, max_length=256) clf("fix: handle null user in login\n\nCrash when user is None.") ```