rafmacalaba commited on
Commit
97dc807
·
verified ·
1 Parent(s): 214b38b

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +36 -0
  2. adapter_config.json +60 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: gliner
3
+ pipeline_tag: token-classification
4
+ license: mit
5
+ tags:
6
+ - gliner
7
+ - relation-extraction
8
+ - data-use
9
+ - v0
10
+ - alpha
11
+ ---
12
+
13
+ # datause-relation-v0
14
+
15
+ Fine-tuned GLiNER2 adapter for relation extraction in Data Use impact assessment pipeline.
16
+
17
+ **Architecture:** LoRA adapter for `fastino/gliner2-large-v1`
18
+ **Relations:** has_organization, used_by, has_acronym, has_timeframe, has_geography
19
+ **Training data:** LLM-generated synthetic + real-world PDF text
20
+ **Status:** v0 alpha — initial fine-tuning.
21
+
22
+ ## Usage
23
+
24
+ ```python
25
+ from gliner import GLiNER2
26
+
27
+ model = GLiNER2.from_pretrained("fastino/gliner2-large-v1")
28
+ model.load_adapter("ai4data/datause-relation-v0")
29
+ ```
30
+
31
+ ## Pipeline Integration
32
+
33
+ Call 1b in 3-model swarm:
34
+ - Call 1: Entity extraction (`ai4data/datause-extraction`)
35
+ - **Call 1b: Relation extraction (this model)**
36
+ - Call 2: Classification (`ai4data/datause-impact-v0`)
adapter_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "GLiNER2",
7
+ "parent_library": "gliner2.inference.engine"
8
+ },
9
+ "base_model_name_or_path": "fastino/gliner2-large-v1",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 16.0,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.0,
25
+ "lora_ga_config": null,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": null,
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.19.1",
31
+ "qalora_group_size": 16,
32
+ "r": 8,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "out_project.3",
37
+ "project_start.3",
38
+ "projector.2",
39
+ "project_end.0",
40
+ "value_proj",
41
+ "project_end.3",
42
+ "projector.0",
43
+ "out_project.0",
44
+ "count_pred.0",
45
+ "classifier.0",
46
+ "classifier.2",
47
+ "dense",
48
+ "query_proj",
49
+ "key_proj",
50
+ "count_pred.2",
51
+ "project_start.0"
52
+ ],
53
+ "target_parameters": null,
54
+ "task_type": null,
55
+ "trainable_token_indices": null,
56
+ "use_bdlora": null,
57
+ "use_dora": false,
58
+ "use_qalora": false,
59
+ "use_rslora": false
60
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c196634ec7c0f3c65b80b18fa4ec96a8adf55e2c11699658658930374122353a
3
+ size 15905512