Downloads · 30 days
0
kutayozbay/flux-lite-8B-1024x1024-tp2
flux-lite-8B-1024x1024-tp2 is a machine learning model from kutayozbay. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
language: en libraryname: optimum.neuron tags: - diffusion - image-generation - aws - neuronx - inf2 - flux - compiled - bfloat16 license: creativeml-openrail-m datasets: - n/a pipelinetag: text-to-image basemodel: Fr…
Downloads · 30 days
0
Access
Public
Updated Oct 2, 2025
Repo size
27.7 GB
Likes
1
Public
Click a slice to open those files.
.safetensors16.3 GB · 59%
From the Hugging Face model README
language: en library_name: optimum.neuron tags:
🚀 This repository contains the compiled NeuronX graph for running Freepik’s Flux.1-Lite-8B model on AWS Inferentia2 (Inf2) instances, optimized for 1024×1024 image generation with tensor parallelism = 2.
The model has been compiled using 🤗 Optimum Neuron to leverage AWS NeuronCores for efficient inference at scale.
Freepik/flux.1-lite-8B2 (splits model across 2 NeuronCores)1024 × 10241bfloat16auto_cast="none")Make sure you are running on an AWS Inf2 instance with the AWS Neuron SDK installed.
pip install "optimum[neuron]" torch torchvision
To compile this model yourself:
from optimum.neuron import NeuronFluxPipeline
compiler_args = {"auto_cast": "none"}
input_shapes = {"batch_size": 1, "height": 1024, "width": 1024}
pipe = NeuronFluxPipeline.from_pretrained(
"Freepik/flux.1-lite-8B",
torch_dtype="bfloat16",
export=True,
tensor_parallel_size=2,
**compiler_args,
**input_shapes,
)
pipe.save_pretrained("flux_lite_neuronx_1024_tp2/")