Instructions to use habulaj/zekeapi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use habulaj/zekeapi with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("habulaj/zekeapi") prompt = "TOK" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download train.sh from habulaj/zekeapi: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/habulaj/zekeapi/resolve/main/train.sh
- Command line
-
hf download hf://habulaj/zekeapi/train.sh
-
curl -L -o train.sh https://huggingface.co/habulaj/zekeapi/resolve/main/train.sh
546 Bytes
| accelerate launch train_dreambooth_b-lora_sdxl.py --pretrained_model_name_or_path=stabilityai/stable-diffusion-xl-base-1.0 --instance_data_dir=/home/user/app/training_data/zekeapi --output_dir=/home/user/app/experiments/zekeapi --instance_prompt="TOK" --resolution=1024 --rank=64 --train_batch_size=1 --gradient_accumulation_steps=1 --learning_rate=0.0004 --lr_scheduler=constant --lr_warmup_steps=0 --max_train_steps=1000 --checkpointing_steps=1000 --validation_prompt="A photo of TOK" --validation_epochs=250 --seed=10923 --mixed_precision fp16 |