Update README.md
Browse files
README.md
CHANGED
@@ -82,17 +82,33 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
82 |
|
83 |
## How to Get Started with the Model
|
84 |
|
85 |
-
Use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
-
[More Information Needed]
|
88 |
|
89 |
## Training Details
|
90 |
|
91 |
### Training Data
|
92 |
|
93 |
<!-- This should link to a Dataset 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. -->
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
-
[More Information Needed]
|
96 |
|
97 |
### Training Procedure
|
98 |
|
@@ -197,16 +213,10 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
197 |
|
198 |
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
199 |
|
200 |
-
[More Information Needed]
|
201 |
-
|
202 |
-
## More Information [optional]
|
203 |
-
|
204 |
-
[More Information Needed]
|
205 |
|
206 |
## Model Card Authors [optional]
|
207 |
|
208 |
-
|
209 |
-
|
210 |
## Model Card Contact
|
211 |
|
212 |
-
|
|
|
82 |
|
83 |
## How to Get Started with the Model
|
84 |
|
85 |
+
# Use a pipeline as a high-level helper
|
86 |
+
|
87 |
+
from transformers import pipeline
|
88 |
+
|
89 |
+
pipe = pipeline("text2text-generation", model="Rogendo/sw-en")
|
90 |
+
|
91 |
+
# Load model directly
|
92 |
+
|
93 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
94 |
+
|
95 |
+
tokenizer = AutoTokenizer.from_pretrained("Rogendo/sw-en")
|
96 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("Rogendo/sw-en")
|
97 |
+
|
98 |
|
|
|
99 |
|
100 |
## Training Details
|
101 |
|
102 |
### Training Data
|
103 |
|
104 |
<!-- This should link to a Dataset 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. -->
|
105 |
+
curl -X GET \
|
106 |
+
"https://datasets-server.huggingface.co/rows?dataset=Rogendo%2FEnglish-Swahili-Sentence-Pairs&config=default&split=train&offset=0&length=100"
|
107 |
+
|
108 |
+
View More
|
109 |
+
https://huggingface.co/datasets/Rogendo/English-Swahili-Sentence-Pairs
|
110 |
+
|
111 |
|
|
|
112 |
|
113 |
### Training Procedure
|
114 |
|
|
|
213 |
|
214 |
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
215 |
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
## Model Card Authors [optional]
|
218 |
|
219 |
+
Peter Rogendo
|
|
|
220 |
## Model Card Contact
|
221 |
|
222 |