
## GPT2 in Swahili

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.

## How to use

```python
from transformers import AutoTokenizer, AutoModelWithLMHead
  
tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt2-swahili")

model = AutoModelWithLMHead.from_pretrained("flax-community/gpt2-swahili")

print(round((model.num_parameters())/(1000*1000)),"Million Parameters")

124 Million Parameters
```

#### **Training Data**:
This model was trained on [Swahili Safi](https://huggingface.co/datasets/flax-community/swahili-safi)


#### **More Details**:
For more details and Demo please check [HF Swahili Space](https://huggingface.co/spaces/flax-community/Swahili)


{"language": "sw", "datasets": ["flax-community/swahili-safi"], "widget": [{"text": "Ninitaka kukula"}]}
transformers pytorch jax tensorboard gpt2 text-generation sw dataset:flax-community/swahili-safi autotrain_compatible endpoints_compatible has_space text-generation-inference region:us
TAGS
#transformers #pytorch #jax #tensorboard #gpt2 #text-generation #sw #dataset-flax-community/swahili-safi #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 


## GPT2 in Swahili

This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team.

## How to use



#### Training Data:
This model was trained on Swahili Safi


#### More Details:
For more details and Demo please check HF Swahili Space


## GPT2 in Swahili

This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team. ## How to use #### Training Data:
This model was trained on Swahili Safi #### More Details:
For more details and Demo please check HF Swahili Space
TAGS
#transformers #pytorch #jax #tensorboard #gpt2 #text-generation #sw #dataset-flax-community/swahili-safi #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 
 ## GPT2 in Swahili

This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team. ## How to use #### Training Data:
This model was trained on Swahili Safi #### More Details:
For more details and Demo please check HF Swahili Space
passage: TAGS
#transformers #pytorch #jax #tensorboard #gpt2 #text-generation #sw #dataset-flax-community/swahili-safi #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 
## GPT2 in Swahili

This model was trained using HuggingFace's Flax framework and is part of the JAX/Flax Community Week organized by HuggingFace. All training was done on a TPUv3-8 VM sponsored by the Google Cloud team.## How to use#### Training Data:
This model was trained on Swahili Safi#### More Details:
For more details and Demo please check HF Swahili Space