Run this model with HF Jobs
Run life/newyearlamp on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/life/newyearlamp. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/life/newyearlamp on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use life/newyearlamp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use life/newyearlamp with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("life/newyearlamp") prompt = "A NewYearLamp on Christmas tree" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (7)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950---tags:- text-to-image- flux- lora- diffusers- template:sd-lora- ai-toolkitwidget:- text: A NewYearLamp on Christmas tree output: url: samples/1727176888162__000001000_0.jpg- text: NewYearLamp output: url: samples/1727176904503__000001000_1.jpgbase_model: black-forest-labs/FLUX.1-devinstance_prompt: NewYearLamplicense: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md---
# newyearlampModel trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)<Gallery />
## Trigger words
You should use `NewYearLamp` to trigger the image generation.
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
Weights for this model are available in Safetensors format.
[Download](/life/newyearlamp/tree/main) them in the Files & versions tab.
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
```pyfrom diffusers import AutoPipelineForText2Imageimport torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')pipeline.load_lora_weights('life/newyearlamp', weight_name='newyearlamp')image = pipeline('A NewYearLamp on Christmas tree').images[0]image.save("my_image.png")```
For 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)
123version https://git-lfs.github.com/spec/v1oid sha256:8e8decf4d1ef08f9313f8c23181868c2bcd66447e44318009fee0c002d132bd4size 171969408123version https://git-lfs.github.com/spec/v1oid sha256:a0084d6c7c9765c8d7ae0fc5d9b5ee861108eb02601d717c86aad6bb14c801casize 171969408123version https://git-lfs.github.com/spec/v1oid sha256:f1f546b7ff6eb21a4a87b4c87a926d770e1ddda845e5296497768d327d1ff5b1size 171969408123version https://git-lfs.github.com/spec/v1oid sha256:8aaed629d35a24a9acbbb1e33f87199805f97bfc1627b1262474e7b62da2d3d8size 171969408README.mdAdded+50
newyearlamp.safetensorsAdded+3
newyearlamp_000000250.safetensorsAdded+3
newyearlamp_000000500.safetensorsAdded+3
newyearlamp_000000750.safetensorsAdded+3
samples/1727176888162__000001000_0.jpgAdded

samples/1727176904503__000001000_1.jpgAdded
