model update
Browse files- README.md +28 -0
- config.json +1 -1
- pytorch_model-00001-of-00002.bin +2 -2
- pytorch_model-00002-of-00002.bin +2 -2
- tokenizer_config.json +1 -1
- training_args.bin +3 -0
- validation_accuracy.json +1 -0
README.md
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
widget:
|
4 |
+
- text: "generate analogy: mammal is to whale"
|
5 |
+
example_title: "Analogy Example 1 (semantic relation)"
|
6 |
+
- text: "generate analogy: wedding is to marriage"
|
7 |
+
example_title: "Analogy Example 1 (semantic relation, metaphor)"
|
8 |
+
- text: "generate analogy: London is to U.K."
|
9 |
+
example_title: "Analogy Example 2 (entity)"
|
10 |
+
- text: "generate analogy: actual is to actually"
|
11 |
+
example_title: "Analogy Example 3 (morphological)"
|
12 |
+
---
|
13 |
+
# relbert/flan-t5-xl-analogy-conceptnet
|
14 |
+
|
15 |
+
This is [google/flan-t5-xl](https://huggingface.co/google/flan-t5-xl) fine-tuned on [relbert/conceptnet_relational_similarity](https://huggingface.co/datasets/relbert/conceptnet_relational_similarity)
|
16 |
+
for analogy generation, which is to generate a word pair (eg. `bird is to crow`) given a query (eg. `mammal is to whale`)
|
17 |
+
so that the query and the generated word pair form an analogy statement.
|
18 |
+
|
19 |
+
### Usage
|
20 |
+
|
21 |
+
```python
|
22 |
+
from transformers import pipeline
|
23 |
+
|
24 |
+
pipe = pipeline('text2text-generation', model="relbert/flan-t5-xl-analogy-conceptnet")
|
25 |
+
output = pipe("generate analogy: mammal is to whale")
|
26 |
+
print(output)
|
27 |
+
>>> [{'generated_text': 'bird is to crow'}]
|
28 |
+
```
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"T5ForConditionalGeneration"
|
5 |
],
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "google/flan-t5-xl",
|
3 |
"architectures": [
|
4 |
"T5ForConditionalGeneration"
|
5 |
],
|
pytorch_model-00001-of-00002.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ba41a6837d7569e27f92eb656ea54f3defbf5281e2e0356782c4859401474ff
|
3 |
+
size 9449734591
|
pytorch_model-00002-of-00002.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a412d2d52bda36ab19ca9a904dfb092659d5054d53702fb0530d1581d5e3d639
|
3 |
+
size 1949498851
|
tokenizer_config.json
CHANGED
@@ -104,7 +104,7 @@
|
|
104 |
"eos_token": "</s>",
|
105 |
"extra_ids": 100,
|
106 |
"model_max_length": 512,
|
107 |
-
"name_or_path": "
|
108 |
"pad_token": "<pad>",
|
109 |
"sp_model_kwargs": {},
|
110 |
"special_tokens_map_file": "/home/arthur_huggingface_co/.cache/huggingface/hub/models--google--t5-v1_1-small/snapshots/fb7e6cba609f7bab11c614294bc04f82f613c7b1/special_tokens_map.json",
|
|
|
104 |
"eos_token": "</s>",
|
105 |
"extra_ids": 100,
|
106 |
"model_max_length": 512,
|
107 |
+
"name_or_path": "google/flan-t5-xl",
|
108 |
"pad_token": "<pad>",
|
109 |
"sp_model_kwargs": {},
|
110 |
"special_tokens_map_file": "/home/arthur_huggingface_co/.cache/huggingface/hub/models--google--t5-v1_1-small/snapshots/fb7e6cba609f7bab11c614294bc04f82f613c7b1/special_tokens_map.json",
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9bb3543c0d41699f812f34dd41c5206893fd42099abc5a325d758baac8aa3c14
|
3 |
+
size 3643
|
validation_accuracy.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"accuracy": 0.3333333333333333, "dataset": "relbert/conceptnet_relational_similarity", "split": "validation"}
|