AnosVoldigoad1 commited on
Commit
f4fb870
·
verified ·
1 Parent(s): a8baacd

Add 1-click Google Colab notebook for RelayVSR X2/X4 quantization

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