<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Shahtab Mohtasin</title>
    <description>The latest articles on Forem by Shahtab Mohtasin (@shahtab_mohtasin_a5e8388d).</description>
    <link>https://forem.com/shahtab_mohtasin_a5e8388d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2899112%2F3023b633-c2c7-4976-9cc7-e4ae8a10d8e9.jpg</url>
      <title>Forem: Shahtab Mohtasin</title>
      <link>https://forem.com/shahtab_mohtasin_a5e8388d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shahtab_mohtasin_a5e8388d"/>
    <language>en</language>
    <item>
      <title>Complete Guide: ComfyUI WAN 2.2 on RunPod</title>
      <dc:creator>Shahtab Mohtasin</dc:creator>
      <pubDate>Sun, 05 Oct 2025 20:33:53 +0000</pubDate>
      <link>https://forem.com/shahtab_mohtasin_a5e8388d/complete-guide-comfyui-wan-22-on-runpod-5ge7</link>
      <guid>https://forem.com/shahtab_mohtasin_a5e8388d/complete-guide-comfyui-wan-22-on-runpod-5ge7</guid>
      <description>&lt;p&gt;&lt;a href="https://youtu.be/PmDutyfWSug?si=rasAElpVPE9s0YgR" rel="noopener noreferrer"&gt;Youtube Video&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  ComfyUI WAN 2.5 Serverless Setup Guide (RunPod)
&lt;/h1&gt;

&lt;p&gt;This tutorial covers the setup of &lt;strong&gt;ComfyUI WAN 2.5&lt;/strong&gt; on RunPod, including network storage, model downloads, JupyterLab configuration, and workflow testing.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Create Required Accounts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RunPod&lt;/strong&gt; – for GPU pods and serverless functions.
Sign up with referral link (Deposit $10 to potentially receive a $5–$500 credit bonus)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Fund Your RunPod Account
&lt;/h2&gt;

&lt;p&gt;Ensure you have at least &lt;strong&gt;$10&lt;/strong&gt; in your RunPod account to spin up GPU pods.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Create Network Storage
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Network Volumes&lt;/strong&gt; in RunPod.&lt;/li&gt;
&lt;li&gt;Create a volume of at least &lt;strong&gt;40 GB&lt;/strong&gt; for persistent storage.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  4. Deploy a Pod with GPU
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Deploy Pod&lt;/strong&gt; from the dashboard.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;GPU&lt;/strong&gt; (e.g., RTX A5000).&lt;/li&gt;
&lt;li&gt;Choose template:
&lt;code&gt;ComfyUI Manager – Permanent Disk – torch 2.4&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Attach the &lt;strong&gt;network volume&lt;/strong&gt; you created.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  5. Launch the Environment
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Wait for pod installation.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Jupyter Notebook&lt;/strong&gt; via Connect.&lt;/li&gt;
&lt;li&gt;Run the terminal command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./run_gpu.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  6. Select Template
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Choose the &lt;strong&gt;WAN 2.2 Text to Video&lt;/strong&gt; template for ComfyUI setup.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. Install Necessary Models
&lt;/h2&gt;

&lt;p&gt;Download and install all required WAN 2.2 models for video generation.&lt;/p&gt;

&lt;h3&gt;
  
  
  a. High Noise Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/diffusion_models/wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  b. Low Noise Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/diffusion_models/wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  c. High Noise LoRA
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  d. Low Noise LoRA
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  e. VAE Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/vae/wan_2.1_vae.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  f. Text Encoder
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /workspace/ComfyUI/models/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="s2"&gt;"https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  8. Test the Workflow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Ensure all &lt;strong&gt;model names match&lt;/strong&gt; the downloaded files.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;ComfyUI&lt;/strong&gt; and verify the workflow.&lt;/li&gt;
&lt;li&gt;Run the workflow to confirm there are &lt;strong&gt;no errors&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  9. Move the Models Folder
&lt;/h2&gt;

