🐦 Twitter Post Details

Viewing enriched Twitter post

@RisingSayak

We're shipping an elaborate guide on how to profile diffusion pipelines in Diffusers to set them up for success with `torch.compile` 🔥 We devised a workflow with Claude & it turned out to be quite effective. It served its purpose well. With the help of the trace alone, we uncovered: 1. CPU <-> GPU syncs 2. CPU overheads 3. Kernel launch delays When we provided the profile trace and our observations from the trace to Claude, and helped us get rid of the issues, it did well. However, it did so iteratively. The process was intellectually fun and engaging!

Media 1

📊 Media Metadata

{
  "media": [
    {
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2040113851182583817/media_0.jpg",
      "media_url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2040113851182583817/media_0.jpg",
      "type": "photo",
      "filename": "media_0.jpg"
    }
  ],
  "processed_at": "2026-04-03T18:20:19.549311",
  "pipeline_version": "2.0"
}

🔧 Raw API Response

{
  "type": "tweet",
  "id": "2040113851182583817",
  "url": "https://x.com/RisingSayak/status/2040113851182583817",
  "twitterUrl": "https://twitter.com/RisingSayak/status/2040113851182583817",
  "text": "We're shipping an elaborate guide on how to profile diffusion pipelines in Diffusers to set them up for success with `torch.compile` 🔥\n\nWe devised a workflow with Claude & it turned out to be quite effective. It served its purpose well. With the help of the trace alone, we uncovered:\n\n1. CPU <-> GPU syncs\n2. CPU overheads\n3. Kernel launch delays\n\nWhen we provided the profile trace and our observations from the trace to Claude, and helped us get rid of the issues, it did well.\n\nHowever, it did so iteratively. The process was intellectually fun and engaging!",
  "source": "Twitter for iPhone",
  "retweetCount": 3,
  "replyCount": 4,
  "likeCount": 35,
  "quoteCount": 0,
  "viewCount": 1694,
  "createdAt": "Fri Apr 03 17:07:00 +0000 2026",
  "lang": "en",
  "bookmarkCount": 13,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "2040113851182583817",
  "displayTextRange": [
    0,
    277
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "RisingSayak",
    "url": "https://x.com/RisingSayak",
    "twitterUrl": "https://twitter.com/RisingSayak",
    "id": "593407733",
    "name": "Sayak Paul",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/1485518937404350464/DYrpvgPr_normal.jpg",
    "coverPicture": "https://pbs.twimg.com/profile_banners/593407733/1623139623",
    "description": "",
    "location": "Earth",
    "followers": 23367,
    "following": 125,
    "status": "",
    "canDm": false,
    "canMediaTag": true,
    "createdAt": "Tue May 29 05:54:18 +0000 2012",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 8779,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 1164,
    "statusesCount": 6720,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [
      "1941010150191685980"
    ],
    "profile_bio": {
      "description": "ML at Hugging Face 🤗",
      "entities": {
        "description": {
          "hashtags": [],
          "symbols": [],
          "urls": [],
          "user_mentions": []
        },
        "url": {
          "urls": [
            {
              "display_url": "sayak.dev",
              "expanded_url": "https://sayak.dev/",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/s3lLLzfGXS"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "allow_download_status": {
          "allow_download": true
        },
        "display_url": "pic.twitter.com/lNFIdjsiDv",
        "expanded_url": "https://twitter.com/RisingSayak/status/2040113851182583817/photo/1",
        "ext_media_availability": {
          "status": "Available"
        },
        "features": {
          "large": {
            "faces": []
          },
          "orig": {
            "faces": []
          }
        },
        "id_str": "2040113418569703424",
        "indices": [
          278,
          301
        ],
        "media_key": "3_2040113418569703424",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwAAQoAARxP8FhfWuAACgACHE/wvRkXkAkAAA==",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAABCgABHE/wWF9a4AAKAAIcT/C9GReQCQAA",
            "media_key": "3_2040113418569703424"
          }
        },
        "media_url_https": "https://pbs.twimg.com/media/HE_wWF9a4AAyLpy.jpg",
        "original_info": {
          "focus_rects": [
            {
              "h": 609,
              "w": 1088,
              "x": 0,
              "y": 49
            },
            {
              "h": 674,
              "w": 674,
              "x": 0,
              "y": 0
            },
            {
              "h": 674,
              "w": 591,
              "x": 0,
              "y": 0
            },
            {
              "h": 674,
              "w": 337,
              "x": 22,
              "y": 0
            },
            {
              "h": 674,
              "w": 1088,
              "x": 0,
              "y": 0
            }
          ],
          "height": 674,
          "width": 1088
        },
        "sizes": {
          "large": {
            "h": 674,
            "w": 1088
          }
        },
        "type": "photo",
        "url": "https://t.co/lNFIdjsiDv"
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "hashtags": [],
    "symbols": [],
    "urls": [],
    "user_mentions": []
  },
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "isLimitedReply": false,
  "communityInfo": null,
  "article": null
}