def METHOD_NAME(self):
    # MXNet doesn't implement save/load without a filename
    with make_tempfile("w+b") as temp:
        self._model.save_parameters(temp.name)
        temp.seek(0)
        weights_bytes = temp.read()
    msg = {"config": self.cfg, "state": weights_bytes}
    return srsly.msgpack_dumps(msg)