如何在功能较弱的PC上运行强大的Flux AI图像生成器

币界网Publicado a 2024-08-12Actualizado a 2024-08-13

币界网报道:

当Flux几天前突然出现时,它很快就赢得了开源图像生成器皇冠上的明珠的声誉。它与Midjourney的美学能力相匹配,同时在快速理解和文本生成方面绝对压倒了它。捕获?你需要一个拥有超过24GB VRAM(甚至更多)的强大GPU才能让它运行。这比大多数游戏设备都要强大,更不用说你的普通工作笔记本电脑了。

但是,人工智能社区从不放弃挑战,他们卷起集体袖子开始工作。通过量化的魔力——一个压缩模型数据的花哨术语——他们设法将Flux缩小到更易于管理的大小,而不会牺牲太多的艺术魔力。

让我们把它分解一下:最初的Flux型号使用了全32位精度(FP32),这就像驾驶一级方程式赛车去杂货店——对大多数人来说都是多余的。第一轮优化为我们带来了FP16和FP8版本,每个版本都以一点点的准确性换取了效率的大幅提高。FP8版本已经改变了游戏规则,让拥有6GB GPU(想想RTX 2060)的人加入了这场盛宴。

为此,您需要禁用系统内存回调以实现稳定扩散,这样您的GPU就可以将其部分工作从内部VRAM卸载到系统RAM。这避免了臭名昭著的OOM(内存不足)错误,尽管其运行速度要慢得多。要禁用此选项,请按照Nvidia的教程进行操作。

但要戴上帽子,因为它会变得更好。

人工智能世界的真实MVP进一步突破了界限,发布了4位量化模型。这些坏男孩使用一种叫做“正常点”(NP)量化的东西,它提供了一个质量和速度的最佳点,让你的土豆电脑感觉像是得到了涡轮增压。NP量化不会像FP量化那样降低质量,因此一般来说,运行此模型可以在高速下获得很好的结果,只需要很少的资源。

这几乎好得令人难以置信,但这是真的。

在fp8和np4中使用Flux Dec获得的结果。同样的提示,不同的种子。

如何在低端GPU上运行Flux

那么,你实际上是如何运行这个简化版本的Flux的呢?首先,你需要一个像SwarmUI、ComfyUI或Forge这样的界面。我们喜欢ComfyUI的多功能性,但在我们的测试中,Forge的速度比其他界面提高了约10-20%,所以这就是我们在这里使用的。

