字节帮Flux提速!Hyper Lora 8步 16步发布大大提速Flux Dev出图速度

字节Hyper Lora介绍

万众期待的Flux加速Lora来了,字节跳动最新发布的针对最强开源大模型Flux,目前已发布8步和16步版本,如下:

该Hyper Lora将大幅减少图片生成的步骤,目前可以在8步和16步下使用,需要使用对应的lora,效果可以达到原来的20步-30步的效果,显著提升绘图效率。

那么问题来了,有了Hyper Lora你还会用GGUF和NF8版本的Flux吗?

下面进入实战对比:

对比

注意1:

由于NF4版本和GGUFQ4版本已经很快了,并且出图也可以。所以,这里采用的是Flux Dev FP8 版本,外加8步字节跳动的Hyper Lora。

GGUF 也是支持Hyper Lora的。

笔者硬件环境: 32G内存,4060 8G 笔记本

注意2:

关于Hyper Lora模型强度的设置,官方给出的建议约为0.125(设置为0.13即可,ComfyUI会四舍五入),引导值设置为3.5

如果没有设置引导值,则生成的图全是噪点。

FluxDevFp8Hyper8Steps 工作流

FluxDevFp8-20Steps工作流

相同条件

  • 分辨率: 768*1024

  • 随机种子,固定

  • 采样器:eular

  • 调度器:simple

  • 降噪: 1

不同条件

  • Flux Dev FP8 20步,出图时间178.54s

  • Flux Dev FP8 + Hyper Lora 8步,出图时间62s

出图质量对比

提示词

A TV show poster for a parody series titled "Breaking Bread," playing on the name of the famous show Breaking Bad. The poster features a stern-looking baker in a flour-dusted apron, with a rolling pin slung over his shoulder like a weapon. He stands in the middle of a rustic bakery, surrounded by stacks of bread loaves, pastries, and bags of flour, all arranged to mimic the iconic desert backdrop from the original show.

Behind him, the bakery's chalkboard menu lists items like "Cinnamon Swirl Cartel" and "Blueberry Muffin Meth," hinting at the culinary chaos that’s about to unfold. The baker’s expression is intense, yet comically serious, as if he's about to take on the world with nothing but his dough and determination.

The title "Breaking Bread" is displayed in bold, stylized text at the top, with the "Breaking" in a gritty, cracked font, while "Bread" is written in warm, golden letters resembling freshly baked loaves. The tagline beneath reads, "Baking is a Dangerous Game," adding to the pun-filled humor.

The overall color scheme of the poster is a mix of warm, bakery hues with the gritty, dark tones reminiscent of the original show, blending the intense drama of Breaking Bad with the lighthearted, culinary twist of "Breaking Bread."

模仿著名美剧《绝命毒师》的电视剧《Breaking Bread》的海报。海报上有一个表情严肃的面包师,围裙上撒满了面粉,肩上挂着一根擀面杖,就像武器一样。他站在一家质朴的面包店中间,周围是一堆堆的面包、糕点和一袋袋面粉,所有这些都是为了模仿原版节目中标志性的沙漠背景而布置的。 在他身后,面包店的黑板菜单上列出了“肉桂漩涡卡特尔”(Cinnamon Swirl Cartel)和“蓝莓松饼冰毒”(Blueberry Muffin Meth)等菜品,暗示着即将展开的烹饪混乱。面包师的表情很紧张,但又严肃得滑稽,好像他要用他的面团和决心来征服这个世界。 标题“掰面包”(Breaking Bread)在顶部以粗体字显示,其中“掰面包”(Breaking)的字体粗糙、有裂纹,而“面包”(Bread)是用温暖的金色字母写的,就像刚烤好的面包。下面的标语写着“烘焙是一项危险的游戏”,增加了双关语的幽默。 海报的整体配色是温暖的面包房色调和让人想起原剧的粗粝的深色色调,融合了《绝命毒师》的激烈戏剧和《Breaking Bread》的轻松、烹饪风格。

出图效果对比

左:FluxDevFp8Hyper8Steps

右:FluxDevFp8-20Steps

提示词

This image is a highly detailed CGI rendering of a futuristic, mechanized snail. The snail is primarily constructed from a blend of metallic and translucent materials, giving it a sleek, high-tech appearance. Its shell is a large, smooth, metallic sphere with intricate, interlocking gears and cogs, suggesting advanced machinery. The shell is encased in a clear, semi-transparent material, which allows glimpses of the intricate inner workings.

The snail's body is segmented, resembling a snail's anatomy, but each segment is adorned with metallic, jointed legs that are reminiscent of mechanical appendages. These legs are detailed with fine, metallic textures and small, glowing amber-colored lights, adding to the futuristic, robotic feel.

The snail's head features two large, cylindrical antennae, and its eyes are large, round, and metallic, with small, glowing lights at the center. The snail's mouth is a small, metallic opening with intricate, almost organic-looking details.

