# Can Mac M1 GPU be used to train HappyGeneration

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-mac-m1-gpu-be-used-to-train-happygeneration%2F23370%3E%5C
**Category:** 🤗Transformers\
**Created:** [September 20, 2022, 5:21am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-mac-m1-gpu-be-used-to-train-happygeneration%2F23370 "2022-09-20T05:21:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnughost](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/gnughost/32/6118_2.png) [@gnughost](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgnughost)%5C
**Post date:** [September 20, 2022, 5:21am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-mac-m1-gpu-be-used-to-train-happygeneration%2F23370%2F1 "2022-09-20T05:21:58Z")

</div>

Hello All,

I am using a Mac with M1 processor and I am using a GPT-Neo model for my project like this:

```python
from happytransformer import HappyGeneration

happy_gen = HappyGeneration(model_type="GPT-NEO", model_name="EleutherAI/gpt-neo-125M")
happy_gen.train("somefile.txt")

```

Is it possible to train `HappyGeneration` on M1 GPU so that it could be little bit faster? I am unable to find any option that specifies a device to be selected for training.
