Commit ·
70b91ba
1
Parent(s): a72b883
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -7,6 +7,23 @@ model_type: BERT-Base-Uncased
|
|
| 7 |
model_summary: This model Compares the similarity of two text objects.
|
| 8 |
shared_by: Matt Stammers
|
| 9 |
finetuned_from: Glue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
model-index:
|
| 11 |
- name: test_trainer
|
| 12 |
results:
|
|
@@ -47,8 +64,8 @@ This model Compares the similarity of two text objects.
|
|
| 47 |
|
| 48 |
<!-- Provide the basic links for the model. -->
|
| 49 |
|
| 50 |
-
- **Repository:**
|
| 51 |
-
- **Paper [optional]:**
|
| 52 |
- **Demo [optional]:** [More Information Needed]
|
| 53 |
|
| 54 |
## Uses
|
|
@@ -59,37 +76,47 @@ This model Compares the similarity of two text objects.
|
|
| 59 |
|
| 60 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
### Downstream Use [optional]
|
| 65 |
|
| 66 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
### Out-of-Scope Use
|
| 71 |
|
| 72 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 73 |
|
| 74 |
-
|
| 75 |
|
| 76 |
## Bias, Risks, and Limitations
|
| 77 |
|
| 78 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
### Recommendations
|
| 83 |
|
| 84 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
## How to Get Started with the Model
|
| 89 |
|
| 90 |
Use the code below to get started with the model.
|
| 91 |
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
## Training Details
|
| 95 |
|
|
@@ -97,7 +124,7 @@ Use the code below to get started with the model.
|
|
| 97 |
|
| 98 |
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 99 |
|
| 100 |
-
|
| 101 |
|
| 102 |
### Training Procedure
|
| 103 |
|
|
|
|
| 7 |
model_summary: This model Compares the similarity of two text objects.
|
| 8 |
shared_by: Matt Stammers
|
| 9 |
finetuned_from: Glue
|
| 10 |
+
repo: https://huggingface.co/MattStammers/test-trainer?text=I+like+you.+I+love+you
|
| 11 |
+
paper: nil
|
| 12 |
+
demo: false
|
| 13 |
+
direct_use: Test it out here
|
| 14 |
+
downstream_use: This is a standalone app
|
| 15 |
+
out_of_scope_use: The model will not work with any very complex sentences or to compare
|
| 16 |
+
more than 3 statements
|
| 17 |
+
bias_risks_limitations: Biases inherent in Glue also apply here
|
| 18 |
+
bias_recommendations: Do not be surprised if unusual results are obtained
|
| 19 |
+
get_started_code: "``` python \n # Use a pipeline as a high-level helper\n \
|
| 20 |
+
\ from transformers import pipeline\n\n pipe = pipeline(\"text-classification\"\
|
| 21 |
+
, model=\"MattStammers/test-trainer\")\n # Load model directly\n from\
|
| 22 |
+
\ transformers import AutoTokenizer, AutoModelForSequenceClassification\n\n \
|
| 23 |
+
\ tokenizer = AutoTokenizer.from_pretrained(\"MattStammers/test-trainer\")\n\
|
| 24 |
+
\ model = AutoModelForSequenceClassification.from_pretrained(\"MattStammers/test-trainer\"\
|
| 25 |
+
)\n "
|
| 26 |
+
training_data: 'see Glue dataset: https://huggingface.co/datasets/glue'
|
| 27 |
model-index:
|
| 28 |
- name: test_trainer
|
| 29 |
results:
|
|
|
|
| 64 |
|
| 65 |
<!-- Provide the basic links for the model. -->
|
| 66 |
|
| 67 |
+
- **Repository:** https://huggingface.co/MattStammers/test-trainer?text=I+like+you.+I+love+you
|
| 68 |
+
- **Paper [optional]:** nil
|
| 69 |
- **Demo [optional]:** [More Information Needed]
|
| 70 |
|
| 71 |
## Uses
|
|
|
|
| 76 |
|
| 77 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 78 |
|
| 79 |
+
Test it out here
|
| 80 |
|
| 81 |
### Downstream Use [optional]
|
| 82 |
|
| 83 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 84 |
|
| 85 |
+
This is a standalone app
|
| 86 |
|
| 87 |
### Out-of-Scope Use
|
| 88 |
|
| 89 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 90 |
|
| 91 |
+
The model will not work with any very complex sentences or to compare more than 3 statements
|
| 92 |
|
| 93 |
## Bias, Risks, and Limitations
|
| 94 |
|
| 95 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 96 |
|
| 97 |
+
Biases inherent in Glue also apply here
|
| 98 |
|
| 99 |
### Recommendations
|
| 100 |
|
| 101 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 102 |
|
| 103 |
+
Do not be surprised if unusual results are obtained
|
| 104 |
|
| 105 |
## How to Get Started with the Model
|
| 106 |
|
| 107 |
Use the code below to get started with the model.
|
| 108 |
|
| 109 |
+
``` python
|
| 110 |
+
# Use a pipeline as a high-level helper
|
| 111 |
+
from transformers import pipeline
|
| 112 |
+
|
| 113 |
+
pipe = pipeline("text-classification", model="MattStammers/test-trainer")
|
| 114 |
+
# Load model directly
|
| 115 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 116 |
+
|
| 117 |
+
tokenizer = AutoTokenizer.from_pretrained("MattStammers/test-trainer")
|
| 118 |
+
model = AutoModelForSequenceClassification.from_pretrained("MattStammers/test-trainer")
|
| 119 |
+
|
| 120 |
|
| 121 |
## Training Details
|
| 122 |
|
|
|
|
| 124 |
|
| 125 |
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 126 |
|
| 127 |
+
see Glue dataset: https://huggingface.co/datasets/glue
|
| 128 |
|
| 129 |
### Training Procedure
|
| 130 |
|