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

taohu
/
fastgen-offline

Diffusers
Safetensors
Model card Files Files and versions
xet
Community

Instructions to use taohu/fastgen-offline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use taohu/fastgen-offline with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("taohu/fastgen-offline", 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
fastgen-offline / FastGen /fastgen /utils
112 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
taohu's picture
taohu
Upload folder using huggingface_hub
0839907 verified 6 months ago
  • distributed
    Upload folder using huggingface_hub 6 months ago
  • __init__.py
    5.53 kB
    Upload folder using huggingface_hub 6 months ago
  • autoresume.py
    5.17 kB
    Upload folder using huggingface_hub 6 months ago
  • basic_utils.py
    14.6 kB
    Upload folder using huggingface_hub 6 months ago
  • checkpointer.py
    21.1 kB
    Upload folder using huggingface_hub 6 months ago
  • global_vars.py
    239 Bytes
    Upload folder using huggingface_hub 6 months ago
  • io_utils.py
    7.65 kB
    Upload folder using huggingface_hub 6 months ago
  • logging_utils.py
    2.35 kB
    Upload folder using huggingface_hub 6 months ago
  • lr_scheduler.py
    5.78 kB
    Upload folder using huggingface_hub 6 months ago
  • registry.py
    2.19 kB
    Upload folder using huggingface_hub 6 months ago
  • scripts.py
    5.37 kB
    Upload folder using huggingface_hub 6 months ago
  • test_utils.py
    14.8 kB
    Upload folder using huggingface_hub 6 months ago