Rogendo commited on
Commit
a4da04b
1 Parent(s): e27f431

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +221 -0
README.md CHANGED
@@ -9,5 +9,226 @@ app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  license: mit
11
  ---
12
+ ---
13
+ license: mit
14
+ ---
15
+
16
+ # Model Card for Rogendo/en-sw translation model
17
+
18
+ <!-- Provide a quick summary of what the model is/does. -->
19
+
20
+ This is a pre-trained language translation model that aims to create a translation system for English and Swahili lanuages. It is a fine-tuned version of Helsinki-NLP/opus-mt-en-swc on an unknown dataset.
21
+
22
+ ## Model Details
23
+
24
+ - Transformer architecture used
25
+ - Trained on a 210000 corpus pairs
26
+ - Pre-trained Helsinki-NLP/opus-mt-en-swc
27
+ - 2 models to enforce biderectional translation
28
+ ### Model Description
29
+
30
+ <!-- Provide a longer summary of what this model is. -->
31
+
32
+
33
+
34
+ - **Developed by:** Peter Rogendo
35
+ - **Model type:** Transformer
36
+ - **Language(s) (NLP):** Transformer, Pandas, Numpy
37
+ - **License:** Distributed under the MIT License
38
+ - **Finetuned from model [Helsinki-NLP/opus-mt-en-swc]:** [This pre-trained model was re-trained on a swahili-english sentence pairs that were collected across Kenya. Swahili is the national language and is among the top three of the most spoken language in Africa. The sentences that were used to train this model were 210000 in total.]
39
+
40
+ ### Model Sources [optional]
41
+
42
+ <!-- Provide the basic links for the model. -->
43
+
44
+ - **Repository:** [https://github.com/Rogendo/Eng-Swa-Translator]
45
+ - **Paper [optional]:**
46
+ - **Demo [optional]:**
47
+
48
+ ## Uses
49
+
50
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
51
+ This translation model is intended to be used in many cases, from language translators, screen assistants, to even in official cases such as translating legal documents.
52
+
53
+ ### Direct Use
54
+
55
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
56
+
57
+ # Use a pipeline as a high-level helper
58
+
59
+ from transformers import pipeline
60
+
61
+ pipe = pipeline("text2text-generation", model="Rogendo/sw-en")
62
+
63
+ # Load model directly
64
+
65
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
66
+
67
+ tokenizer = AutoTokenizer.from_pretrained("Rogendo/sw-en")
68
+ model = AutoModelForSeq2SeqLM.from_pretrained("Rogendo/sw-en")
69
+
70
+ ### Downstream Use [optional]
71
+
72
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
73
+
74
+ [More Information Needed]
75
+
76
+ ### Out-of-Scope Use
77
+
78
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
79
+
80
+ [More Information Needed]
81
+
82
+ ## Bias, Risks, and Limitations
83
+
84
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Recommendations
89
+
90
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
91
+
92
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
93
+
94
+ ## How to Get Started with the Model
95
+
96
+ # Use a pipeline as a high-level helper
97
+
98
+ from transformers import pipeline
99
+
100
+ pipe = pipeline("text2text-generation", model="Rogendo/sw-en")
101
+
102
+ # Load model directly
103
+
104
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
105
+
106
+ tokenizer = AutoTokenizer.from_pretrained("Rogendo/sw-en")
107
+ model = AutoModelForSeq2SeqLM.from_pretrained("Rogendo/sw-en")
108
+
109
+
110
+
111
+ ## Training Details
112
+
113
+ ### Training Data
114
+
115
+ <!-- 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. -->
116
+ curl -X GET \
117
+ "https://datasets-server.huggingface.co/rows?dataset=Rogendo%2FEnglish-Swahili-Sentence-Pairs&config=default&split=train&offset=0&length=100"
118
+
119
+ View More
120
+ https://huggingface.co/datasets/Rogendo/English-Swahili-Sentence-Pairs
121
+
122
+
123
+
124
+ ### Training Procedure
125
+
126
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
127
+
128
+ #### Preprocessing [optional]
129
+
130
+ [More Information Needed]
131
+
132
+
133
+ #### Training Hyperparameters
134
+
135
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
136
+
137
+ #### Speeds, Sizes, Times [optional]
138
+
139
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
140
+
141
+ [More Information Needed]
142
+
143
+ ## Evaluation
144
+
145
+ <!-- This section describes the evaluation protocols and provides the results. -->
146
+
147
+ ### Testing Data, Factors & Metrics
148
+
149
+ #### Testing Data
150
+
151
+ <!-- This should link to a Dataset Card if possible. -->
152
+
153
+ [More Information Needed]
154
+
155
+ #### Factors
156
+
157
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
158
+
159
+ [More Information Needed]
160
+
161
+ #### Metrics
162
+
163
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
164
+
165
+ [More Information Needed]
166
+
167
+ ### Results
168
+
169
+ [More Information Needed]
170
+
171
+ #### Summary
172
+
173
+
174
+
175
+ ## Model Examination [optional]
176
+
177
+ <!-- Relevant interpretability work for the model goes here -->
178
+
179
+ [More Information Needed]
180
+
181
+ ## Environmental Impact
182
+
183
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
184
+
185
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
186
+
187
+ - **Hardware Type:** [More Information Needed]
188
+ - **Hours used:** [More Information Needed]
189
+ - **Cloud Provider:** [More Information Needed]
190
+ - **Compute Region:** [More Information Needed]
191
+ - **Carbon Emitted:** [More Information Needed]
192
+
193
+ ## Technical Specifications [optional]
194
+
195
+ ### Model Architecture and Objective
196
+
197
+ [More Information Needed]
198
+
199
+ ### Compute Infrastructure
200
+
201
+ [More Information Needed]
202
+
203
+ #### Hardware
204
+
205
+ [More Information Needed]
206
+
207
+ #### Software
208
+
209
+ [More Information Needed]
210
+
211
+ ## Citation [optional]
212
+
213
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
214
+
215
+ **BibTeX:**
216
+
217
+ [More Information Needed]
218
+
219
+ **APA:**
220
+
221
+ [More Information Needed]
222
+
223
+ ## Glossary [optional]
224
+
225
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
226
+
227
+
228
+ ## Model Card Authors [optional]
229
+
230
+ Peter Rogendo
231
+ ## Model Card Contact
232
 
233
+ progendo@kabarak.ac.ke
234
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference