Charles Bensimon's picture

Charles Bensimon

cbensimon

AI & ML interests

None yet

Recent Activity

Organizations

Hugging Face's profile picture Robustness Gym's profile picture Spaces-explorers's profile picture The Team Ten's profile picture Blog-explorers's profile picture TTS Eval (OLD)'s profile picture ZeroGPU Explorers's profile picture TTS AGI's profile picture Social Post Explorers's profile picture zero gpu hacking's profile picture

Posts 3

view post
Post
2967
πŸš€ ZeroGPU now supports PyTorch native quantization via torchao

While it hasn’t been battle-tested yet, Int8WeightOnlyConfig is already working flawlessly in our tests.

Let us know if you run into any issues β€” and we’re excited to see what the community will build!

import spaces
from diffusers import FluxPipeline
from torchao.quantization.quant_api import Int8WeightOnlyConfig, quantize_

pipeline = FluxPipeline.from_pretrained(...).to('cuda')
quantize_(pipeline.transformer, Int8WeightOnlyConfig()) # Or any other component(s)

@spaces.GPU
def generate(prompt: str):
    return pipeline(prompt).images[0]

Articles 1

Article
81

Run ComfyUI workflows for free on Spaces

models 0

None public yet