diffusers / flux-cached-prompt-encoder-custom-block

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: September 16 2025

Introduction of flux-cached-prompt-encoder-custom-block

Model Details of flux-cached-prompt-encoder-custom-block

Cached Flux Prompt Encoding

This is a custom block designed to cache input prompts for the Flux model. Prompts encoded prompts are stored in a safetensors file using the hashed prompt string as the key. Prompts existing in the cache are loaded directly from the file, while new prompts are encoded and added to the cache.

How to use

import torch
from diffusers.modular_pipelines import ModularPipelineBlocks, SequentialPipelineBlocks
from diffusers.modular_pipelines.flux.modular_blocks import TEXT2IMAGE_BLOCKS

prompt_encoder_block = ModularPipelineBlocks.from_pretrained(
    "diffusers/flux-cached-prompt-encoder-custom-block",
    trust_remote_code=True
)

blocks = TEXT2IMAGE_BLOCKS.copy().insert("text_encoder", prompt_encoder_block, 0)
blocks = SequentialPipelineBlocks.from_blocks_dict(blocks)

repo_id = "diffusers/modular-FLUX.1-dev"
pipe = blocks.init_pipeline(repo_id)
pipe.load_components(torch_dtype=torch.bfloat16, device_map="cuda")

output = pipe(
    prompt=prompt,
    num_inference_steps=35,
    guidance_scale=3.5,
    output_type="pil",
)
image = output.values['image']

Runs of diffusers flux-cached-prompt-encoder-custom-block on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About flux-cached-prompt-encoder-custom-block huggingface.co Model

flux-cached-prompt-encoder-custom-block huggingface.co

flux-cached-prompt-encoder-custom-block huggingface.co is an AI model on huggingface.co that provides flux-cached-prompt-encoder-custom-block's model effect (), which can be used instantly with this diffusers flux-cached-prompt-encoder-custom-block model. huggingface.co supports a free trial of the flux-cached-prompt-encoder-custom-block model, and also provides paid use of the flux-cached-prompt-encoder-custom-block. Support call flux-cached-prompt-encoder-custom-block model through api, including Node.js, Python, http.

flux-cached-prompt-encoder-custom-block huggingface.co Url

https://huggingface.co/diffusers/flux-cached-prompt-encoder-custom-block

diffusers flux-cached-prompt-encoder-custom-block online free

flux-cached-prompt-encoder-custom-block huggingface.co is an online trial and call api platform, which integrates flux-cached-prompt-encoder-custom-block's modeling effects, including api services, and provides a free online trial of flux-cached-prompt-encoder-custom-block, you can try flux-cached-prompt-encoder-custom-block online for free by clicking the link below.

diffusers flux-cached-prompt-encoder-custom-block online free url in huggingface.co:

https://huggingface.co/diffusers/flux-cached-prompt-encoder-custom-block

flux-cached-prompt-encoder-custom-block install

flux-cached-prompt-encoder-custom-block is an open source model from GitHub that offers a free installation service, and any user can find flux-cached-prompt-encoder-custom-block on GitHub to install. At the same time, huggingface.co provides the effect of flux-cached-prompt-encoder-custom-block install, users can directly use flux-cached-prompt-encoder-custom-block installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

flux-cached-prompt-encoder-custom-block install url in huggingface.co:

https://huggingface.co/diffusers/flux-cached-prompt-encoder-custom-block

Url of flux-cached-prompt-encoder-custom-block

flux-cached-prompt-encoder-custom-block huggingface.co Url

Provider of flux-cached-prompt-encoder-custom-block huggingface.co

diffusers
ORGANIZATIONS

Other API from diffusers

huggingface.co

Total runs: 46.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2024
huggingface.co

Total runs: 1.7K
Run Growth: -332
Growth Rate: -18.57%
Updated:February 08 2023
huggingface.co

Total runs: 403
Run Growth: -35
Growth Rate: -8.68%
Updated:February 24 2025
huggingface.co

Total runs: 16
Run Growth: -7
Growth Rate: -43.75%
Updated:January 27 2023
huggingface.co

Total runs: 15
Run Growth: 2
Growth Rate: 13.33%
Updated:February 07 2024