Run this model with HF Jobs
Run UmeAiRT/ComfyUI-Auto-Installer-Assets on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/UmeAiRT/ComfyUI-Auto-Installer-Assets. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/UmeAiRT/ComfyUI-Auto-Installer-Assets on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use UmeAiRT/ComfyUI-Auto-Installer-Assets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use UmeAiRT/ComfyUI-Auto-Installer-Assets with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("UmeAiRT/ComfyUI-Auto-Installer-Assets", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload Download-FLUX-Models.ps1
Browse files7 unmodified lines8910111213141 unmodified line16171819202122232425262728293036 unmodified lines6768697071727314 unmodified lines888990919293944 unmodified lines991001011021031041051061071081091101114 unmodified lines1161171181191201211221 unmodified line12412512612712812913013113213323 unmodified lines1571581591601611621637 unmodified lines.SYNOPSISA fully refactored and corrected PowerShell script to interactively download FLUX models for ComfyUI..DESCRIPTIONThis version corrects pathing issues, download logic, and optimizes directory creation.#>#===========================================================================1 unmodified line#===========================================================================function Write-Log {param([string]$Message, [string]$Color = "White")$logFile = Join-Path (Split-Path $MyInvocation.MyCommand.Path -Parent) "logs\install_log.txt"$formattedMessage = "[$([DateTime]::Now.ToString('yyyy-MM-dd HH:mm:ss'))] [ModelDownloader] $Message"Write-Host $Message -ForegroundColor $ColorAdd-Content -Path $logFile -Value $formattedMessage}function Invoke-AndLog {param([string]$File, [string]$Arguments)$logFile = Join-Path (Split-Path $MyInvocation.MyCommand.Path -Parent) "logs\install_log.txt"$commandToRun = "`"$File`" $Arguments"$cmdArguments = "/C `"$commandToRun >> `"`"$logFile`"`" 2>&1`""try {36 unmodified linesreturn $choice}#===========================================================================# SECTION 2: SCRIPT EXECUTION#===========================================================================14 unmodified lines# --- GPU Detection ---Write-Log "-------------------------------------------------------------------------------"Write-Log "Checking for NVIDIA GPU to provide model recommendations..." -Color Yellow# ... (logique de détection GPU inchangée) ...Write-Log "-------------------------------------------------------------------------------"# --- Ask all questions first ---4 unmodified lines$pulidChoice = Ask-Question -Prompt "Do you want to download FLUX PuLID and REDUX Models?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")$loraChoice = Ask-Question -Prompt "Do you want to download UmeAiRT LoRAs?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")# ===========================================================================# === SECTION DE TÉLÉCHARGEMENT CORRIGÉE ===# ===========================================================================Write-Log "`nStarting downloads based on your choices..." -Color Cyan# --- 1. Définir tous les chemins une seule fois ---$baseUrl = "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models"$fluxDir = Join-Path $modelsPath "diffusion_models\FLUX"$clipDir = Join-Path $modelsPath "clip"4 unmodified lines$styleDir = Join-Path $modelsPath "style_models"$loraDir = Join-Path $modelsPath "loras\FLUX"# --- 2. Créer tous les dossiers nécessaires en une seule fois ---$requiredDirs = @($fluxDir, $clipDir, $vaeDir, $unetFluxDir, $controlnetDir, $pulidDir, $styleDir, $loraDir)foreach ($dir in $requiredDirs) {if (-not (Test-Path $dir)) {1 unmodified line}}# --- 3. Exécuter les téléchargements avec la logique corrigée ---# Fichiers communs (si un téléchargement est demandé)if ($fluxChoice -ne 'D' -or $ggufChoice -ne 'H' -or $schnellChoice -eq 'A' -or $controlnetChoice -ne 'G' -or $pulidChoice -eq 'A' -or $loraChoice -eq 'A') {Download-File -Uri "$baseUrl/vae/ae.safetensors" -OutFile (Join-Path $vaeDir "ae.safetensors")Download-File -Uri "$baseUrl/clip/clip_l.safetensors" -OutFile (Join-Path $clipDir "clip_l.safetensors")}23 unmodified lines# ControlNet Modelsif ($controlnetChoice -ne 'G') {if ($controlnetChoice -in 'A','B','F') { # fp16 et fp8 partagent ces controlnetsDownload-File -Uri "$baseUrl/xlabs/controlnets/flux-canny-controlnet-v3.safetensors" -OutFile (Join-Path $controlnetDir "flux-canny-controlnet-v3.safetensors")Download-File -Uri "$baseUrl/xlabs/controlnets/flux-depth-controlnet-v3.safetensors" -OutFile (Join-Path $controlnetDir "flux-depth-controlnet-v3.safetensors")}7 unmodified lines891011121314151 unmodified line171819202122232425262728293031323336 unmodified lines70717273747514 unmodified lines909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281294 unmodified lines1341351361371381391401411421434 unmodified lines1481491501511521531541 unmodified line15615715815916016116216316416516623 unmodified lines1901911921931941951967 unmodified lines.SYNOPSISA fully refactored and corrected PowerShell script to interactively download FLUX models for ComfyUI..DESCRIPTIONThis version corrects logging paths when called from a parent script, fixes all download logic,and provides user guidance based on GPU VRAM.#>#===========================================================================1 unmodified line#===========================================================================function Write-Log {param([string]$Message, [string]$Color = "White")# Utilise $InstallPath (passé en argument) pour trouver le bon dossier de logs$logFile = Join-Path $InstallPath "logs\install_log.txt"$formattedMessage = "[$([DateTime]::Now.ToString('yyyy-MM-dd HH:mm:ss'))] [ModelDownloader] $Message"Write-Host $Message -ForegroundColor $ColorAdd-Content -Path $logFile -Value $formattedMessage -ErrorAction SilentlyContinue}function Invoke-AndLog {param([string]$File, [string]$Arguments)# Utilise $InstallPath pour trouver le bon dossier de logs$logFile = Join-Path $InstallPath "logs\install_log.txt"$commandToRun = "`"$File`" $Arguments"$cmdArguments = "/C `"$commandToRun >> `"`"$logFile`"`" 2>&1`""try {36 unmodified linesreturn $choice}#===========================================================================# SECTION 2: SCRIPT EXECUTION#===========================================================================14 unmodified lines# --- GPU Detection ---Write-Log "-------------------------------------------------------------------------------"Write-Log "Checking for NVIDIA GPU to provide model recommendations..." -Color Yellowif (Get-Command 'nvidia-smi' -ErrorAction SilentlyContinue) {try {$gpuInfoCsv = nvidia-smi --query-gpu=name,memory.total --format=csv,noheaderif ($gpuInfoCsv) {$gpuInfoParts = $gpuInfoCsv.Split(',')$gpuName = $gpuInfoParts[0].Trim()$gpuMemoryMiB = ($gpuInfoParts[1] -replace ' MiB').Trim()$gpuMemoryGiB = [math]::Round([int]$gpuMemoryMiB / 1024)Write-Log "GPU : $gpuName" -Color GreenWrite-Log "VRAM : $gpuMemoryGiB GB" -Color Greenif ($gpuMemoryGiB -ge 30) {Write-Log "Recommandation: fp16" -Color Cyan} elseif ($gpuMemoryGiB -ge 18) {Write-Log "Recommandation: fp8 or GGUF Q8" -Color Cyan} elseif ($gpuMemoryGiB -ge 14) {Write-Log "Recommandation: GGUF Q6" -Color Cyan}elseif ($gpuMemoryGiB -ge 12) {Write-Log "Recommandation: GGUF Q5" -Color Cyan}elseif ($gpuMemoryGiB -ge 10) {Write-Log "Recommandation: GGUF Q4" -Color Cyan}elseif ($gpuMemoryGiB -ge 8) {Write-Log "Recommandation: GGUF Q3" -Color Cyan}else {Write-Log "Recommandation: GGUF Q2" -Color Cyan}}} catch {Write-Log "Impossible de récupérer les informations GPU. Erreur: $($_.Exception.Message)" -Color Red}} else {Write-Log "Aucun GPU NVIDIA detecte (nvidia-smi introuvable). Choisissez selon votre matériel." -Color Gray}Write-Log "-------------------------------------------------------------------------------"# --- Ask all questions first ---4 unmodified lines$pulidChoice = Ask-Question -Prompt "Do you want to download FLUX PuLID and REDUX Models?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")$loraChoice = Ask-Question -Prompt "Do you want to download UmeAiRT LoRAs?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")# --- Download files based on answers ---Write-Log "`nStarting downloads based on your choices..." -Color Cyan# Définir tous les chemins une seule fois$baseUrl = "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models"$fluxDir = Join-Path $modelsPath "diffusion_models\FLUX"$clipDir = Join-Path $modelsPath "clip"4 unmodified lines$styleDir = Join-Path $modelsPath "style_models"$loraDir = Join-Path $modelsPath "loras\FLUX"# Créer tous les dossiers nécessaires en une seule fois$requiredDirs = @($fluxDir, $clipDir, $vaeDir, $unetFluxDir, $controlnetDir, $pulidDir, $styleDir, $loraDir)foreach ($dir in $requiredDirs) {if (-not (Test-Path $dir)) {1 unmodified line}}# Vérifier si un téléchargement est nécessaire pour télécharger les fichiers communs$doDownload = ($fluxChoice -ne 'D' -or $ggufChoice -ne 'H' -or $schnellChoice -eq 'A' -or $controlnetChoice -ne 'G' -or $pulidChoice -eq 'A' -or $loraChoice -eq 'A')if ($doDownload) {Write-Log "`nDownloading common support models (VAE, CLIP)..."Download-File -Uri "$baseUrl/vae/ae.safetensors" -OutFile (Join-Path $vaeDir "ae.safetensors")Download-File -Uri "$baseUrl/clip/clip_l.safetensors" -OutFile (Join-Path $clipDir "clip_l.safetensors")}23 unmodified lines# ControlNet Modelsif ($controlnetChoice -ne 'G') {if ($controlnetChoice -in 'A','B','F') {Download-File -Uri "$baseUrl/xlabs/controlnets/flux-canny-controlnet-v3.safetensors" -OutFile (Join-Path $controlnetDir "flux-canny-controlnet-v3.safetensors")Download-File -Uri "$baseUrl/xlabs/controlnets/flux-depth-controlnet-v3.safetensors" -OutFile (Join-Path $controlnetDir "flux-depth-controlnet-v3.safetensors")}
scripts/Model_downloader/Download-FLUX-Models.ps1+49-16