Views
No views yet
| Property | Value |
|---|---|
| Architecture | MPNetForSequenceClassification (12 layers, 768 hidden) |
| Parameters | 109.5 M (all trainable) |
| Base model | AI-Growth-Lab/PatentSBERTa |
| Max sequence length | 512 tokens |
| Labels | 0 — not green, 1 — green |
| Framework | Transformers 5.2.0, PyTorch |
| Split | Rows | Source |
|---|---|---|
| train_silver | 25,000 | Silver labels from Parts A–C |
| gold_labels | 100 (× 25 upsampled = 2,500) | HITL-verified labels |
| Total training | 27,500 | Combined |
| eval_silver | 10,000 | Held-out balanced evaluation set |
| Parameter | Value |
|---|---|
| Learning rate | 2e-5 |
| Epochs | 5 |
| Effective batch size | 128 (4 × 16 × grad_accum 2) |
| LR scheduler | Cosine with 6% warmup |
| Weight decay | 0.01 |
| Label smoothing | 0.05 |
| Gold upsample factor | 25× |
| Early stopping patience | 3 |
| Precision | bf16 |
| Seed | 42 |
torchruneval_silver split (10,000 samples, balanced).| Precision | Recall | F1-score | Support | |
|---|---|---|---|---|
| not-green (0) | 0.8121 | 0.8058 | 0.8090 | 5,000 |
| green (1) | 0.8073 | 0.8136 | 0.8104 | 5,000 |
| Accuracy | 0.8097 | 10,000 |
| Pred not-green | Pred green | |
|---|---|---|
| Actual not-green | 4,029 | 971 |
| Actual green | 932 | 4,068 |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4model_name = "CTB2001/PatentSBERTa-green-classifier"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForSequenceClassification.from_pretrained(model_name)
7
8claim = "A wind turbine blade comprising a spar cap formed from pultruded carbon strips..."
9inputs = tokenizer(claim, return_tensors="pt", truncation=True, max_length=512)
10
11with torch.no_grad():
12 logits = model(**inputs).logits
13 pred = torch.argmax(logits, dim=-1).item()
14
15print("green" if pred == 1 else "not-green")1@misc{trost-bertelsen2025patentsberta-green,
2 author = {Trøst-Bertelsen, Christian},
3 title = {PatentSBERTa Green Patent Classifier},
4 year = {2025},
5 howpublished = {Hugging Face Model Hub},
6 url = {https://huggingface.co/CTB2001/PatentSBERTa-green-classifier}
7}