How to convert MXFP4 -> FP8 in pure pytorch?

We have four NVIDIA A6000 Ada cards which are all SM89 and don’t support MXFP4. We would like to run GPT-OSS 20B (or any model actually) in FP8 using tensor parallel for inference. How should we convert the FP4 tensors to FP8 using just pytorch?

Thanks!