Skip to content

Commit 5f3ba51

Browse files
VyasGurusanchitmonga22
authored andcommitted
lora tags in. model sheet
1 parent ff14d12 commit 5f3ba51

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

examples/ios/RunAnywhereAI/RunAnywhereAI/Features/Models/ModelSelectionRows.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ struct FlatModelRow: View {
170170
}
171171
}
172172

173+
/// Check if any LoRA adapters are compatible with this model
174+
private var hasLoRAAdapters: Bool {
175+
LoRAAdapterCatalog.adapters.contains { $0.compatibleModelIds.contains(model.id) }
176+
}
177+
173178
/// Check if this is a built-in model that doesn't require download
174179
private var isBuiltIn: Bool {
175180
model.framework == .foundationModels ||
@@ -288,6 +293,20 @@ struct FlatModelRow: View {
288293
.foregroundColor(AppColors.primaryPurple)
289294
.cornerRadius(AppSpacing.cornerRadiusSmall)
290295
}
296+
297+
// LoRA adapter support indicator
298+
if hasLoRAAdapters {
299+
HStack(spacing: AppSpacing.xxSmall) {
300+
Image(systemName: "sparkles")
301+
Text("LoRA")
302+
}
303+
.font(AppTypography.caption2)
304+
.padding(.horizontal, AppSpacing.small)
305+
.padding(.vertical, AppSpacing.xxSmall)
306+
.background(AppColors.badgeBlue)
307+
.foregroundColor(AppColors.primaryBlue)
308+
.cornerRadius(AppSpacing.cornerRadiusSmall)
309+
}
291310
}
292311
}
293312

0 commit comments

Comments
 (0)