model update
Browse files- README.md +26 -0
- config.json +1 -1
- merges.txt +1 -1
- pytorch_model.bin +2 -2
- tokenizer_config.json +1 -1
- training_args.bin +3 -0
- validation_accuracy.json +1 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
widget:
|
| 4 |
+
- text: "mammal is to whale what"
|
| 5 |
+
example_title: "Analogy Example 1 (semantic relation)"
|
| 6 |
+
- text: "wedding is to marriage what "
|
| 7 |
+
example_title: "Analogy Example 2 (semantic relation, metaphor)"
|
| 8 |
+
- text: "London is to U.K. what"
|
| 9 |
+
example_title: "Analogy Example 3 (entity)"
|
| 10 |
+
- text: "actual is to actually what"
|
| 11 |
+
example_title: "Analogy Example 4 (morphological)"
|
| 12 |
+
---
|
| 13 |
+
# relbert/opt-350m-analogy-permutation
|
| 14 |
+
|
| 15 |
+
This is [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) 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('text-generation', model="relbert/opt-350m-analogy-permutation")
|
| 25 |
+
output = pipe("mammal is to whale what")
|
| 26 |
+
```
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
| 5 |
"activation_function": "relu",
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "facebook/opt-350m",
|
| 3 |
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
| 5 |
"activation_function": "relu",
|
merges.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
|
|
|
| 1 |
+
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
pytorch_model.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:82849d31fc72ef924921b590e63633dede3f27d7bbf502c921e4b444d8274a41
|
| 3 |
+
size 1324919965
|
tokenizer_config.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
},
|
| 20 |
"errors": "replace",
|
| 21 |
"model_max_length": 1000000000000000019884624838656,
|
| 22 |
-
"name_or_path": "
|
| 23 |
"pad_token": {
|
| 24 |
"__type": "AddedToken",
|
| 25 |
"content": "<pad>",
|
|
|
|
| 19 |
},
|
| 20 |
"errors": "replace",
|
| 21 |
"model_max_length": 1000000000000000019884624838656,
|
| 22 |
+
"name_or_path": "facebook/opt-350m",
|
| 23 |
"pad_token": {
|
| 24 |
"__type": "AddedToken",
|
| 25 |
"content": "<pad>",
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c732a6f3812c3809616ce82c0f0e411c87f8bd89d545e3c44117332fcf200559
|
| 3 |
+
size 3515
|
validation_accuracy.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"accuracy": 1, "dataset": "relbert/semeval2012_relational_similarity", "split": "validation"}
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|