asahi417 commited on
Commit
04209a0
1 Parent(s): 110abd5

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-permutation
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-permutation")
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-epoch1-p/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:64934efd1032c883a606b4df97e6a79a1f375c4572e9d4bcb72df28596af7eae
3
- size 9449727999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:512382a19babb4c6471e199e50f03c73cba5fdf2145e49838e405b7246e7f9c8
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:3890b8807b7305d80cb1ee8a692b10d6964861dea9f9ab12e8d024fe4ae60759
3
- size 1949497635
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:633b754b2eb658c1bb3d302e17c741fcc13548933e1d45997eb46dc6c96235a8
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-epoch1-p/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:38116e13e634b07dbd857b6a0769ff15c4b0f06be436afebb76fe2b7e4b81d43
3
+ size 3643
validation_accuracy.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"accuracy": 0.7088607594936709, "dataset": "relbert/semeval2012_relational_similarity", "split": "validation"}