Home > Software engineering >  How to load transformers pipeline from folder?
How to load transformers pipeline from folder?

Time:02-10

According to here pipeline provides an interface to save a pretrained pipeline locally with a save_pretrained method. When I use it, I see a folder created with a bunch of json and bin files presumably for the tokenizer and the model.

But the documentation does not specify a load method. How does one initialize a pipeline using a locally saved pipeline?

CodePudding user response:

  •  Tags:  
  • Related