alokmatta commited on
Commit
2b043c5
1 Parent(s): 5fe556c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -8,6 +8,18 @@ datasets:
8
 
9
  ## Bert-base in Swahili
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  #### **Training Data**:
12
  This model was trained on [Swahili Safi](https://huggingface.co/datasets/flax-community/swahili-safi)
13
 
 
8
 
9
  ## Bert-base in Swahili
10
 
11
+ This model was trained using HuggingFace's Flax framework and is part of the [JAX/Flax Community Week](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104) organized by [HuggingFace](https://huggingface.co). All training was done on a TPUv3-8 VM sponsored by the Google Cloud team.
12
+
13
+ ## How to use
14
+
15
+ ```python
16
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
17
+
18
+ tokenizer = AutoTokenizer.from_pretrained("flax-community/roberta-swahili")
19
+
20
+ model = AutoModelForMaskedLM.from_pretrained("flax-community/roberta-swahili")
21
+ ```
22
+
23
  #### **Training Data**:
24
  This model was trained on [Swahili Safi](https://huggingface.co/datasets/flax-community/swahili-safi)
25