<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Denis Timonin on Medium]]></title>
        <description><![CDATA[Stories by Denis Timonin on Medium]]></description>
        <link>https://medium.com/@denistimonin?source=rss-85e81e04ba44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3woWPvv5zV2nVBF-wgDxFw.jpeg</url>
            <title>Stories by Denis Timonin on Medium</title>
            <link>https://medium.com/@denistimonin?source=rss-85e81e04ba44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:02:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@denistimonin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Share AI artifacts with one link, like a Google Drive file]]></title>
            <link>https://medium.com/flymy-ai/share-ai-artifacts-with-one-link-like-a-google-drive-file-6993d8a82978?source=rss-85e81e04ba44------2</link>
            <guid isPermaLink="false">https://medium.com/p/6993d8a82978</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artifact-claude]]></category>
            <category><![CDATA[sharing]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai-artifacts]]></category>
            <dc:creator><![CDATA[Denis Timonin]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 00:00:26 GMT</pubDate>
            <atom:updated>2026-11-27T21:54:18.719Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tROMPAItI4V1hcSRLScc7A.jpeg" /></figure><p>Ask an AI agent for a presentation, a small game or a landing page, and FlyMy.AI keeps it as an artifact: a web page with versions. Until now an artifact had two links: one for you and the people you invited, and a separate share link for everyone else. Now every artifact has one link, https://app.flymy.ai/artifacts/&lt;id&gt;, and it works like a file on Google Drive. You and the people you invite always open it. Turn on Anyone with the link, and anyone who has it opens the live version, even signed out. Everyone else sees a notice that the artifact is private or does not exist.</p><ul><li><strong>One link per artifact:</strong> https://app.flymy.ai/artifacts/&lt;id&gt;, the address you already open. The app and your assistant give you this link.</li><li><strong>Restricted</strong>, where a new artifact starts: only you and the people you invite open it.</li><li><strong>Anyone with the link:</strong> anyone who has it opens the live version, signed in or not.</li><li><strong>Invited people</strong> get Can view or Can edit, accept on the artifact’s link and see every version and the files.</li><li><strong>Allow copies:</strong> a signed-in visitor can copy the live version into their own account.</li><li><strong>A visitor sees the page alone:</strong> never your other versions, the file list, the history or the people.</li></ul><h3>What an AI artifact is</h3><p>An AI artifact is something an AI builds for you that works outside the chat: a page you can open, use and share on its own. On FlyMy.AI an artifact is a small web front end made of HTML, JavaScript, CSS and assets. Your assistant builds it in a chat, and FlyMy.AI keeps every save as a new version, with one version live.</p><p>It can start from your own files or from a standard type, a ready template that keeps its content in one file:</p><ul><li><strong>presentation</strong>: a Markdown slide deck with charts and speaker notes that prints to PDF;</li><li><strong>game</strong>: a 3D three.js game, a combine harvester in a wheat field;</li><li><strong>landing</strong>: a product page with a hero, features, pricing and FAQ;</li><li><strong>report</strong> and <strong>dashboard</strong>: KPI tiles, charts and tables;</li><li><strong>gallery</strong>: images and videos with filters and a lightbox.</li></ul><p>To change one, paste its link into Claude or another assistant connected to FlyMy.AI and say what to change.</p><p>FlyMy.AI also publishes <a href="https://flymy.ai/blog/anyone-with-the-link-ai-sites/">sites</a>. A site is a page or small web app that FlyMy.AI serves as published: it can call AI for its visitors, and its link shows the latest version or one you pin. An artifact has one live version, often starts from a template and runs sandboxed, with no cookies, no browser storage and no FlyMy.AI key. Both now share the same way.</p><h4>One link for every artifact</h4><p>Until this release, an artifact had two addresses. You and the people you invited opened app.flymy.ai/artifacts/&lt;id&gt;; everyone else needed a share link under app.flymy.ai/artifacts/s/, which Reset link could replace. The link you opened was not the one your audience could open, and an assistant had to know which to hand out.</p><p>Now there is one link, https://app.flymy.ai/artifacts/&lt;id&gt;, the address you already had, so no artifact moves. Sharing is a check FlyMy.AI makes each time someone opens the link: who is asking, and what you allow. That is how a file on Google Drive works, and the Share dialog now reads the same way: People with access, General access, Allow copies and one Copy link. Every answer your assistant gets carries the link as url.</p><p>Older links of the form https://app.flymy.ai/artifacts/s/... keep opening for now, with the same page-only view and the same Allow copies rule, and will stop in a later release. Share the /artifacts/&lt;id&gt; link instead.</p><h3>Who opens your artifact’s link</h3><p>One link, four kinds of visitors. What each gets depends on who they are and on General access.</p><p>One address for everyone. FlyMy.AI decides what to show each time the link is opened.</p><p><strong>Who opens the link</strong> - General access: Restricted | General access: Anyone with the link</p><ul><li><strong>You, the owner</strong> - Every version, the files, Share and Make live | The same</li><li><strong>People you invited, after they accept</strong> - Can view: every version, the files and a copy of any version. Can edit: also publish versions, choose the live one and rename | The same</li><li><strong>Invited, not accepted yet (signed in)</strong> - The invitation, with Accept and Decline | The live version, with Accept and Decline</li><li><strong>Anyone else, signed in or not</strong> - &quot;This artifact is private or does not exist.&quot; | The live version alone, and their own copy when you allow copies</li></ul><p>The private notice reads: “This artifact is private or does not exist. If someone sent you this link, ask them to share it with you.” An artifact that does not exist gets the same words, so the link never reveals a private one.</p><h3>How to share an AI artifact in five steps</h3><h3>1. Connect your assistant to FlyMy.AI</h3><p>The FlyMy.AI MCP has one URL, https://mcp-agents.flymy.ai/mcp. Add it once and sign in; the sign-in creates an account if you have none.</p><blockquote>Claude Code: claude mcp add --scope user --transport http flymyai https://mcp-agents.flymy.ai/mcp, then /mcp to sign in.</blockquote><blockquote>Codex: codex mcp add flymyai --url https://mcp-agents.flymy.ai/mcp opens the sign-in.</blockquote><p>claude.ai, Claude Desktop and ChatGPT: add the same URL as a custom connector.</p><h3>2. Ask for the artifact</h3><p>The assistant calls create_artifact, from a standard type or its own files. Version 1 goes live at once and stays Restricted until you share it; the answer carries url, the artifact&#39;s one link.</p><p>TRY IT</p><pre>Make me a FlyMy.AI presentation about our Q3 results, keep it Restricted and give me its link.</pre><h3>3. Choose who can open it</h3><p>In the app, click Share and set General access to Restricted or Anyone with the link. While the link is on, the dialog shows that it serves the live version and offers Allow copies. Or ask your assistant, which calls share_artifact:</p><p>TRY IT</p><pre>Turn on Anyone with the link for my Q3 presentation, allow copies and give me the link.</pre><h3>4. Invite people by name</h3><p>Under People with access, enter an email or a FlyMy.AI username and pick Can view or Can edit. The person accepts on the artifact&#39;s own link and from then on opens it, even while it is Restricted.</p><p>TRY IT</p><pre>Invite alex@example.com to my Q3 presentation with Can view and keep it Restricted.</pre><h3>5. Send the link</h3><p>Click Copy link, or take the url from your assistant, and send it. Everyone gets the same link; what they see is decided when they open it.</p><h3>The live version and saved versions</h3><p>Each change your assistant publishes is a new version: v1, v2, v3. The link always shows the live one, so you can keep working while people use the page:</p><ul><li><strong>A change lands next to the live version.</strong> When you or an editor paste the link with a change, the assistant saves a new version and leaves the live one as it is.</li><li><strong>Make it live when it is ready</strong> with <strong>Make live</strong> in Versions, or update_artifact with live_version. Rolling back works the same way.</li><li><strong>Review a saved version</strong> at https://app.flymy.ai/artifacts/&lt;id&gt;?v=3, which opens for you and the people you invited.</li></ul><pre>https://app.flymy.ai/artifacts/&lt;id&gt; add these things to the artifact: add a slide about pricing</pre><p>End the line with <strong>and update current version</strong> to make the change live at once. Paste the line into the assistant’s prompt, not a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Qke3C4yIptefFy2h.jpg" /><figcaption>People with the link watch the live version. A version saved next to it stays backstage until you make it live.</figcaption></figure><p>A visitor with the link sees the live version only: never a version saved next to it, and not even how many there are.</p><h3>Allow copies: let people make their own version</h3><p><strong>Allow copies</strong> lets a signed-in visitor copy the version the link shows into their own account. On the page, <strong>Make your own version</strong> gives them one line to paste into Claude, and they can also make the copy right there. The copy is a new private artifact they own: they change it and see its files. Yours never changes, and the copy records where it came from as <strong>forked from</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MP6liOBwn7OryACx.jpg" /><figcaption>Allow copies: the visitor takes a copy to their own desk. The original stays where it was.</figcaption></figure><pre>Open the artifact at the link I paste, make my own copy and change its title.</pre><p>With Allow copies off, the page can only be viewed. People you invited by name can copy any version, whatever this setting says.</p><h3>What a visitor never sees</h3><p>A visitor with the link gets the page under a thin bar with its name, its author and its version, and the description behind an info button. They never see:</p><ul><li>your other versions, not even how many there are;</li><li>the file list;</li><li>the artifact’s history and lineage;</li><li>the people you shared it with, or your sharing settings.</li></ul><p>The page is still a web page: anyone who opens it can fetch any file in the live version, even without the list. Keep only what the page needs in a version, and never a key or a password; FlyMy.AI refuses files that look like secrets. Artifact pages are never indexed by search engines.</p><h3>Invite people by name, and how they accept</h3><p>Share by name with people who should see more than the page:</p><ul><li><strong>Can view</strong>: every version, its files, and a copy of any version.</li><li><strong>Can edit</strong>: also publish versions, choose the live one and rename. An editor’s versions are stored as yours.</li></ul><p>The invitation email leads to the artifact’s own link, where the person, signed in, chooses <strong>Accept</strong> or <strong>Decline</strong>. They can also answer on their Artifacts page or from their assistant. Until they accept, nothing is shared with them by name.</p><pre>Show my artifact invitations and accept the one for the Q3 presentation.</pre><p>An invitation never reveals whether an email has an account. Removing a person stops their access, and any page they have open, at once. You can share an artifact with up to 20 people.</p><h3>Stop sharing: Restricted, not a new link</h3><p>There is no Reset link any more. To stop people who already have the link, set General access to <strong>Restricted</strong> and share the artifact by name with the people who should keep it. Restricted closes the link at once for everyone you did not add by name, and a page they have open stops at its next file.</p><pre>Set my Q3 presentation to Restricted and keep access only for alex@example.com.</pre><p><strong>Turning it on again opens the same link</strong> for everyone who has it. There is no new link to make.</p><h3>Share artifacts from an AI agent: the MCP tools</h3><p>Everything in the Share dialog is also a tool in the FlyMy.AI Agents MCP, so Claude, ChatGPT, Codex or Cursor can do it for you. Every tool that names an artifact takes its id or its link.</p><p><strong>Tool</strong> - What it does</p><ul><li><strong>create_artifact</strong> - Creates an artifact from files or a standard type; version 1 is live and Restricted</li><li><strong>publish_artifact_version</strong> - Publishes a version next to the live one, or as the live one</li><li><strong>get_artifact</strong> - Opens an artifact by link or id; its next says what the caller may do</li><li><strong>share_artifact</strong> - Restricted or Anyone with the link, and whether people with the link may copy it</li><li><strong>add_artifact_member</strong> - Invites a person to view or edit; they accept first</li><li><strong>accept_artifact_invitation</strong> - Accepts an invitation sent to you</li><li><strong>clone_artifact</strong> - Makes your own copy of an artifact you may copy</li></ul><p>The full list, with REST and the Python SDK, is in the <a href="https://docs.flymy.ai/agents/guides/artifacts">Frontend Artifacts guide</a> and the <a href="https://docs.flymy.ai/agents/guides/agent-gateway-reference#artifacts">Agents MCP reference</a>.</p><h3>Claude artifacts, Google Drive and FlyMy.AI compared</h3><p>Here is how to share Claude artifacts in Claude itself, per its help center. The options depend on your plan. On Pro, Max and Ultra an artifact is “Only you” or “Anyone with the link”, plus email invitations in beta. On Team and Enterprise, “Anyone with the link” appears only after an Owner turns on external sharing or allows that one artifact. “Publish” is the older way to share a chat artifact by a public link, and an unpublished artifact cannot be published again.</p><p>To give a page you built in Claude saved versions, a live version and copies on one link, ask Claude, connected to FlyMy.AI, to bring it in: Claude reads the HTML of Claude artifacts you own and creates a FlyMy.AI artifact from it.</p><pre>Copy my Claude artifact &quot;Q3 launch deck&quot; into FlyMy.AI and let anyone with the link open it.</pre><ul><li>Google Drive, Claude artifacts, FlyMy.AI artifacts</li><li><strong>Link settings</strong> - General access: Restricted or Anyone with the link, plus your organization on work or school accounts | Pro, Max and Ultra: &quot;Only you&quot; or &quot;Anyone with the link&quot;; Team and Enterprise: &quot;Only people invited&quot;, &quot;Anyone at&quot; your organization, or &quot;Anyone with the link&quot; when an Owner allows external sharing | General access: Restricted or Anyone with the link</li><li><strong>Opens without signing in</strong> - Yes, with Anyone with the link: no Google Account needed | Most artifacts shared by link; some, such as docs, need a sign-in | Yes, while Anyone with the link is on</li><li><strong>Named people</strong> - Added by email: Viewer, Commenter or Editor | Invited by email (beta): Can view, Commenter or Can edit | Invited by email or username: Can view or Can edit, after they accept</li><li><strong>What the link shows</strong> - The file | The artifact | The live version alone</li><li><strong>Copies</strong> - A setting can stop viewers, commenters or editors from downloading, copying or printing | Described for published chat artifacts: signed-in users can keep their own copy | Allow copies: a signed-in visitor copies the live version</li></ul><p>From each product’s own help pages as of 24 November 2026: <a href="https://support.google.com/drive/answer/2494822">Google Drive Help: share and manage access to files and folders</a>; <a href="https://support.claude.com/en/articles/9547008-share-artifacts">Claude Help Center: share artifacts</a>.</p><h3>FAQ</h3><h3>What is an AI artifact?</h3><p>Something an AI builds for you that works outside the chat: a page you can open, use and share on its own. On FlyMy.AI it is a small web front end, such as a presentation, a game or a landing page, with versions, one of them live, and one link.</p><h3>What does it mean to publish an artifact?</h3><p>Publishing gives what an assistant built a link that opens outside the chat. On FlyMy.AI an artifact is published as version 1 when it is created and stays Restricted until you share it; each change is a new version, and you choose which one is live. In Claude, Publish is the older way to share a chat artifact by a public link.</p><h3>How do I share an artifact privately?</h3><p>Keep General access Restricted and invite people by email or FlyMy.AI username with Can view or Can edit. They accept on the artifact’s own link and then open it. Nobody else can, even with the link.</p><h3>Do people need an account to open my artifact?</h3><p>Not while Anyone with the link is on: anyone who has the link opens the live version without signing in. People you invite sign in and accept first, and making a copy also needs a sign-in.</p><h3>Can someone copy my artifact?</h3><p>Only if you allow it. With Allow copies on, a signed-in visitor can copy the live version into their own account and change it there; people you invited by name can copy any version. Your artifact never changes.</p><h3>How do I share a Claude artifact with one link?</h3><p>In Claude, the sharing options depend on your plan. To give the page saved versions, a live version and copies on one link, ask Claude, connected to FlyMy.AI, to copy it into FlyMy.AI: Claude reads the HTML of Claude artifacts you own and creates a FlyMy.AI artifact from it.</p><h3>Can I export an artifact?</h3><p>Yes, if it is yours or shared with you by name: your assistant reads every file of any version with read_artifact_files, and clone_artifact makes your own independent copy.</p><h3>What happens to my older /artifacts/s/ links?</h3><p>Links of the older form https://app.flymy.ai/artifacts/s/... keep opening for now and will stop in a later release. Share the /artifacts/&lt;id&gt; link instead: Copy link and get_artifact give it to you.</p><h3>Every artifact, one link. You decide who opens it.</h3><p>Ask your assistant for a presentation, a game or a landing page, and share it your way.</p><h3>Keep reading</h3><p><em>Originally published at </em><a href="https://flymy.ai/blog/share-ai-artifacts-one-link/"><em>https://flymy.ai</em></a><em> on November 24, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6993d8a82978" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flymy-ai/share-ai-artifacts-with-one-link-like-a-google-drive-file-6993d8a82978">Share AI artifacts with one link, like a Google Drive file</a> was originally published in <a href="https://medium.com/flymy-ai">FlyMy.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FlyMy.AI Media Agent 1 — Next-Level GenAI Tools for Developers]]></title>
            <link>https://medium.com/flymy-ai/flymy-ai-media-agent-1-next-level-genai-tools-for-developers-6754c446e493?source=rss-85e81e04ba44------2</link>
            <guid isPermaLink="false">https://medium.com/p/6754c446e493</guid>
            <dc:creator><![CDATA[Denis Timonin]]></dc:creator>
            <pubDate>Mon, 02 Jun 2025 07:15:25 GMT</pubDate>
            <atom:updated>2025-06-17T17:51:07.731Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="http://flymy.ai/"><strong>FlyMy.AI</strong></a><strong> Media Agent 1 — Next-Level GenAI Tools for Developers</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*69RbgxnVFy9itGmH35b09w.png" /><figcaption>chat.flymy.ai</figcaption></figure><p>At <a href="http://chat.flymy.ai/">FlyMy.AI</a>, we’re a tight-knit group of visionary engineers from NVIDIA AI, Stability AI, Rask, and Yandex AI. We’re R&amp;D lab that is building the agentic infra and platform to empower developers, combining cutting-edge open-source innovations and high-level research.</p><p>From <a href="https://medium.com/flymy-ai/how-to-outperform-pytorch-kernels-with-openais-triton-compiler-ba2babce8cc5">low-level fastest kernels</a> and <a href="https://flymy.ai/">world-record image generation speeds (50ms on consumer hardware without quality loss)</a>, to agentic pipelines that outperform top-tier models in usability and quality — wwe’re pushing the boundaries of what’s possible, optimizing every layer for speed, scale, and simplicity.</p><h3>Introducing FlyMy.AI Agent M1</h3><p>Today we release <a href="http://chat.flymy.ai/"><strong>FlyMy.AI Media Agent 1 </strong></a><strong>(M1), Chat and API for developers — </strong>the market’s most advanced AI media agent.</p><p>Our mission was clear: to show that with the right infrastructure and a finely tuned stack of open and proprietary models, developers can build agents and pipelines that outperform industry giants like <strong>OpenAI Image 1</strong> and <strong>ByteDance Bagel</strong> — not just in speed, versatility, and cost, but even in quality across key domains.</p><h3>Announces:</h3><h4>Media Agent M1 API:</h4><p><a href="https://docs.flymy.ai/guides/agent-m1/">https://docs.flymy.ai/guides/agent-m1/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgPfKGst_e8QoOvISA1wyw.jpeg" /><figcaption>Generated with <a href="https://app.flymy.ai/flymyai/hiDream-l1-dev">hiDream-l1-dev</a> through <a href="http://chat.flymy.ai/">chat.flymy.ai</a></figcaption></figure><p><strong>Media Agent M1: Multimodal media agent behind </strong>single API endpoint for developers to dozens of high-performance media models via a simple text interface, covering tasks from real-time image generation and editing, to video creation.</p><h4>FlyMy.AI Chat:</h4><p><a href="http://chat.flymy.ai/">chat.flymy.ai</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eA-mdu3LptWxzDPT-KtOA.jpeg" /><figcaption>Generated with <a href="https://app.flymy.ai/flymyai/hiDream-l1-dev">https://app.flymy.ai/flymyai/hiDream-l1-dev</a></figcaption></figure><p><strong>FlyMy.AI Chat for Developers:</strong> <a href="http://chat.flymy.ai/"><strong>chat.flymy.ai</strong></a></p><p>A developer-focused interface that allows seamless interaction with both the Media Agent and individual modern neural networks, enabling rapid model testing, specific task management, testing models behaviour for the custom complex agentic workflows.</p><h3>Features:</h3><h4><strong>Instant Image Generation</strong></h4><p>Agent and API fueled by FlyMy.AI infra and open-source model, generates top quality of the media content in seconds instead of minutes. Advanced high-quality image generation, image editing and video generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QaHsfim2ZUVA31rqDTpdjw.gif" /><figcaption><em>“Generate an anime cat in a t-shirt with text “I love </em><a href="http://flymy.ai/"><em>FlyMy.AI</em></a><em>””</em></figcaption></figure><h4><strong>Face-Preserving Smart Edits</strong></h4><p>In-painting / out-painting that respects identity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qshusGbJLzCVFS2STe6Jw.jpeg" /><figcaption><em>“Add a hat”</em></figcaption></figure><h4>Change facial expression</h4><p>Modify facial expressions with pixel-perfect accuracy and no identity loss</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHGoHoeaKsxq5bbA0-PYHQ.jpeg" /><figcaption>“Add smile”</figcaption></figure><h4>Advanced video generation</h4><p>Text-to-video, image-to-video and multi-shot stitching</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wlLFIuTa88fQW3rjqbH9w.gif" /></figure><h4><strong>Multimodal Pipelines and m</strong>any other things</h4><p>And many other things, from text editing into object merging and complex pipelines <em>Separate steps: take a full-length girl at once, put her in a dress, give her a handbag in her hand, make a catwalk background and make a video of her walking down the catwalk.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NF7uCgqjTcmPD7gx32YnNg.gif" /><figcaption>Multiple actions in a row through the chat interface</figcaption></figure><h4>Aaaaand we can return the same image if you need it 😏</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVtCfXEBwuAM8GrpJz9Cwg.gif" /><figcaption>“Return the same image‘</figcaption></figure><p><a href="http://flymy.ai/">FlyMy.AI</a> is your gateway to next-generation media creation. Dive in, innovate, and redefine the possible!</p><h3>Features for Developers</h3><p>FlyMy.AI is a platform designed specifically for developers. The Chat and Agent are just interfaces — entry points to the platform’s full capabilities. With Chat, developers can instantly test models, compare outputs, and select the right tools to build powerful, custom pipelines.</p><h4>Here are a few examples of what’s possible:</h4><h4><strong>Chat Interface Powered by Agent M1</strong>:</h4><p>A seamless chat layer on top of Agent M1 — giving you access to dozens of high-performance models and hundreds of use cases under the hood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEiyBRI0UcvFUl1ZmdmLrw.png" /></figure><h4><strong>Test, Compare, Integrate:</strong></h4><p>Generate outputs directly in the chat and see exactly which model was used. Instantly switch between models to compare results — or plug them into your stack via API for seamless integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j3KZZ7w7rWQQDm-G3qbT9g.png" /></figure><h4><strong>One-Click API Integration:</strong></h4><p>Copy ready-to-use Python snippets and drop them straight into your app — no setup, no friction, just fast integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ta9tu6206Wg1x33Wp8N_mA.png" /></figure><h4><strong>Customize Your AI:</strong></h4><p>Fine-tune directly on the FlyMy.AI platform. Train your own LoRAs and adapters to tailor models to your needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzh7nuiBUiOXXeWmUnZ_XA.png" /></figure><h4>Build on top:<br>Use M1 as a plug-and-play agent — or fork our SDKs to create your own fully custom agentic stack.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sL_aIO-dj8tZGgw75bQVxw.png" /></figure><h3><strong>Results:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FLUFhqcfs6RKAdSvt_15w.png" /></figure><p>FlyMy.AI Agent M1 is the leading multimodal AI agent built on open-weight models, surpassing competitors in image generation quality (GenEval), face-preserving editing (Face ID Similarity), and advanced video generation. While OpenAI Image 1 leads in semantic alignment (WISE) and editing accuracy (GEdit-Bench), it lacks support for video, reliable identity preservation, facial expression control, and other key features. M1 stands out as the most well-rounded, transparent, and developer-friendly solution — delivering unmatched flexibility, performance, and control across the stack.</p><p>👉 <strong>Start now at</strong> <a href="http://chat.flymy.ai/">chat.flymy.ai</a> (Beta)</p><p>#FlyMyAI #FlyMyChat #GenAI #OpenSource #AgentiCloud #MediaDev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6754c446e493" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flymy-ai/flymy-ai-media-agent-1-next-level-genai-tools-for-developers-6754c446e493">FlyMy.AI Media Agent 1 — Next-Level GenAI Tools for Developers</a> was originally published in <a href="https://medium.com/flymy-ai">FlyMy.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Outperform PyTorch Kernels with OpenAI’s Triton Compiler]]></title>
            <link>https://medium.com/flymy-ai/how-to-outperform-pytorch-kernels-with-openais-triton-compiler-ba2babce8cc5?source=rss-85e81e04ba44------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba2babce8cc5</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[diffusion-models]]></category>
            <category><![CDATA[triton]]></category>
            <category><![CDATA[cuda]]></category>
            <dc:creator><![CDATA[Denis Timonin]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 01:38:41 GMT</pubDate>
            <atom:updated>2025-02-12T01:27:12.895Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>By FlyMy.AI team: Mateus, Denis| 01/11/2024</blockquote><p>At FlyMy.AI, we’re building the fastest Compound AI platform, delivering unparalleled inference speed for all types of neural networks and AI applications. We take pride in our in-depth system implementation, optimizing every component from SIMD kernels to distillation techniques and protocols. This relentless focus on optimization is how we achieved the <a href="http://flymy.ai/">world’s fastest real-time demo of Diffusion </a><a href="http://flymy.ai/">NN</a> , maintaining high image quality without compromising on FPS</p><p>For some parts in our system we use Triton, a language and compiler developed by OpenAI, aims to provide better performance than CUDA while using a higher-level language. This allows us to rewrite certain neural network algorithms in Triton, outperforming those in popular Python libraries like PyTorch — while still writing in Python.</p><p>In this post, we’ll demonstrate how well-known kernels can be implemented in Triton, showcasing its significant performance improvements. Specifically, we’ll focus on a kernel related to input normalization — <strong>Group Normalization</strong>.</p><h3>1. Types of Normalization Techniques</h3><p>Normalization techniques are essential in AI because they stabilize and accelerate training by ensuring that inputs to each layer are on a consistent scale, making learning more efficient. In Generative AI (GenAI), these techniques are critical for producing high-quality, realistic outputs. They maintain balance in the data, preventing issues like exploding or vanishing gradients, which can hinder model performance.</p><p><strong>Batch Normalization</strong> has been the most used algorithm for normalizing layers in deep learning models for quite a while now. It consists of normalizing the channels by using the mean and variance over all batches, however efficiency is diminished if the amount of batches isn’t large<br>enough (usually at least 32). After the mean and variance of a specific channel are computed, the channel is normalized, then scaled and shifted accordingly..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/0*zGg-nFSC86wMmkhJ.png" /></figure><p><strong>Layer Normalization</strong> does the same thing, however over all channels of a specific batch. <br><strong>Instance Normalization</strong>, on the other hand, performs the calculations only over a channel in a batch. <br><strong>Group Normalization</strong> is a mid-term between these methods, in which the calculations are performed over a group of channels of a specific batch; this amount of channels in which the algorithm runs through has to be divisible by the amount of channels in total. The following image describes the relations between each method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*w1f7TzeqDio9SsrnJzl5PQ.png" /><figcaption>Image 1: the most popular normalization techniques in AI</figcaption></figure><h3><strong>2. Group Normalization in GenerativeAI</strong></h3><p>Batch Normalization is a widely used technique known for delivering high-quality results, but Group Normalization (GN) is particularly important in Generative AI and diffusion models. GN enhances the stability and quality of neural networks during training and overcomes the limitations of BatchNorm, which can be problematic in image generation processes.</p><p>Specifically:</p><ul><li><strong><em>Batch Size Independence</em></strong>: GroupNorm works well with any batch size, making it ideal for tasks with small or variable batches, such as diffusion models.</li><li><strong><em>Consistent Stability</em></strong>: GroupNorm offers more reliable stability across different tasks and architectures, and it generalizes better in non-i.i.d. settings, such as when data distribution varies across batches that may not be from the same source.</li><li><strong><em>No Running Statistics</em></strong>: Unlike BatchNorm, GroupNorm doesn’t require running statistics, simplifying the inference process.</li></ul><h3>3. Step by Step of the Algorithm</h3><p>We’re going to follow using an example of a tensor, whose batch size is 2, with each batch consisting of 4 channels, height 2 and width 2. As such, the example has the shape (N, C, H, W) = (2, 4, 2, 2)<br>And also, let’s define the following tensors as the weights (also known as gamma) and the bias (also known as beta). These two tensors must have the same length as the amount of channels in the input tensor, as they are applied independently for each channel.</p><pre>γ = [0.2963, −0.9232, 1.4572, −1.0557]<br>β = [0.0984, 1.2018, −1.0154, 0.0261]</pre><p>Finally, we define what’s the amount of groups that we’re going to work with. This value needs to be a divisor of the number of channels of the input, and so for this case we must choose between 1, 2 and 4. If we choose 1, we’re pretty much doing the same as layer normalization, and if we<br>choose 4, it’s going to be the same as instance normalization. To demonstrate the middle-ground that is group normalization, I’m going to choose 2 for this example.<br>Therefore, the code using the builtin group normalization function from PyTorch should look something like this:</p><pre><br>import torch<br><br>a = torch.tensor(<br>    [[[[0.0127, 0.6262], [-0.3884, -0.9077]],<br>      [[-0.5615, -0.4755], [-1.2070, 0.2371]],<br>      [[1.2504, 0.0138], [-0.5010, 0.3860]],<br>      [[-0.2113, 0.8218], [-0.4039, 1.7963]]],<br><br>     [[[0.6527, 1.4151], [-0.3092, -0.4007]],<br>      [[0.4586, -1.1754], [-0.3117, -0.9210]],<br>      [[-2.5762, 0.6758], [0.4550, 0.1805]],<br>      [[-0.3143, -0.8534], [0.8388, 0.7529]]]],<br>    device=&#39;cuda&#39;<br>)<br><br>groups = 2<br>gamma = torch.tensor([0.2963, -0.9232, 1.4572, -1.0557], device=&#39;cuda&#39;)<br>beta = torch.tensor([0.0984, 1.2018, -1.0154, 0.0261], device=&#39;cuda&#39;)<br><br>res = torch.nn.functional.group_norm(a, groups, gamma, beta, 1e-5)</pre><p>As such, let’s calculate the value of the element (0, 0, 0, 0) (remembering that the tensor is 0-indexed), by doing the following:</p><ul><li>First of all, let’s calculate the mean. Since we’re working with element (0, 0, 0, 0), then we must calculate the mean and variance of the first group of the first channel of the first batch. By looking at the example, we can see that we’ll be working with the following values: <br><em>0.0127, 0.6262, −0.3884, −0.9077, −0.5615, −0.4755, −1.2070, 0.2371</em><br>In the formula below <em>xi</em> are the elements and <em>n</em> is the amount of elements. In this case, the mean is <em>µ</em> = −0.3330125</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/105/1*WILZTVuvXtDdYfiktHAjrQ.png" /></figure><ul><li>Then we need to calculate the variance, which is simply the average of the square difference to the mean. We find that <em>σ2</em> = 0.31679136</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*_vVQ4ip8UcCIQP-_k5VESQ.png" /></figure><ul><li>Now, we’re able to find out the new value of <em>xi. U</em>sually we use that ϵ = 10−5, and so for our first element, we find out that <em>ˆxi </em>= 0.6142166:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*Ag-AAjmLbzi4EXIUxcpoxQ.png" /></figure><ul><li>Now we can’t forget about the gammas and the betas. <em>γ</em> is the gamma value associated to that channel, and β is also the one associated to that channel. Since we’re working with the first channel, we see that γ = 0.2963 and β = 0.0984. Plugging back in, we find that yi = 0.280392:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/1*TEx_EnmzJeO3J9OFzbV9Cw.png" /></figure><h3>4. Triton Implementation</h3><p>First of all, the implementation of the algorithm will vary depending on how the tensor is configured in memory. This depends on whether or not the format is in channels last or not; for a better understanding <a href="https://pytorch.org/tutorials/intermediate/memory_format_tutorial.html">check out here</a>. For simplicity reasons, we’re going to work as if the input tensor is<br>in classic contiguous storage, however the difference to the other one is how we will iterate through the memory.</p><h4>4.1 Welford Combine</h4><p>Loading everything into GPU memory for calculations isn’t efficient, especially when working with large datasets. Some algorithms calculate variance in an online manner, meaning you don’t need the entire dataset at once. This is useful because, for each group where we calculate the mean and variance, dividing it into smaller blocks is faster than processing everything at once.</p><p>The Welford Combine algorithm is straightforward. It works by storing the running mean and the running squared difference from the mean, similar to the naive method. Here’s how it can be understood:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xm1NhXS1zPw9tDK0Q6Q0mQ.png" /></figure><p>Of course, implementing this linearly would be a bit costly, as you’d have to apply the algorithm having a separate function call for every element, so what we can do is do a bunch at the same time (size being the block size that we’re going to work with) and at the end combine them all by using the function triton.language.reduce. The Welford Combine should then look something like this:</p><pre>@triton.jit<br>def welford_combine(mean1, m21, weight1, mean2, m22, weight2):<br>    delta = mean2 - mean1<br>    new_weight = weight1 + weight2<br>    w2_over_w = tl.where(new_weight == 0.0, 0.0, weight2/new_weight)<br>    return (<br>        mean1 + delta * w2_over_w,<br>        m21 + m22 + delta * delta * weight1 * w2_over_w,<br>        new_weight,<br>    )</pre><h4>4.2 Implementing the Initial Function Call</h4><p>For this part, we’re going to use the same example as in the end of section 2, but instead of calling the function from torch, we’re going to create our own group norm function. The initial call is easy to handle, as you only need to work on checking some conditions.</p><pre>import triton<br>import triton.language as tl<br>from torch.prims_common import suggest_memory_format<br><br>def group_norm(input, groups, gamma, beta, eps):<br>    assert input.is_cuda and gamma.is_cuda and beta.is_cuda<br>    N, C, H, W = input.shape<br>    assert C % groups == 0<br>    assert gamma.shape == (C,)<br>    assert beta.shape == (C,)<br>    assert suggest_memory_format(input) != torch.channels_last<br>    input = input.contiguous()<br>    output = torch.empty_like(input)<br><br>    def grid(meta):<br>        return (groups, N)<br>    <br>    group_norm_kernel[grid](input, gamma, beta, output, N, C, H * W, groups, eps)<br>    return output</pre><p>Our grid function determines how the parallelization of the kernel will work, together with meta-parameters.</p><h4>4.3 Implementing the Kernel</h4><p>Now we get to the harder part of the implementation; our parallelization will occur in two axes: one with the amount of groups and the other with the amount of batches. Let’s look at some constants that will vary depending on the parameters:</p><ul><li><strong><em>BLOCK_SIZE</em></strong>: For the block size, it is good to get the next power of two of the amount of values in the matrix (that being H ∗ W ). However depending on the matrix it can get very large, so the value should be at max around 212.</li><li><strong><em>num_warps</em></strong>: The number of warps will be directly related to the amount of kernel instances that’ll be created. It is a good idea to use a value that isn’t greater than 16; a good estimate is the amount of elements in the matrix divided by 27.</li><li><strong><em>C_G</em></strong>: Simply the amount of channels that we’re going to work with in each group.</li><li><strong><em>GROUP_SIZE</em></strong>: The amount of elements that we’re going to work with in each group. Now, to implement the kernel, we only need to think about pointer arithmetic in order to not lose track of what we’re looking at. Our kernel should look something like this:</li></ul><pre>@eval(&#39;&#39;&#39;<br>triton.heuristics({<br>    &#39;BLOCK_SIZE&#39;: lambda kwargs: min(4096, triton.nextpowerof2(kwargs[&#39;HW&#39;])),<br>})<br>&#39;&#39;&#39;)<br>@eval(&#39;&#39;&#39;<br>triton.heuristics({<br>    &#39;num_warps&#39;: lambda kwargs: max(1, min(16, triton.nextpowerof2(kwargs[&#39;HW&#39;] // kwargs[&#39;C&#39;] // kwargs[&#39;groups&#39;]))),<br>    &#39;CG&#39;: lambda kwargs: kwargs[&#39;C&#39;] // kwargs[&#39;groups&#39;],<br>    &#39;GROUP_SIZE&#39;: lambda kwargs: kwargs[&#39;C&#39;] // kwargs[&#39;groups&#39;] * kwargs[&#39;HW&#39;],<br>})<br>&#39;&#39;&#39;)<br>@triton.jit<br>def groupnorm_kernel(<br>    input_ptr,<br>    gamma_ptr,<br>    beta_ptr,<br>    output_ptr,<br>    N,<br>    C,<br>    HW,<br>    groups,<br>    eps,<br>    CG,<br>    GROUP_SIZE,<br>    BLOCK_SIZE: tl.constexpr,<br>):<br>    group = tl.program_id(0)<br>    pid_batch = tl.program_id(1)<br>    offset = pid_batch * C * HW + group * GROUP_SIZE<br>    input_offset = input_ptr + offset<br>    output_offset = output_ptr + offset<br><br>    mean = tl.zeros((BLOCK_SIZE,), dtype=tl.float32)<br>    m2 = tl.zeros((BLOCK_SIZE,), dtype=tl.float32)<br>    weight = tl.zeros((BLOCK_SIZE,), dtype=tl.float32)<br><br>    for off in range(0, GROUP_SIZE, BLOCK_SIZE):<br>        r = off + tl.arange(0, BLOCK_SIZE)<br>        x = tl.load(input_offset + r, mask=r &lt; GROUP_SIZE).to(tl.float32)<br>        m2 = tl.zeros((BLOCK_SIZE,), dtype=tl.float32)<br>        weight = (r &lt; GROUP_SIZE).to(tl.float32)<br>        mean, m2, weight = welford_combine(mean, m2, weight, x, m2, weight)<br><br>    mean, m2, weight = tl.reduce((mean, m2, weight), 0, welford_combine)<br>    var = m2 / weight<br>    rstd = 1.0 / tl.sqrt(var + eps)<br><br>    for c in range(0, CG):<br>        gamma = tl.load(gamma_ptr + group * CG + c).to(tl.float32)<br>        beta = tl.load(beta_ptr + group * CG + c).to(tl.float32)<br>        a = rstd * gamma<br>        b = beta - a * mean<br><br>        for off in range(0, HW, BLOCK_SIZE):<br>            r = off + tl.arange(0, BLOCK_SIZE)<br>            x = tl.load(input_offset + c * HW + r, mask=r &lt; HW).to(tl.float32)<br>            x = a * x + b<br>            tl.store(output_offset + c * HW + r, x, mask=r &lt; HW)</pre><h4>4.4 Fusing Activation Functions</h4><p>If necessary, an activation function can be fused into the kernel. To prevent further function calls and to already use what’s loaded onto the GPU memory, it is possible to use an activation function right before storing the results. The following example will show how the last three lines of code need to be from the example above when using <strong>GELU</strong>:</p><pre>x = a * x + b<br>x = 0.5 * x * (1.0 + tl.tanh(0.7978845608028654 * (x + 0.044715 * x * x * x)))<br>tl.store(output_offset + c * HW + r, x, mask=r &lt; HW)</pre><h3>5. Results</h3><p>We ran the code using Triton 3.0.0 and Torch 2.4.0. The benchmark consists of a randomly generated tensor with dimensions (1, 32, X, X), where X had the range (64, 96, . . . , 2240). Using 8 groups and having the values of gamma and beta being randomly generated. This ran on a<br>machine with an Nvidia A100.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65PlZgC6zzecbTaoAwEgEQ.png" /></figure><h3>6. Concluding Thoughts</h3><p>As seen in the graph, Triton kernels work up to 2.5x faster, and difference in performance increases with tensor size. It may seem that implementing kernels in Triton is relatively simple, but this is not the case for some other algorithms. For instance, Triton doesn’t allow access to specific indices during calculations, making it difficult to implement more complex algorithms, such as the Fast Fourier Transform, correctly. As a result, when implementing other kernels, such as Convolution, the performance may be worse than that of the PyTorch library, depending on the input size.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba2babce8cc5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flymy-ai/how-to-outperform-pytorch-kernels-with-openais-triton-compiler-ba2babce8cc5">How to Outperform PyTorch Kernels with OpenAI’s Triton Compiler</a> was originally published in <a href="https://medium.com/flymy-ai">FlyMy.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Review of NeurIPS 2020: Top papers that caught my attention]]></title>
            <link>https://denistimonin.medium.com/review-of-neurips-2020-top-papers-that-caught-my-attention-1bda1ede3ca6?source=rss-85e81e04ba44------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bda1ede3ca6</guid>
            <dc:creator><![CDATA[Denis Timonin]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 11:10:49 GMT</pubDate>
            <atom:updated>2021-01-18T21:12:30.524Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a list of papers and talks from Neurlips 2020 that caught my attention more than others. I combined talks and presentations of different types like Fundamental ML Research, Applied Research, and ML applications. So this blogpost will be interesting to anyone passionate about ML.</p><p>Some links that I provided are not available if you don’t have access to the NeurIPS 2020 content. However, organizers promised that all conference content will become free to the public in late January. So links will be updated soon.</p><p><strong>1. GAN applications in fashion article design and outfit rendering</strong>|<strong> </strong>Zalando</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LM0XrzZGu32hkBLYdsIVvg.jpeg" /><figcaption>Dress generated from multiple input sources (<a href="https://twitter.com/gok_yildirim/status/1335615095326511108">Source</a>)</figcaption></figure><p>Zalando is performing research on neural networks to process outfits and generate new versions of outfit and new looks to improve customers’ experience. They are implementing <strong>Fashion Search by Picture</strong> that will allow users to upload pictures of the outfit they are actually looking for and find a similar product. <br>But what if a customer doesn’t have pictures of what they would like to buy? To solve this problem, Zalando is using GAN networks. <br>They are developing StyleGAN-similar-generator that allows them to create some unique/previously unseen outfits. This generator allows to upload a couple of article pictures and create a new item image by merging the styles from the examples. By doing so, customers can try different combinations until they find what they actually need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRP-WRQVDM5h854BdK-qXQ.png" /><figcaption>the image of a fashion model in the last column was generated by using a set of articles and a body pose as input (<a href="https://research.zalando.com/welcome/mission/research-projects/fashion-renderer/">Source</a>)</figcaption></figure><p>Another big thing is the <strong>Fashion Render</strong>. This is a tool based on GANs that takes multiple articles of different classes (shoes, trousers, t-shirt) and projects them all onto a model to get pictures of the human wearing all these outfits.</p><p>Results are quite good, and the dataset that was used for this research is publicly available (<a href="https://github.com/kang205/STL-Dataset">STL-Dataset</a>). So this is a good sphere for experiments and creating something new and useful.</p><p><em>Here are the links to the </em><a href="https://medium.com/r?url=https%3A%2F%2Fneurips.cc%2FExpoConferences%2F2020%2Fdemonstration%2F21320"><em>presentation from NeurIPS 2020</em></a><em> and the </em><a href="https://arxiv.org/pdf/1908.08847.pdf"><em>paper</em></a></p><p><strong>2. Training Generative Adversarial Networks with Limited Data </strong>|<strong> </strong>NVIDIA</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1MtK_ieSgF8oj3zvDpY1Q.png" /><figcaption>Adaptive discriminator augmentation mechanism. Augmented data prevents overfitting of the discriminator in the early stages. (<a href="https://github.com/NVlabs/stylegan2-ada">Source</a>)</figcaption></figure><p>GANs highlighted by me in the previous paragraph, like many other GANs, require a lot of training data. The need for a big dataset leads to higher costs and a longer time of the experiment. To handle this problem, researchers from NVIDIA led by Terro Karras created a new approach that allows to train GANs successfully with a much lower amount of data.<br>Using too little data typically leads to discriminator overfitting, causing training to diverge. So the NVIDIA team proposed an adaptive discriminator augmentation mechanism that significantly stabilizes training in limited data regimes. The approach does not require changes to loss functions or network architectures, and code almost looks the same, therefore it can be used in your existing StyleGANv2 projects. It is applicable both for training from scratch and fine-tuning an existing GAN on another dataset.</p><p><em>Here are the links to the </em><a href="https://arxiv.org/pdf/2006.06676.pdf"><em>paper</em></a><em> and the </em><a href="https://github.com/NVlabs/stylegan2-ada"><em>code</em></a></p><p><strong>3. AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradients | </strong>Yale University; University of Illinois at Urbana-Champaign; University of Central Florida</p><p>New optimizer that adapts stepsize according to the “belief” in gradient changes. Best speed and accuracy in many cases, especially for GANs.</p><p>Some details from the paper: For many models such as convolutional neural networks (CNNs), adaptive methods typically converge faster but generalize worse compared to SGD; for complex settings such as generative adversarial networks (GANs), adaptive methods are typically the default because of their stability. We propose AdaBelief to simultaneously achieve three goals: fast convergence as in adaptive methods, good generalization as in SGD, and training stability. The intuition for AdaBelief is to adapt the stepsize according to the “belief” in the current gradient direction. Viewing the exponential moving average (EMA) of the noisy gradient as the prediction of the gradient at the next time step, if the observed gradient greatly deviates from the prediction, we distrust the current observation and take a small step; if the observed gradient is close to the prediction, we trust it and take a large step. We validate AdaBelief in extensive experiments, showing that it outperforms other methods with fast convergence and high accuracy on image classification and language modeling. Specifically, on ImageNet, AdaBelief achieves comparable accuracy to SGD. Furthermore, in the training of a GAN on Cifar10, AdaBelief demonstrates high stability and improves the quality of generated samples compared to a well-tuned Adam optimizer.</p><p><em>Here are the links to the </em><a href="https://arxiv.org/abs/2010.07468"><em>paper </em></a><em>and the </em><a href="https://github.com/juntang-zhuang/Adabelief-Optimizer"><em>code</em></a></p><p><strong>4. RelationNet++: Bridging Visual Representations for Object Detection via Transformer Decoder | </strong>Institute of Automation, CAS and Microsoft Research Asia</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omhQ5fafQkVmFCUw909dXA.png" /><figcaption><a href="https://arxiv.org/pdf/2010.15831.pdf">Source</a></figcaption></figure><p>Mask-RCNN is the neural network with a multi-staged design, and it is performing a refinement of detections/masks/predictions in multiple steps. Multiple steps of refinement, as a result, gives higher accuracy in comparison with one-staged solutions (Yolo, SSD, and others).<br>Creators of the RelationNet++<strong> </strong>approach found a way to add Transformer NN to the end of any detection models (Faster-RCNN/RetinaNet/FCOS/CornerNET). This Transformer block acts somehow like a refinement module that gives higher accuracy to any detection neural networks.</p><p><em>Here is the link to the </em><a href="https://arxiv.org/abs/2010.15831"><em>paper</em></a></p><p><strong>5. A Ranking-based, Balanced Loss Function Unifying Classification and Localisation in Object Detection </strong>|<strong> </strong>Dept. of Computer Engineering, Middle East Technical University Ankara, Turkey</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPMMV_Z_ZNSbf7Q8pofEnQ.png" /><figcaption>aLRP loss for Object Detection (<a href="https://arxiv.org/pdf/2009.13592.pdf">Source</a>)</figcaption></figure><p>Localisation-Recall-Precision (aLRP) is a unified, bounded, balanced, and ranking-based loss function for both classification and localization tasks in object detection. aLRP extends the Localisation-Recall-Precision (LRP) performance metric inspired from how Average Precision (AP) Loss extends precision to a ranking-based loss function for classification. aLRP has the following distinct advantages: (i) aLRP is the ranking-based loss function for both classification and localization tasks. (ii) aLRP naturally enforces high-quality localization for high-precision classification. (iii) aLRP provides a provable balance between positives and negatives. (iv) Compared to, on average ∼6 hyperparameters in the loss functions of state-of-the-art detectors, aLRP Loss has only one hyperparameter, which we did not tune in practice. On the COCO dataset, aLRP Loss improves its ranking-based predecessor, AP Loss, up to around 5 AP points, achieves 48.9 AP without test time augmentation, and outperforms all one-stage detectors.</p><p><em>Here are the links to the </em><a href="https://arxiv.org/pdf/2009.13592.pdf"><em>paper</em></a><em> and the c</em><a href="https://github.com/kemaloksuz/aLRPLoss"><em>ode</em></a></p><p><strong>6. Automatic generation of movie thumbnails and trailers</strong>|Machine Learning at NETFLIX</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voRBH6V0o7dVNAB89CPiXQ.png" /><figcaption>Frames that were selected by an ensemble of NNs as good thumbnails candidates. (<a href="https://becominghuman.ai/how-netflix-uses-ai-and-machine-learning-a087614630fe">Source</a>)</figcaption></figure><p>NETFLIX team created several Neural Networks and algorithms for automatic thumbnails generation and ArtWork generation from videos. Algorithms include Character Recognition, Object Detection, Face Recognition, Scene Understanding, Aesthetic analysis. Having multiple thumbnails for each TVShow/Movie allows them to show a personalized version of it for each customer and maximize audience interest.</p><p>This is how pipeline goes: NETFLIX scans through the movie, detects faces and facial expressions, and analyzes aesthetics of each frame. After that, they create a connected graph of the characters that allows them to grasp the movie&#39;s main characters (the most frequently connected persons are the main heroes) and select the best frames that contain these characters. <a href="https://slideslive.com/38943223/computer-vision-at-netflix-an-overview-of-creative-algorithms-engineering">Link on the presentation</a></p><p>They also use a certain set of algorithms to automatically select movie episodes applicable for generation movie trailers.</p><p><em>Here is the link to the </em><a href="https://www.ecva.net/papers/eccv_2020/papers_ECCV/papers/123630290.pdf"><em>paper</em></a></p><p><strong>7. Slate Bandit Learning &amp; Evaluation</strong>|Machine Learning at NETFLIX</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G8P3QgA4BqNjoTdbnlZWxg.png" /><figcaption><a href="https://slideslive.com/38930853/slate-bandit-learning-evaluation">Source</a></figcaption></figure><p>NETFLIX’s talk is about applying Reinforcement Learning and Bandits to the marketing problem of the designing email interfaces. This approach can be applied to any other tasks when some application has UI (User Interface) slots that need to be filled in with different buttons or functional regions that require actions from users. <br>Using different Reinforcement Learning techniques, we can find an optimal combination of the UI elements for clusters of the users to maximize their engagement.<br>NETFLIX described one of their tasks of such type and proposed a solution for it.</p><p><em>Here is the link to the </em><a href="https://slideslive.com/38943512/slate-bandit-learning-evaluation"><em>talk</em></a></p><p><strong>8. Autoencoders for Recommender Systems </strong>|<strong> </strong>Machine Learning at NETFLIX</p><p>Recommender systems are one of the core technologies in NETFLIX. Autoencoders may be one of the tools that allow to catch important features from the user’s behavior and to use them for recommendations. NETFLIX described how they changed the training pipeline to force autoencoders to act in an Attention-style manner in their talk. They dropped some input data features in training time to force autoencoder to predict dropped features based on their neighbors. This technique + new regularization improved accuracy of their RecSys.</p><p><em>Here is the link to the </em><a href="https://proceedings.neurips.cc/paper/2020/file/e33d974aae13e4d877477d51d8bafdc4-Paper.pdf"><em>paper</em></a></p><p><strong>9. Reference-Based Video Colorization with Spatiotemporal Correspondence </strong>|<strong> </strong>SONY Research</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XLdkZ1LjkEgce2uy0TkV9Q.png" /><figcaption><a href="https://arxiv.org/pdf/2011.12528.pdf">Source</a></figcaption></figure><p>SONY proposed a novel reference-based video colorization framework with spatiotemporal correspondence. Reference-based methods colorize grayscale frames referencing a user input color frame. Previously released methods suffer from the color leakage between objects and the emergence of average colors, derived from non-local semantic correspondence in space. To address this issue, SONY warp colors only from the regions on the reference frame restricted by correspondence in time. They propagate masks as temporal correspondences, using two complementary tracking approaches: off-the-shelf instance tracking for high-performance segmentation and newly proposed dense tracking to track various types of objects. <br>As a result, their approach propagates faithful colors throughout the video and outperforms state-of-the-art methods quantitatively and qualitatively.</p><p><em>Here is the link to the </em><a href="https://arxiv.org/pdf/2011.12528.pdf"><em>paper</em></a></p><p><strong>10. Learning to Detect Objects with a 1 Megapixel Event Camera </strong>| PROPHESEE and NNAISENSE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1inMvtjJsYFrJ7lQqRLyeg.png" /><figcaption>The output of the event camera with detected objects (<a href="https://arxiv.org/pdf/2009.13436.pdf">Source</a>)</figcaption></figure><p>Event cameras encode visual information with high temporal precision, low datarate, and high-dynamic range. Thanks to these characteristics, event cameras are particularly suited for scenarios with high motion, challenging lighting conditions, and requiring low latency. However, due to the novelty of the field, the performance of event-based systems on many vision tasks is still lower compared to conventional frame-based solutions. The main reasons for this performance gap are the lower spatial resolution of event sensors compared to frame cameras; the lack of largescale training datasets; the absence of well established deep learning architectures for event-based processing. In this paper, researchers addressed all these problems in the context of an event-based object detection task. First, they publicly released the first high-resolution large-scale dataset for object detection. The dataset contains more than 14 hours recordings of a 1 megapixel event camera, in automotive scenarios, together with 25M bounding boxes of cars, pedestrians, and two-wheelers, labeled at high frequency. Second, they introduced a novel recurrent architecture for eventbased detection and a temporal consistency loss for better-behaved training. The ability to compactly represent the sequence of events into the internal memory of the model is essential to achieve high accuracy. Their model outperforms by a large margin feed-forward event-based architectures.</p><p><em>Here is the link to the </em><a href="https://arxiv.org/pdf/2009.13436.pdf"><em>paper</em></a></p><p><strong>11. Kernel Based Progressive Distillation for Adder Neural Networks </strong>|<strong> </strong>HUAWEI and others</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMBHf_CZdyFtvP6_2a-SYw.png" /><figcaption><a href="https://arxiv.org/pdf/1912.13200.pdf">AdderNet: Do We Really Need Multiplications in Deep Learning?</a> (<a href="https://arxiv.org/pdf/1912.13200.pdf">Source</a>)</figcaption></figure><p>This is the series of 2 papers: <br>In the first paper (<a href="https://arxiv.org/pdf/1912.13200.pdf">AdderNet: Do We Really Need Multiplications in Deep Learning?</a>) presented on CVPR 2020, researchers proposed to replace cross-correlation (multiplications) with l1-distance (additions)in convolution layers. And to achieve a better performance, they develop a special back-propagation approach for AdderNets by investigating the full-precision gradient. As a result, the proposed AdderNets can achieve 74.9% Top-1 accuracy 91.7% Top-5 accuracy using ResNet-50 on the ImageNet dataset without any multiplication in convolution layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xr4r0OCpwxlRF7DiK0_wjA.png" /><figcaption><a href="https://arxiv.org/pdf/2009.13044.pdf">Kernel Based Progressive Distillation for Adder Neural Networks</a> (<a href="https://arxiv.org/pdf/2009.13044.pdf">Source</a>)</figcaption></figure><p>The second paper (<a href="https://arxiv.org/pdf/2009.13044.pdf">Kernel Based Progressive Distillation for Adder Neural Networks</a>) was presented on NeurIPS 2020. In this paper, researchers improved training pipeline to reduce accuracy drop in AdderNets. The main idea is: “If backprop through L1 gives us some inaccurate results, let’s train 2 similar neural networks together, but one of them will be regular Conv NN. We distill some useful characteristics from Conv filters into Addr filters”. A convolutional neural network (CNN) with the same architecture is simultaneously initialized and trained as a teacher network. Features and weights of ANN and CNN will be transformed into a new space to eliminate the accuracy drop. This technique is quite complex in training, but it works, and accuracy drop disappeared.</p><p><strong>12. Compositional Explanations of Neurons </strong>| Stanford</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZW2bEQ97M6myEq_jBavqKw.png" /><figcaption><a href="https://papers.nips.cc/paper/2020/file/c74956ffb38ba48ed6ce977af6727275-Paper.pdf">Source</a></figcaption></figure><p>A fascinating paper from the domain of explainability of Neural Networks. <br>The main task of the paper is to explain what neurons have learned in human-understandable terms. <br>Neurons are not just simple feature detectors, but razer operationalize complex decision rules composed of multiple concepts. Each neuron can fire on multiple image/NLP domains and features.<br>Researchers given a set of inputs (a) and scalar neuron activations (b) converted into binary masks (c), generate an explanation via beam search, starting with an inventory of primitive concepts (d), then incrementally building up more complex logical forms (e). They attempt to maximize the IoU score of an explanation (f); depicted is the IoU of M483(x) and (water OR river) AND NOT blue.</p><p><em>Here is the link to the </em><a href="https://papers.nips.cc/paper/2020/file/c74956ffb38ba48ed6ce977af6727275-Paper.pdf"><em>paper</em></a></p><p><strong>13.</strong> <strong>Shared Interest: Human Annotations vs. AI Saliency </strong>| MIT</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwkZMmoWohp1gKNY1M2ntg.png" /><figcaption>IoU between saliency map and object of interests shows how good our model is. (<a href="http://shared-interest.csail.mit.edu/client/index-distill.html">Source</a>)</figcaption></figure><p>Researchers from MIT developed a tool that helps understand how our detection/segmentation models make their predictions and where mistakes come from. It compares mIoU between segmentation masks/bboxes and saliency maps of the model (LIME technique was used in example) to sort cases where the model looks in the wrong direction. Having understood that, we can think about how our dataset needs to be changed, expanded, or augmented.</p><p><em>Here is the link to the </em><a href="http://shared-interest.csail.mit.edu/client/index-distill.html"><em>paper and the code</em></a></p><p><strong>14. RetaiL: Open your own grocery store to reduce waste </strong>| Universiteit van Amsterdam</p><p>OpenAI’s Gym is a quite popular toolkit for developing and comparing reinforcement learning algorithms. While OpenAI’s gym is focused on games out-of-the-box, researchers from the University of Amsterdam created a new toolkit that simulates the grocery store. <br>Food waste is a major societal, environmental, and financial problem. One of the main actors are grocery stores. This is why the authors propose RetaiL, a new simulation framework (like the gym), to optimize grocery store restocking for waste reduction. RetaiL offers its users the possibility to create synthetic product data, based on real data from a European retailer. It then matches simulated customer demand to a restocking policy for those items, and evaluates a utility function based on generated waste, item availability to customers and sales. This allows RetaiL to function as a new Reinforcement Learning Task, where the agent has to act on restocking level given the state of the store, and receives this utility function as a reward.</p><p><em>Here is the link to </em><a href="https://github.com/samijullien/airlab-retail"><em>the code</em></a></p><p><strong>15. tspDB: Time Series Predict DB </strong>| MIT</p><p>An important goal in Systems for ML is to make ML broadly accessible. Arguably, the major bottleneck is not the lack of access to prediction algorithms. Rather, it is the complex data engineering required to take data from a datastore or database (DB) into a particular work environment format (e.g. spark data-frame) so that a prediction algorithm can be trained.</p><p>Towards easing this bottleneck, researchers presented tspDB — a system that enables predictive query functionality in any existing time-series relational DB (open-source available at <a href="http://tspdb.mit.edu/">tspDB.mit.edu</a>). Specifically, tspDB enables two types of predictive queries for time series data: (i) imputing a missing/noisy observation for a data point we do observe; (ii) forecasting a data point in the future. In tspDB the ML workflow is entirely abstracted away from the user; instead a single interface to answer both a predictive query and a standard SQL SELECT query is exposed. Creators said that tspDB statistically outperforms industry standard deep-learning-based time series methods (e.g., DeepAR, LSTM’s) on benchmark time series datasets;</p><p><em>Here are the links to the </em><a href="https://tspdb.mit.edu/"><em>project</em></a><em> and the </em><a href="https://colab.research.google.com/drive/1yA3gMVB3XxKYgnSKx0O5dTWMElfX8J2S?usp=sharing"><em>colab notebook</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bda1ede3ca6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>