jerrythechicken1/diffusion-model-math
117
1---2tags:3- text-to-image4- flux5- lora6- diffusers7- template:sd-lora8- ai-toolkit9widget:10- text: 4 + 111 output:12 url: samples/1730518062098__000000300_0.jpg13base_model: black-forest-labs/FLUX.1-dev14 15license: other16license_name: flux-1-dev-non-commercial-license17license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md18---19 20# diffusion-model-math21Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)22<Gallery />23 24## Trigger words25 26No trigger words defined.27 28## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.29 30Weights for this model are available in Safetensors format.31 32[Download](/jerrythechicken1/diffusion-model-math/tree/main) them in the Files & versions tab.33 34## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)35 36```py37from diffusers import AutoPipelineForText2Image38import torch39 40pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')41pipeline.load_lora_weights('jerrythechicken1/diffusion-model-math', weight_name='diffusion-model-math.safetensors')42image = pipeline('4 + 1').images[0]43image.save("my_image.png")44```45 46For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)47 48 