&lt;p&gt;Move the models folder to a higher-level directory for easier access:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mv&lt;/span&gt; /workspace/ComfyUI/models /workspace/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  10. Clean Up Workspace
&lt;/h2&gt;

&lt;p&gt;Remove the ComfyUI workspace folder to save space, keeping only the models:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-rf&lt;/span&gt; /workspace/ComfyUI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; This ensures only the necessary models remain for serverless usage.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  11. Terminate the Pod
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Terminate the GPU pod to &lt;strong&gt;save costs&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Your files will remain intact in &lt;strong&gt;Network Storage&lt;/strong&gt;, ready for serverless deployment.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  12. Upload to Private GitHub Repository
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create a &lt;strong&gt;private GitHub repo&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Upload the following:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;WAN serverless folder&lt;/li&gt;
&lt;li&gt;Dockerfile&lt;/li&gt;
&lt;li&gt;Snapshot

&lt;ol&gt;
&lt;li&gt;Avoid tracking large model files unless necessary.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  13. Deploy as Serverless Endpoint
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Connect the GitHub repo to &lt;strong&gt;RunPod&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add your &lt;strong&gt;HuggingFace token&lt;/strong&gt; for model access.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  14. Configure Endpoint Settings
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Attach the &lt;strong&gt;network storage&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add environment variables:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;COMFY_POLLING_MAX_RETRIES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2000
&lt;span class="nv"&gt;COMFY_POLLING_INTERVAL_MS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;500
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  15. Save and Wait
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Save the configuration.&lt;/li&gt;
&lt;li&gt;Wait for the deployment to complete before testing.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  16. Testing the Endpoint
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Method 1: Postman
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Set Postman variables to match your &lt;strong&gt;serverless API endpoint&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Update &lt;strong&gt;input keys&lt;/strong&gt; and &lt;strong&gt;output paths&lt;/strong&gt; according to the deployed workflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Method 2: Custom Web App
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Update &lt;code&gt;.env&lt;/code&gt; with the correct &lt;strong&gt;API URL&lt;/strong&gt; and &lt;strong&gt;tokens&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Ensure environment variables &lt;strong&gt;match the endpoint settings&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Notes &amp;amp; Best Practices
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;If ComfyUI is modified, &lt;strong&gt;update Postman requests&lt;/strong&gt; and &lt;strong&gt;web app code&lt;/strong&gt; accordingly.&lt;/li&gt;
&lt;li&gt;Verify that &lt;strong&gt;model paths&lt;/strong&gt;, &lt;strong&gt;API keys&lt;/strong&gt;, and &lt;strong&gt;workflow names&lt;/strong&gt; match your deployed setup.&lt;/li&gt;
&lt;li&gt;Regularly check &lt;strong&gt;endpoint status&lt;/strong&gt; and update models if needed.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;network storage&lt;/strong&gt; for persistent data between serverless invocations.&lt;/li&gt;
&lt;li&gt;For web apps, update &lt;code&gt;.env&lt;/code&gt; variables such as:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;COMFY_API_URL
HF_TOKEN
STORAGE_PATH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;✅ &lt;strong&gt;End of ComfyUI WAN 2.5 Serverless Setup Guide&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>runpod</category>
      <category>tutorial</category>
      <category>react</category>
    </item>
    <item>
      <title>ComfyUI with RunPod: Pod Deployment + Serverless API Setup (free app template and resources)</title>
      <dc:creator>Shahtab Mohtasin</dc:creator>
      <pubDate>Thu, 14 Aug 2025 20:07:08 +0000</pubDate>
      <link>https://forem.com/shahtab_mohtasin_a5e8388d/comfyui-with-runpod-pod-deployment-serverless-api-setup-free-app-template-and-resources-373e</link>
      <guid>https://forem.com/shahtab_mohtasin_a5e8388d/comfyui-with-runpod-pod-deployment-serverless-api-setup-free-app-template-and-resources-373e</guid>
      <description>&lt;p&gt;Learn How to Deploy ComfyUI on RunPod&lt;/p&gt;

