Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

flashrt
/
fp4-fused-ops

Kernels
Transformers
Diffusers
cuda
native-cuda
blackwell
nvfp4
Model card Files Files and versions
xet
Community

Instructions to use flashrt/fp4-fused-ops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Kernels

    How to use flashrt/fp4-fused-ops with Kernels:

    # !pip install kernels
    
    from kernels import get_kernel
    
    kernel = get_kernel("flashrt/fp4-fused-ops")
  • Transformers

    How to use flashrt/fp4-fused-ops with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("flashrt/fp4-fused-ops", device_map="auto")
  • Diffusers

    How to use flashrt/fp4-fused-ops with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("flashrt/fp4-fused-ops", 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
fp4-fused-ops / benchmarks
17.6 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
liangsu9988's picture
liangsu9988
Promote latest kernel artifacts to main
d731311 verified 3 days ago
  • RESULTS.md
    4.84 kB
    Promote latest kernel artifacts to main 3 days ago
  • benchmark.py
    12.8 kB
    Promote latest kernel artifacts to main 4 days ago