Post
75
Well, it took just 2 hours for
openai/gpt-oss-120b to hit #1 on Hugging Face. Don’t remember seeing anything rise that fast!
None defined yet.
hf
: a faster, friendlier Hugging Face CLI ✨hf auth login
easier to type and remember?torch.compile
import torch
from diffusers import CogView4Pipeline
from diffusers.hooks import apply_first_block_cache, FirstBlockCacheConfig
pipe = CogView4Pipeline.from_pretrained("THUDM/CogView4-6B", torch_dtype=torch.bfloat16)
pipe.to("cuda")
apply_first_block_cache(pipe.transformer, FirstBlockCacheConfig(threshold=0.2))
prompt = "A photo of an astronaut riding a horse on mars"
image = pipe(prompt, generator=torch.Generator().manual_seed(42)).images[0]
image.save("output.png")