前往Forge GitHub仓库(https://github.com/lllyasviel/stable-diffusion-webui-forge)并下载一键安装包。它是开源的,经过社区审查,所以这里没有粗略的业务。

对于NP4 Flux型号本身,Civit AI是您的一站式服务。你有两种口味可供选择:Schnell(速度)和Dex(质量)。两者都可以从这个页面下载。

一旦你下载了所有内容,就到了安装时间:

    解压缩Forge文件并打开Forge文件夹。运行update.bat以获取所有依赖项。启动run.bat以完成设置。

现在,将这些闪亮的新Flux模型放入Forge安装中的webuimodelsStable扩散文件夹中。刷新Forge web界面(如果你感觉老派,可以重新启动),然后砰的一声——你在做生意。

专业提示:要真正从复活的装备中挤出每一滴性能,请降低分辨率。与其选择全SDXL(1024x1024)分辨率,不如尝试更适中的SD1.5尺寸(768x768、512x768等)。你总是可以稍后升级,并使用Adetailer来处理那些脆脆的细节。

让我们谈谈数字:在配备6GB VRAM的RTX 2060上,Flux Schnell在NP4模式下可以在大约30秒内生成512x768的图像,而FP8版本需要107秒。想做大吗?用高分辨率修复将那个坏男孩升级到1536x1024大约需要五分钟。

想在不破坏GPU的情况下做大吗?更好的选择是从SD1.5分辨率的Flux Schnell开始,然后通过img2img发送该创建。使用低降噪强度的标准稳定扩散模型(SD1.5或SDXL)进行升级。整个过程大约需要50秒,与MidJourney在缓慢的一天中的输出相当。您将在不熔化图形卡的情况下获得令人印象深刻的大规模结果。

真正的踢球者?据报道,一些疯狂的家伙让Flux Schnell NP4在GTX 1060上运行,VRAM为3GB,Flux Dev每次迭代需要7.90秒。我们谈论的是一个几乎依赖生命支持的GPU,它正在这里产生尖端的人工智能艺术。对于几乎符合养老金条件的硬件来说,这并不算太破旧。

Criptos en tendencia

Lecturas Relacionadas

Interview with MicroStrategy CEO: Beyond the 32 BTC Selling Stir, 6 Trillion AI Agents are the Ultimate Endgame for Bitcoin

Interview with Strategy CEO: Beyond the 32 BTC Sale, 6 Trillion AI Agents are Bitcoin's Ultimate Endgame Strategy CEO Phong Le discusses the recent sale of 32 BTC, clarifying it was a minor, strategic move to demonstrate operational liquidity and internal process robustness to creditors and rating agencies, not a reaction to market fears. He emphasizes Strategy's disciplined, data-driven decision-making framework involving its board and complex financial modeling, distancing the company from centralized "black box" operations seen elsewhere in crypto. Le outlines the company's resilience and long-term focus, citing the "doing nothing" strategy during the 2022 bear market as a testament to its conviction in Bitcoin's underlying value proposition for global sovereignty and freedom. He reveals that generative AI was instrumental in developing their Stretch (STRC) preferred stock product, cutting development time from years to months. The most visionary part of the discussion centers on Agentic AI. Le envisions a future with 6 trillion autonomous AI agents conducting commerce, particularly in off-world environments like Mars, which would naturally adopt decentralized crypto rails and seek yield-bearing assets like Bitcoin as a core store of value. Finally, Le addresses the STRC product, expressing confidence it will return to its $100 par value through reserve replenishment and the initiation of dividend payments, and dismisses concerns about competition with stablecoins. He concludes by affirming Strategy's philosophy of expanding Bitcoin access through all available means, from self-custody to ETFs, to onboard the next wave of users.

marsbitHace 28 min(s)

Interview with MicroStrategy CEO: Beyond the 32 BTC Selling Stir, 6 Trillion AI Agents are the Ultimate Endgame for Bitcoin

marsbitHace 28 min(s)

Trading

Spot
Futuros

Artículos destacados

Cómo comprar FLUX

¡Bienvenido a HTX.com! Hemos hecho que comprar Flux (FLUX) sea simple y conveniente. Sigue nuestra guía paso a paso para iniciar tu viaje de criptos.Paso 1: crea tu cuenta HTXUtiliza tu correo electrónico o número de teléfono para registrarte y obtener una cuenta gratuita en HTX. Experimenta un proceso de registro sin complicaciones y desbloquea todas las funciones.Obtener mi cuentaPaso 2: ve a Comprar cripto y elige tu método de pagoTarjeta de crédito/débito: usa tu Visa o Mastercard para comprar Flux (FLUX) al instante.Saldo: utiliza fondos del saldo de tu cuenta HTX para tradear sin problemas.Terceros: hemos agregado métodos de pago populares como Google Pay y Apple Pay para mejorar la comodidad.P2P: tradear directamente con otros usuarios en HTX.Over-the-Counter (OTC): ofrecemos servicios personalizados y tipos de cambio competitivos para los traders.Paso 3: guarda tu Flux (FLUX)Después de comprar tu Flux (FLUX), guárdalo en tu cuenta HTX. Alternativamente, puedes enviarlo a otro lugar mediante transferencia blockchain o utilizarlo para tradear otras criptomonedas.Paso 4: tradear Flux (FLUX)Tradear fácilmente con Flux (FLUX) en HTX's mercado spot. Simplemente accede a tu cuenta, selecciona tu par de trading, ejecuta tus trades y monitorea en tiempo real. Ofrecemos una experiencia fácil de usar tanto para principiantes como para traders experimentados.

61 Vistas totalesPublicado en 2024.12.10Actualizado en 2026.06.02

Cómo comprar FLUX

Discusiones

Bienvenido a la comunidad de HTX. Aquí puedes mantenerte informado sobre los últimos desarrollos de la plataforma y acceder a análisis profesionales del mercado. A continuación se presentan las opiniones de los usuarios sobre el precio de FLUX (FLUX).

活动图片