Token Classification
GLiNER2
multilingual
English
named-entity-recognition
relation-extraction
text-classification
information-extraction
coreai
apple
ios
on-device
fp16
Instructions to use smdesai/GLiNER25-Multi-FP16-CoreAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use smdesai/GLiNER25-Multi-FP16-CoreAI with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("smdesai/GLiNER25-Multi-FP16-CoreAI") # 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
Download constants.json from smdesai/GLiNER25-Multi-FP16-CoreAI: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/smdesai/GLiNER25-Multi-FP16-CoreAI/resolve/main/constants.json
- Command line
-
hf download hf://smdesai/GLiNER25-Multi-FP16-CoreAI/constants.json
-
curl -L -o constants.json https://huggingface.co/smdesai/GLiNER25-Multi-FP16-CoreAI/resolve/main/constants.json
3.84 kB
| {"record_null_embed": [-0.054069, 0.348559, 0.075885, 0.551691, 0.098385, -0.240661, 0.778974, -0.422381, 0.346059, 0.347703, 0.285063, -0.299945, -0.341952, 0.670056, -0.389863, 0.262115, 0.002819, -0.278331, 0.00203, 0.212489, -0.391732, -0.042339, -0.26657, -0.097448, -0.466538, 0.359931, -0.228592, -0.147672, -0.392773, 0.050411, -0.161596, -0.201496, -0.180356, -0.166305, -0.412956, 0.131566, 0.093015, 0.125954, 0.195281, 0.274933, 0.111004, -0.238849, -0.151276, -0.054988, 0.292844, -0.467302, 0.162861, 0.004984, -0.244533, -0.451844, -0.031707, 0.233386, -0.019718, -0.170519, 0.043167, 0.017603, -0.076012, 0.163107, -0.028208, 0.054281, 0.171531, -0.037664, 0.226915, -0.592721, -0.163569, -0.212121, 0.144821, 0.222361, -0.090511, 0.039675, 0.422816, 0.012992, -0.141858, 0.002315, 0.256945, 0.008585, -0.274123, 0.237395, 0.279844, 0.188998, -0.118068, -0.30778, 0.257072, -0.329208, 0.041936, 0.163919, -0.165206, 0.147699, 0.013831, -0.180322, 0.347643, -0.207907, -0.30144, -0.31771, 0.130064, -0.138475, 0.035362, 0.015482, 0.082275, 0.028961, 0.29463, 0.291172, 0.297128, -0.053551, 0.347176, 0.211066, -0.170689, -0.148937, -0.223214, 0.103607, -0.170601, -0.45008, 0.070477, -0.336467, -0.36901, -0.007864, -0.205328, -0.756806, 0.320824, 0.559289, -0.751881, -0.264179, -0.160712, 0.020341, 0.05831, -0.15467, -0.103948, 0.020918], "settings": {"boundary_dim": 128, "pair_dim": 128, "boundary_refinement_layers": 1, "boundary_ffn_multiplier": 2.0, "start_top_k": 24, "end_top_k": 24, "ends_per_start": 12, "starts_per_end": 12, "candidate_budget": 192, "training_candidate_budget": 192, "max_gold_per_query": 64, "end_block_size": 256, "bidirectional_proposals": true, "use_inside_evidence": true, "dropout": 0.1, "export_mode": "auto", "vectorized_pair_elements": 16777216, "boundary_negative_weight": 0.5, "boundary_marginal_loss": "asymmetric_focal", "loss_reduction": "sum", "boundary_focal_gamma_positive": 0.0, "boundary_focal_gamma_negative": 2.0, "boundary_focal_clip": 0.05, "hard_negatives_per_positive": 20, "minimum_hard_negatives": 16, "hard_negative_keep_all_when_absent": true, "enable_span_content": true, "content_dim": 64, "content_soft_max_pool": false, "enable_rotary_endpoints": true, "rotary_base": 10000.0, "boundary_attention_layers": 2, "boundary_attention_heads": 4, "boundary_attention_window": 128, "query_conditioned_inside_weight": true, "endpoint_difference_features": true, "reranker_endpoint_compat": true, "multihead_pair_compat_heads": 8, "boundary_top_k_alpha": 0.08, "boundary_top_k_max": 128, "boundary_top_k_bucket": 8, "candidate_pool": "shared", "pool_boundary_top_k": 32, "pool_size": 192, "min_pool_per_query": 8, "candidate_attention_layers": 0, "candidate_attention_heads": 4, "query_attention_layers": 0, "enable_abstention": true, "abstention_threshold": 0.5, "proposal_loss_weight": 0.3, "consistency_loss_weight": 0.1, "rerank_listwise_weight": 0.3, "soft_iou_aux_weight": 0.2, "soft_iou_anneal_steps": 20000, "abstention_loss_weight": 0.2, "consistency_warmup_steps": 2000, "enable_count_head": true, "count_loss_weight": 0.2, "adaptive_threshold": false, "overlap_policy": "flat", "pair_temperature": 1.0, "relation_temperature": 1.0, "record_temperature": 1.0, "classification_temperature": 1.0, "negative_query_ratio": 1.0, "max_negative_queries_per_batch": 64, "classification_loss_weight": 1.0, "enable_records": true, "record_dim": 128, "record_instance_queries": 32, "record_anchor_proposal_threshold": 0.2, "record_anchor_threshold": 0.5, "record_field_threshold": 0.5, "record_loss_weight": 1.0, "enable_relations": true, "relation_heads_per_type": 32, "relation_tails_per_type": 32, "relation_pair_cap": 64, "relation_loss_weight": 1.0, "relation_argument_proposal_threshold": 0.2, "directional_relation_states": true, "relation_biaffine_content": true}} |