if i am not mistaken, you could load up the default pegasus tokenizer with the google/pegasus-cnn_dailymail checkpoint (which should be light) and then load the quantized model as i described above.
if that still is not sufficient memory-wise (or simply doesn’t work), you might want to check out torchscript for the serialisation, e.g. here’s a nice guide An empirical approach to speedup your BERT inference with ONNX/Torchscript | by Maxence Alluin | Towards Data Science 7