asahi417 commited on
Commit
4b67895
1 Parent(s): 1ea7401

model update

Browse files
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-domain
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-domain")
25
+ output = pipe("mammal is to whale what")
26
+ ```
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "analogy_models/opt-350m-analogy-epoch15-pd/model",
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 - Trained by `huggingface/tokenizers`
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:0c887004c14ce5ce65628563fc222a1b70cfa578d8c7fa4a2c946ac77cd843f4
3
- size 1324911837
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7688b0c7761c6fc87ea10ad8f1db8cbc701139c990f7b66a5b88530f5276489f
3
+ size 1324919965
tokenizer_config.json CHANGED
@@ -19,7 +19,7 @@
19
  },
20
  "errors": "replace",
21
  "model_max_length": 1000000000000000019884624838656,
22
- "name_or_path": "analogy_models/opt-350m-analogy-epoch15-pd/model",
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:60a44ee548e838dfd3cb9bdff16e6617c1cecf8fca21ac5c1059bd54766f7067
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