Downloads · 30 days
10
5% of all-time downloads
alinashrestha/patentsbert-m4-final
patentsbert-m4-final is a text classification model from alinashrestha. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned version of AI-Growth-Lab/PatentSBERTa for binary classification of patent claims as GREEN (Y02) or NOT GREEN.
Downloads · 30 days
10
5% of all-time downloads
All-time downloads
189
Public
Parameters
109M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt876 MB · 49%
From the Hugging Face model README
Fine-tuned version of AI-Growth-Lab/PatentSBERTa for binary classification of patent claims as GREEN (Y02) or NOT GREEN.
Developed as the final model in a 4-assignment pipeline for the course Applied Deep Learning and Artificial Intelligence at Aalborg University.
| Dataset | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| Eval Silver (10,000 claims) | 0.8048 | 0.8025 | 0.8086 | 0.8055 |
| Gold 100 (human verified) | 0.5700 | 0.4310 | 0.7143 | 0.5376 |
This model is the final step in a 4-stage pipeline:
| Parameter | Value |
|---|---|
| Base model | AI-Growth-Lab/PatentSBERTa |
| Epochs | 1 |
| Learning rate | 2e-5 |
| Batch size | 16 train / 32 eval |
| Max sequence length | 256 |
| Hardware | NVIDIA L4 GPU |
| Training time | ~6 minutes |
| File | Description |
|---|---|
model.safetensors | Final model weights |
gold_100_dataset.csv | 100 gold labelled claims |
train_silver_gold_30100.csv | Full training dataset |
mas_100_results.csv | MAS agent outputs |
hitl_100_gold.csv | Human reviewed labels |
Train_qlora_mistral_v2.PY | QLoRA training script |
mas_crewai_fewshot_v2.PY | MAS pipeline script |
train_patentsbert_final.py | PatentSBERTa training script |
m4_final_assignmnet.ipynb | Full assignment notebook |
@misc{shrestha2026greenpatent,
author = {Alina Shrestha},
title = {Green Patent Detection: Advanced Agentic Workflow with QLoRA},
year = {2026},
note = {AAU Applied Deep Learning and Artificial Intelligence}
}