&lt;p&gt;Use Markdown to write and format posts.&lt;br&gt;
This guide shows how to deploy &lt;strong&gt;ComfyUI&lt;/strong&gt; on &lt;strong&gt;RunPod&lt;/strong&gt; using both pod and serverless setups.&lt;br&gt;
It covers &lt;strong&gt;API access, model setup, testing&lt;/strong&gt;, and includes a &lt;strong&gt;free app template&lt;/strong&gt; to help you build your project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Video Guide:&lt;/strong&gt; &lt;a href="https://youtu.be/fPcK5FjB0CU?si=XWNmPopLUsp9YM3Q" rel="noopener noreferrer"&gt;https://youtu.be/fPcK5FjB0CU?si=XWNmPopLUsp9YM3Q&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  PART 1: RunPod Pods Setup with ComfyUI – Step-by-Step Guide
&lt;/h2&gt;

&lt;p&gt;This guide provides step-by-step instructions for setting up and using &lt;strong&gt;RunPod Pods&lt;/strong&gt; with &lt;strong&gt;ComfyUI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating required accounts&lt;/li&gt;
&lt;li&gt;Deploying a GPU pod&lt;/li&gt;
&lt;li&gt;Installing models&lt;/li&gt;
&lt;li&gt;Testing the system&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  1. Create Required Accounts
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;RunPod&lt;/strong&gt; – for GPU pods and serverless functions:&lt;br&gt;
&lt;a href="https://runpod.io?ref=ckrxhc11" rel="noopener noreferrer"&gt;https://runpod.io?ref=ckrxhc11&lt;/a&gt;&lt;br&gt;
Signing up and depositing \$10 may grant a &lt;strong&gt;one-time bonus credit \$5–\$500&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;HuggingFace&lt;/strong&gt; – for accessing and downloading AI models:&lt;br&gt;
&lt;a href="https://huggingface.co/" rel="noopener noreferrer"&gt;https://huggingface.co/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Civitai&lt;/strong&gt; – for downloading community models:&lt;br&gt;
&lt;a href="https://civitai.com/" rel="noopener noreferrer"&gt;https://civitai.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  2. Fund Your RunPod Account
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Ensure &lt;strong&gt;\$10+&lt;/strong&gt; in your RunPod account to spin up GPU pods.&lt;/li&gt;
&lt;li&gt;Referral link (bonus eligible): &lt;a href="https://runpod.io?ref=ckrxhc11" rel="noopener noreferrer"&gt;https://runpod.io?ref=ckrxhc11&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  3. Create Network Storage
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Network Volumes&lt;/strong&gt; in RunPod.&lt;/li&gt;
&lt;li&gt;Create a new volume with &lt;strong&gt;at least 40 GB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;This provides &lt;strong&gt;persistent storage&lt;/strong&gt; between pod sessions.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  4. Deploy a Pod with GPU
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Click &lt;strong&gt;Deploy Pod&lt;/strong&gt; on the RunPod dashboard.&lt;/li&gt;
&lt;li&gt;Select a GPU (e.g., &lt;strong&gt;RTX A5000&lt;/strong&gt; for better performance).&lt;/li&gt;
&lt;li&gt;Under Templates, choose: &lt;strong&gt;ComfyUI Manager – Permanent Disk – torch 2.4&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Attach your network volume during setup.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  5. Launch the Environment
&lt;/h3&gt;

&lt;p&gt;………………&lt;br&gt;
 ……………………&lt;/p&gt;




&lt;p&gt;For full free written guide: &lt;a href="https://aikitty.cc/comfyui-course" rel="noopener noreferrer"&gt;https://aikitty.cc/comfyui-course&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>comfyui</category>
      <category>runpod</category>
      <category>serverless</category>
    </item>
  </channel>
</rss>