The background is a deep, solid black, which contrasts sharply with the metallic and translucent elements of the snail, making it the focal point. The image is highly polished, with a glossy, almost mirror-like surface, indicating a high level of realism and attention to detail.

这张图片是一个非常详细的CGI渲染未来,机械化蜗牛。蜗牛主要由金属和半透明材料混合而成,使其具有光滑的高科技外观。它的外壳是一个巨大的、光滑的金属球体,上面有错综复杂的、互锁的齿轮和齿轮,暗示着先进的机械。外壳包裹在透明的半透明材料中,可以瞥见复杂的内部工作原理。 蜗牛的身体是分节的,类似于蜗牛的解剖结构,但每个部分都装饰着金属,有关节的腿,让人想起机械附属物。这些腿上有精细的金属纹理和发光的琥珀色小灯,增加了未来主义的机器人感觉。 蜗牛的头上有两个巨大的圆柱形触角,它的眼睛又大又圆,呈金属状,中间有发光的小光。蜗牛的嘴是一个小的,金属的开口,有着复杂的,几乎是有机的细节。 背景是深的纯黑色,与蜗牛的金属和半透明元素形成鲜明对比,使其成为焦点。该图像经过高度抛光,具有光滑的,几乎像镜子一样的表面,表明高水平的现实主义和对细节的关注。

出图效果对比

左:FluxDevFp8Hyper8Steps

右:FluxDevFp8-20Steps

提示词

Pink text "Sex or Dead", a sexy girl holding a pistol, wearing very revealing clothes, bold tattoos, long colorful hair, cool, 20 years old,

粉红色的文字“性或死”,一个性感的女孩拿着手枪,穿着非常暴露的衣服,大胆的纹身,长长的彩色头发,酷,20岁,

出图效果对比

左:FluxDevFp8Hyper8Steps

右:FluxDevFp8-20Steps

如果需要Hyper Lora以及工作流,请关注公主好: DevOpsAigc云时代

发送指令: FluxHyperLora

自主获取。

调查问卷

看完上述文章,请问:有了Hyper Lora你还会用GGUF和NF8版本的Flux吗?

往期文章推荐

### Flux框架中 FP8 和 FP16 精度格式的区别 在Flux框架内,支持多种精度计算选项来满足不同的硬件和软件需求。FP8(Float Point 8-bit)与FP16(Float Point 16-bit)作为两种浮点数表示方法,在位宽、动态范围以及应用场景方面存在显著差异。 #### 位宽与存储空间 FP8采用更紧凑的数据结构,仅需8比特即可完成数值表达[^2]。相比之下,FP16则占用两倍的空间——16比特用于编码更大范围内的实数。这种设计使得FP8能够在相同内存容量条件下处理更多的数据样本或特征向量,从而有助于加速大规模机器学习任务中的训练过程。 #### 动态范围与精度损失 尽管FP8具有较小的字节长度优势,但在实际运算过程中可能会面临更大的舍入误差风险。这是因为较少的有效数字意味着有限的绝对最小值和最大值界限,进而影响某些复杂算法的表现效果。相反,FP16提供了更为广阔的指数域(-14~+15),能够更好地适应科学计算领域常见的极端情况下的数值变化。 #### 应用场景对比 - **FP8的应用** 对于那些对速度敏感而非极致准确性要求的任务来说,比如初筛选阶段或是资源受限环境下的部署工作,FP8不失为一种理想的选择。此外,随着专用AI芯片逐渐普及,这些设备往往内置了专门针对低功耗高效能优化过的FP8算术逻辑单元(ALU)[^3]。 - **FP16的应用** 当涉及到高分辨率像识别、自然语言理解等精细操作时,则更适合选用具备更高稳定性的FP16来进行前向传播及反向梯度更新。特别是在GPU集群环境中运行大型深度卷积神经网络(CNN)模型期间,利用半精度浮点数不仅可以减少带宽消耗,还能充分利用现代形处理器内部丰富的SIMD(Single Instruction Multiple Data)流水线结构以获得更好的吞吐率[^4]。 ```python import torch # 创建随机张量并设置为fp16精度 tensor_fp16 = torch.randn(2, 3).half() print(tensor_fp16) # 将上述张量转换成fp8模拟形式 (注意:当前PyTorch版本可能不直接支持此功能) def simulate_to_fp8(x): # 这里只是一个简单的示例函数,并不代表真实的FP8转换逻辑 max_val = x.abs().max() scale_factor = 7 / max_val.item() if max_val != 0 else 1.0 scaled_x = x * scale_factor quantized_x = ((scaled_x + 1.) * 127.).round_().clamp_(min=-128, max=127).to(torch.int8) return quantized_x simulated_tensor_fp8 = simulate_to_fp8(tensor_fp16.to(torch.float)) print(simulated_tensor_fp8) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DevOpsAigc云时代

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值