iPieter / RobBERT

A Dutch RoBERTa-based language model
https://pieter.ai/robbert/
MIT License
196 stars 29 forks source link

Testing on Mac (cpu-only) #33

Closed bojan2110 closed 2 years ago

bojan2110 commented 2 years ago

First, thanks for sharing this valuable project! We are very excited to test these models in our research at Erasmus Rotterdam.

My question is related to running the models on cpu-only mode, as I have a mac without nvidia (so no cuda support). I am trying to reproduce the sentiment analysis project (dbrd) using the finetune_dbrd.ipynb notebook you have shared. However, when training the model with the provided code I get a message (at the end of the training process) AssertionError: Torch not compiled with CUDA enabled.

So my question is if there is a way to run this with cpu-only pytorch? I see that in your train.py script you are recognising the device type (args.device) and I have tested that it prints out 'cpu'. Are there some parameters that I need to change in order to run the notebook on my mac laptop?

iPieter commented 2 years ago

First of all, thanks for your interest in RobBERT!

The answer to your question depends on why you want to use those notebooks:

Good luck!

bojan2110 commented 2 years ago

Thanks a lot, in that case I will skip the replication and focus on finetuning the RobBERT model for our needs via Huggingface.