How to load a pipeline saved with pipeline.save_pretrained?
Hi,I have a system saving an HF pipeline with the following code:from transformers import pipeline
text_generator = pipeline('...')
text_generator.save_pretrained('modeldir')How can I re-instantiate that model from a different systemWhat code snippet can do that? I’m looking for something likep = pipeline.from_pretrained('...')but couldn’t find such a thing in the doc
2021-04-08T18:04:39Z
I thinkpipeline(task, 'modeldir')should work to reload it.
2021-04-08T18:07:37Z
sgugger:pipeline(task, ‘modeldir’)looks good thanks!
2022-01-08T04:34:22Z
OlivierCR:text_generator.save_pretrained('modeldir')Hi,Thank you for your commentthis give me this errorHTTPError: 404 Client Error: Not Found for url:https://huggingface.co/model2/resolve/main/config.json