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
15.2 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
liangsu9988's picture
liangsu9988
Promote latest kernel artifacts to main
e9e0db5 verified about 10 hours ago
  • benchmarks
    Promote latest kernel artifacts to main about 10 hours ago
  • build
    Promote latest kernel artifacts to main about 10 hours ago
  • .gitattributes
    127 Bytes
    Promote latest kernel artifacts to main 28 days ago
  • CARD.md
    2.06 kB
    Promote latest kernel artifacts to main about 10 hours ago
  • README.md
    6.06 kB
    Promote latest kernel artifacts to main about 10 hours ago
  • VALIDATION.md
    3.45 kB
    Promote latest kernel artifacts to main about 10 hours ago