asahi417 commited on
Commit
b81c4ca
1 Parent(s): 1895283

model update

Browse files
Files changed (4) hide show
  1. README.md +1 -2
  2. config.json +1 -1
  3. pytorch_model.bin +2 -2
  4. tokenizer_config.json +1 -1
README.md CHANGED
@@ -22,8 +22,7 @@ so that the query and the generated word pair form an analogy statement.
22
  from transformers import pipeline
23
 
24
  pipe = pipeline('text2text-generation', model="relbert/flan-t5-small-analogy")
25
- model_input = "generate analogy: mammal is to whale"
26
- output = pipe(model_input)
27
  print(output)
28
  >>> [{'generated_text': 'bird is to crow'}]
29
  ```
 
22
  from transformers import pipeline
23
 
24
  pipe = pipeline('text2text-generation', model="relbert/flan-t5-small-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-small-analogy-epoch3/model",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
 
1
  {
2
+ "_name_or_path": "google/flan-t5-small",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d485dacb4853b8f9279a4ca4a19a8f211324187d429ba0945ec9093c6914f978
3
- size 307907461
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:820b26d9946e472c45f93b5adc84b2e9a85b3a94d86a2bef45ed186bc3fe13cc
3
+ size 307910149
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-small-analogy-epoch3/model",
108
  "pad_token": "<pad>",
109
  "sp_model_kwargs": {},
110
  "special_tokens_map_file": "/home/younes_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-small",
108
  "pad_token": "<pad>",
109
  "sp_model_kwargs": {},
110
  "special_tokens_map_file": "/home/younes_huggingface_co/.cache/huggingface/hub/models--google--t5-v1_1-small/snapshots/fb7e6cba609f7bab11c614294bc04f82f613c7b1/special_tokens_map.json",