Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: use local Unsloth logo for Hub fallbacks (#7609)

Wasim Yousef Saida114fecbbd39
diff --git a/studio/frontend/src/features/hub/catalog/owner-avatar.tsx b/studio/frontend/src/features/hub/catalog/owner-avatar.tsx
index ac8bee9ade9..b5177e3c6e6 100644
--- a/studio/frontend/src/features/hub/catalog/owner-avatar.tsx
+++ b/studio/frontend/src/features/hub/catalog/owner-avatar.tsx
@@ -19,6 +19,20 @@ const SIZES: Record<AvatarSize, string> = {
lg: "size-12 rounded-[15px] text-ui-16",
};
+const UNSLOTH_OWNER_LOGO: ProviderLogo = {
+ id: "unsloth",
+ name: "Unsloth",
+ logoPath: "/rounded.png",
+ treatment: "original",
+ background: "transparent",
+ fit: "cover",
+ prefixes: [],
+};
+
+function isUnslothOwner(owner: string): boolean {
+ return owner.trim().toLowerCase() === "unsloth";
+}
+
const AVATAR_IMAGE_RETRY_BASE_MS = 60_000;
const AVATAR_IMAGE_RETRY_MAX_MS = 30 * 60_000;
@@ -68,6 +82,16 @@ export function OwnerAvatar({
/>
);
}
+
+ if (isUnslothOwner(owner) && !remote) {
+ return (
+ <ProviderLogoTile
+ provider={UNSLOTH_OWNER_LOGO}
+ size={size}
+ className={className}
+ />
+ );
+ }
return (
<DefaultAvatar
owner={owner}
@@ -83,11 +107,15 @@ export function useAvatarImageUrl(
repoName?: string,
): string | null {
const provider = resolveOwnerProviderLogo(owner, repoName);
- const remoteUrl = useHfOwnerAvatar(owner.trim() || "?");
+ const isUnsloth = isUnslothOwner(owner);
+ const remoteUrl = useHfOwnerAvatar(
+ owner.trim() || "?",
+ provider == null && !isUnsloth,
+ );
if (provider) {
return provider.treatment === "original" ? provider.logoPath : null;
}
- return remoteUrl;
+ return isUnsloth ? UNSLOTH_OWNER_LOGO.logoPath : remoteUrl;
}
function ProviderLogoTile({