Prepare the Linux GPU environment
Use a Linux host or rented GPU instance with Python and PyTorch installed, including the torchrun launcher. Obtain the DeepSeek V4 Pro inference code and the Hugging Face checkpoint files for deepseek-ai/DeepSeek-V4-Pro on local storage. Set HF_CKPT_PATH to the directory containing the downloaded Hugging Face weights, and SAVE_PATH to a local directory where you want the converted project-format checkpoint to be written.