Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/dreambooth/train_dreambooth_lora_krea2.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def _is_hub_id(s):
if not _is_hub_id(inference_model):
inference_model = "krea/Krea-2-Turbo"

# List Turbo first in the card's `base_model` metadata: the Hub keys the Inference Providers
# widget off the first entry, and these LoRAs are served on Turbo — so leading with it enables
# the widget on the pushed LoRA. RAW (the training base) stays linked as the second entry.
card_base_models = [inference_model] + ([card_base_model] if card_base_model != inference_model else [])

model_description = f"""
# Krea 2 DreamBooth LoRA - {repo_id}

Expand Down Expand Up @@ -174,7 +179,7 @@ def _is_hub_id(s):
repo_id_or_path=repo_id,
from_training=True,
license="apache-2.0",
base_model=card_base_model,
base_model=card_base_models,
prompt=instance_prompt,
model_description=model_description,
widget=widget_dict,
Expand Down
Loading