Closed nitinmukesh closed 2 weeks ago
Because I am loading roberta-base locally. For the first method, you can try changing self.tokenize = RobertaTokenizer.from_pretrained("/mnt/sda/upload_github/Awesome-Music-Generation/data/checkpoints/Roberta")
to self.tokenize = RobertaTokenizer.from_pretrained("roberta-base")
. For the second method, first download the model locally from https://huggingface.co/FacebookAI/roberta-base, and then replace .from_pretrained
with your local download path.
What is the repo id? Currently it is hardcoded
self.tokenize = RobertaTokenizer.from_pretrained("/mnt/sda/upload_github/Awesome-Music-Generation/data/checkpoints/Roberta")