Token Classification
GLiNER2
Safetensors
English
extractor
information-extraction
named-entity-recognition
relation-extraction
event-extraction
text-classification
Instructions to use whr778/gliner2-base-v1-rams with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use whr778/gliner2-base-v1-rams with GLiNER2:
from gliner2 import GLiNER2 model = GLiNER2.from_pretrained("whr778/gliner2-base-v1-rams") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Add model card as README
Browse files
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: gliner2
|
| 3 |
+
license: other
|
| 4 |
+
license_name: unverified-review-required
|
| 5 |
+
base_model: fastino/gliner2-base-v1
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- gliner2
|
| 10 |
+
- information-extraction
|
| 11 |
+
- named-entity-recognition
|
| 12 |
+
- relation-extraction
|
| 13 |
+
- event-extraction
|
| 14 |
+
- text-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- f1
|
| 17 |
+
- precision
|
| 18 |
+
- recall
|
| 19 |
+
pipeline_tag: token-classification
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# gliner2-base-v1_rams
|
| 23 |
+
|
| 24 |
+
A [GLiNER2](https://github.com/fastino-ai/GLiNER2) multi-task information-extraction model (entities, relations, events, and classification) fine-tuned from `fastino/gliner2-base-v1`.
|
| 25 |
+
|
| 26 |
+
## β οΈ License at a glance
|
| 27 |
+
|
| 28 |
+
- **Effective license:** Unverified β review required
|
| 29 |
+
- **Commercial use:** Unverified
|
| 30 |
+
- **All dataset licenses verified:** No
|
| 31 |
+
|
| 32 |
+
See [License](#license) for the full determination and per-dataset terms.
|
| 33 |
+
|
| 34 |
+
## Model details
|
| 35 |
+
|
| 36 |
+
- **Base model:** [`fastino/gliner2-base-v1`](https://huggingface.co/fastino/gliner2-base-v1)
|
| 37 |
+
- **Library:** `gliner2`
|
| 38 |
+
- **Tasks:** entity, relation, event, and classification extraction
|
| 39 |
+
- **Experiment:** `gliner2-base-v1_rams`
|
| 40 |
+
|
| 41 |
+
## Training data
|
| 42 |
+
|
| 43 |
+
**1** dataset used for this run. 7,329 training records (val: 924, test: 871).
|
| 44 |
+
|
| 45 |
+
| Dataset | Task(s) | Train | Val | Test | Language | License | Source |
|
| 46 |
+
|---|---|--:|--:|--:|---|---|---|
|
| 47 |
+
| RAMS | Event extraction (trigger + args) | 7,329 | 924 | 871 | en | see source | [link](https://nlp.jhu.edu/rams/) |
|
| 48 |
+
|
| 49 |
+
**Dataset notes**
|
| 50 |
+
|
| 51 |
+
- **RAMS** β Multi-sentence event extraction with triggers and typed arguments; 139 event types, 65 argument roles.
|
| 52 |
+
|
| 53 |
+
## Training procedure
|
| 54 |
+
|
| 55 |
+
| Setting | Value |
|
| 56 |
+
|---|---|
|
| 57 |
+
| Trained on | 2026-07-19 |
|
| 58 |
+
| Duration | 28m 48s |
|
| 59 |
+
| Throughput | 63.6 samples/s |
|
| 60 |
+
| Epochs | 15 |
|
| 61 |
+
| Batch size | 16 (Γ 2 grad-accum) |
|
| 62 |
+
| Encoder LR | 1e-05 |
|
| 63 |
+
| Task-head LR | 0.0003 |
|
| 64 |
+
| Weight decay | 0.01 |
|
| 65 |
+
| Scheduler | cosine_restarts (warmup 0.05) |
|
| 66 |
+
| Precision | bf16 |
|
| 67 |
+
| Max grad norm | 1.0 |
|
| 68 |
+
| Best-checkpoint metric | eval_event_strict_micro_f1 |
|
| 69 |
+
| Seed | 42 |
|
| 70 |
+
|
| 71 |
+
## Evaluation
|
| 72 |
+
|
| 73 |
+
Decision threshold: **0.5** (config default).
|
| 74 |
+
|
| 75 |
+
### Blind test (held-out test splits)
|
| 76 |
+
|
| 77 |
+
Micro precision / recall / F1, strict β relaxed.
|
| 78 |
+
|
| 79 |
+
| Category | Precision | Recall | F1 | Support |
|
| 80 |
+
|---|--:|--:|--:|--:|
|
| 81 |
+
| event_type | 1.000 β 1.000 | 0.986 β 0.986 | 0.993 β 0.993 | 848 |
|
| 82 |
+
| event_trigger | 0.927 β 0.929 | 0.943 β 0.946 | 0.935 β 0.937 | 848 |
|
| 83 |
+
| event_argument | 0.468 β 0.695 | 0.457 β 0.678 | 0.462 β 0.686 | 2016 |
|
| 84 |
+
| event | 0.697 β 0.819 | 0.689 β 0.810 | 0.693 β 0.814 | 3712 |
|
| 85 |
+
|
| 86 |
+
### Best checkpoint (validation)
|
| 87 |
+
|
| 88 |
+
Micro precision / recall / F1, strict β relaxed.
|
| 89 |
+
|
| 90 |
+
| Category | Precision | Recall | F1 | Support |
|
| 91 |
+
|---|--:|--:|--:|--:|
|
| 92 |
+
| event_type | 1.000 β 1.000 | 0.987 β 0.987 | 0.993 β 0.993 | 896 |
|
| 93 |
+
| event_trigger | 0.908 β 0.918 | 0.930 β 0.940 | 0.919 β 0.929 | 896 |
|
| 94 |
+
| event_argument | 0.422 β 0.677 | 0.396 β 0.634 | 0.408 β 0.655 | 2182 |
|
| 95 |
+
| event | 0.671 β 0.809 | 0.649 β 0.782 | 0.660 β 0.795 | 3974 |
|
| 96 |
+
|
| 97 |
+
## License
|
| 98 |
+
|
| 99 |
+
**Effective license: Unverified β review required.** This model is a derivative of its base model and every training dataset, so the most restrictive term across all of them governs the whole model.
|
| 100 |
+
|
| 101 |
+
- **Commercial use:** Unverified
|
| 102 |
+
- **Share-alike obligation:** No
|
| 103 |
+
- **All licenses verified:** No
|
| 104 |
+
- **Base model:** gliner2-base-v1 β see model card
|
| 105 |
+
|
| 106 |
+
**Unverified β verify the upstream terms before redistribution**
|
| 107 |
+
- RAMS (see source)
|
| 108 |
+
- gliner2-base-v1 (see model card)
|
| 109 |
+
|
| 110 |
+
> License strings are copied verbatim from each dataset's card/source and from `tools/train/dataset_registry.yaml`. "see card"/"see source"/"other" mean the upstream declares no clear license β treat as unverified. This summary is informational, not legal advice; confirm terms before redistribution or commercial use.
|
| 111 |
+
|
| 112 |
+
## Citation
|
| 113 |
+
|
| 114 |
+
If you use this model, please cite GLiNER2 and the underlying datasets (linked in [Training data](#training-data)).
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
_Model card generated automatically at the end of training (2026-07-19)._
|