I’m trying to implement the same workflow on the Yelp dataset that Jeremy implemented for IMDB. Everything came along fine until I needed to upload the encoder portion into my text classifier learner.
I am getting ": FileNotFoundError: [Errno 2] No such file or directory:’/home/jupyter/.fastai/data/yelp_review_polarity_csv/models/fine_tuned_enc.pth "
I saved the language model encoder in the same learn.save fashion as in the lecture. I also tried to export the function but to no avail. I am using GCP. Obviously my attempt to save the encoder did not lead to the trained weights being deposited in the appropriate location for me to just simply use learn.load_encoder.
I saved and attached a pdf (not sure if it’ll export correctly into forum)
Any and all guidance would be greatly appreciated. Thanks!!!
`yelp_polarity_extract.pdf (164.3 KB)