Instructions to use FluidInference/gliner2-5-small-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use FluidInference/gliner2-5-small-coreml with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("FluidInference/gliner2-5-small-coreml") # 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 pinned source architecture config and provenance
Browse files- CONFIG_PROVENANCE.md +7 -0
- config.json +99 -0
CONFIG_PROVENANCE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Root config provenance
|
| 2 |
+
|
| 3 |
+
The root `config.json` is an unmodified copy of the full upstream model config from [`fastino/gliner2.5-small-v1`](https://huggingface.co/fastino/gliner2.5-small-v1/tree/7e6f537f10337497069276892a5ef435028252ce) at `7e6f537f10337497069276892a5ef435028252ce`, path `config.json`.
|
| 4 |
+
|
| 5 |
+
SHA-256: `0b7d9e1401ceeb83e992ec66d2f93bff7e5646428f1b4706ec527cf88f53578a`.
|
| 6 |
+
|
| 7 |
+
This file describes the source architecture. It does not make the Core ML package a standalone Transformers AutoModel checkpoint. Use the repository's Core ML runtime and its included tokenizer, decision heads, and calibration where applicable.
|
config.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "boundary",
|
| 3 |
+
"architecture_version": 1,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"BoundaryExtractor"
|
| 6 |
+
],
|
| 7 |
+
"attn_implementation": "sdpa",
|
| 8 |
+
"boundary_head": {
|
| 9 |
+
"abstention_loss_weight": 0.2,
|
| 10 |
+
"abstention_threshold": 0.5,
|
| 11 |
+
"adaptive_threshold": false,
|
| 12 |
+
"bidirectional_proposals": true,
|
| 13 |
+
"boundary_attention_heads": 4,
|
| 14 |
+
"boundary_attention_layers": 2,
|
| 15 |
+
"boundary_attention_window": 128,
|
| 16 |
+
"boundary_dim": 128,
|
| 17 |
+
"boundary_ffn_multiplier": 2.0,
|
| 18 |
+
"boundary_focal_clip": 0.05,
|
| 19 |
+
"boundary_focal_gamma_negative": 2.0,
|
| 20 |
+
"boundary_focal_gamma_positive": 0.0,
|
| 21 |
+
"boundary_marginal_loss": "asymmetric_focal",
|
| 22 |
+
"boundary_negative_weight": 0.5,
|
| 23 |
+
"boundary_refinement_layers": 1,
|
| 24 |
+
"boundary_top_k_alpha": 0.08,
|
| 25 |
+
"boundary_top_k_bucket": 8,
|
| 26 |
+
"boundary_top_k_max": 128,
|
| 27 |
+
"candidate_attention_heads": 4,
|
| 28 |
+
"candidate_attention_layers": 0,
|
| 29 |
+
"candidate_budget": 192,
|
| 30 |
+
"candidate_pool": "shared",
|
| 31 |
+
"classification_loss_weight": 1.0,
|
| 32 |
+
"classification_temperature": 1.0,
|
| 33 |
+
"consistency_loss_weight": 0.1,
|
| 34 |
+
"consistency_warmup_steps": 2000,
|
| 35 |
+
"content_dim": 64,
|
| 36 |
+
"content_soft_max_pool": false,
|
| 37 |
+
"count_loss_weight": 0.2,
|
| 38 |
+
"directional_relation_states": true,
|
| 39 |
+
"dropout": 0.1,
|
| 40 |
+
"enable_abstention": true,
|
| 41 |
+
"enable_count_head": true,
|
| 42 |
+
"enable_records": true,
|
| 43 |
+
"enable_relations": true,
|
| 44 |
+
"enable_rotary_endpoints": true,
|
| 45 |
+
"enable_span_content": true,
|
| 46 |
+
"end_block_size": 256,
|
| 47 |
+
"end_top_k": 24,
|
| 48 |
+
"endpoint_difference_features": true,
|
| 49 |
+
"ends_per_start": 12,
|
| 50 |
+
"export_mode": "auto",
|
| 51 |
+
"hard_negative_keep_all_when_absent": true,
|
| 52 |
+
"hard_negatives_per_positive": 20,
|
| 53 |
+
"loss_reduction": "sum",
|
| 54 |
+
"max_gold_per_query": 64,
|
| 55 |
+
"max_negative_queries_per_batch": 64,
|
| 56 |
+
"min_pool_per_query": 8,
|
| 57 |
+
"minimum_hard_negatives": 16,
|
| 58 |
+
"multihead_pair_compat_heads": 8,
|
| 59 |
+
"negative_query_ratio": 1.0,
|
| 60 |
+
"overlap_policy": "flat",
|
| 61 |
+
"pair_dim": 128,
|
| 62 |
+
"pair_temperature": 1.0,
|
| 63 |
+
"pool_boundary_top_k": 32,
|
| 64 |
+
"pool_size": 192,
|
| 65 |
+
"proposal_loss_weight": 0.3,
|
| 66 |
+
"query_attention_layers": 0,
|
| 67 |
+
"query_conditioned_inside_weight": true,
|
| 68 |
+
"record_anchor_proposal_threshold": 0.2,
|
| 69 |
+
"record_anchor_threshold": 0.5,
|
| 70 |
+
"record_dim": 128,
|
| 71 |
+
"record_field_threshold": 0.5,
|
| 72 |
+
"record_instance_queries": 32,
|
| 73 |
+
"record_loss_weight": 1.0,
|
| 74 |
+
"record_temperature": 1.0,
|
| 75 |
+
"relation_argument_proposal_threshold": 0.2,
|
| 76 |
+
"relation_biaffine_content": true,
|
| 77 |
+
"relation_heads_per_type": 32,
|
| 78 |
+
"relation_loss_weight": 1.0,
|
| 79 |
+
"relation_pair_cap": 64,
|
| 80 |
+
"relation_tails_per_type": 32,
|
| 81 |
+
"relation_temperature": 1.0,
|
| 82 |
+
"rerank_listwise_weight": 0.3,
|
| 83 |
+
"reranker_endpoint_compat": true,
|
| 84 |
+
"rotary_base": 10000.0,
|
| 85 |
+
"soft_iou_anneal_steps": 20000,
|
| 86 |
+
"soft_iou_aux_weight": 0.2,
|
| 87 |
+
"start_top_k": 24,
|
| 88 |
+
"starts_per_end": 12,
|
| 89 |
+
"training_candidate_budget": 192,
|
| 90 |
+
"use_inside_evidence": true,
|
| 91 |
+
"vectorized_pair_elements": 16777216
|
| 92 |
+
},
|
| 93 |
+
"config_version": 3,
|
| 94 |
+
"max_len": 4096,
|
| 95 |
+
"model_name": "microsoft/deberta-v3-xsmall",
|
| 96 |
+
"model_type": "extractor",
|
| 97 |
+
"token_pooling": "first",
|
| 98 |
+
"transformers_version": "5.8.0"
|
| 99 |
+
}
|