asahi417 commited on
Commit
bbbda77
1 Parent(s): a5db99e

model update

Browse files
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
14
+
15
+ This is [google/flan-t5-xl](https://huggingface.co/google/flan-t5-xl) fine-tuned on [relbert/semeval2012_relational_similarity](https://huggingface.co/datasets/relbert/semeval2012_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")
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": "analogy_models/flan-t5-xl-analogy-epoch6/model",
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:6f684383f5c859e54440a0859c64184a137eca1aa4be39a66b7c4de0a6d4aac9
3
- size 9449727999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c69d9ddf66e79a6f16937b7851f51683f6d2da00bcb41b54c40e0a08f3788775
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:c0402264f133c94aa24e84e6f73a6d3511ef1beb3109379da1402fe69abdbf52
3
- size 1949497635
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96ecff31abebcaa440a258180a23120ed24cb81c5285fac662f923ff9345650d
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": "analogy_models/flan-t5-xl-analogy-epoch6/model",
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:2dc0436c5f685f1ca895d040518f9bce3160785c7a1bb959c427de5528298af9
3
+ size 3643
validation_accuracy.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"accuracy": 0.8481012658227848, "datasaet": "relbert/semeval2012_relational_similarity", "split": "validation"}