File size: 1,398 Bytes
f4fb870
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": [],
      "gpuType": "T4"
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "accelerator": "GPU"
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# P.AI AI Video Studio — RelayVSR X2 (W6A8 / W4A8 / NVFP4) & X4 (NVFP4) Colab Quantizer\n",
        "1. Set **Runtime → Change runtime type → T4 / L4 GPU**.\n",
        "2. Run the cell below and paste your HuggingFace Write token when prompted.\n",
        "3. It will download `lightx2v/RelayVSR_X2` and `kopper/RelayVSR`, quantize all 4 checkpoints with `comfy-kitchen`, and upload them directly to `AnosVoldigoad1/PAI-Video-Studio-Video-Diffusion/relayvsr/`."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "!pip install -q --upgrade comfy-kitchen safetensors huggingface_hub\n",
        "!curl -sSL -o quantize_relayvsr_colab.py https://huggingface.co/AnosVoldigoad1/PAI-Video-Studio-Video-Diffusion/resolve/main/scripts/quantize_relayvsr_colab.py\n",
        "import getpass, os\n",
        "os.environ['HF_TOKEN'] = getpass.getpass('Paste your HuggingFace Write token: ')\n",
        "!python3 quantize_relayvsr_colab.py\n"
      ]
    }
  ]
}