🐦 Twitter Post Details

Viewing enriched Twitter post

@johnowhitaker

If I paste the demo code from the HF model page, model.generate takes 12.5 s to generate 100 tokens on my 3090. Feels ~10X too slow for a 4B model! Is this just the state of hf's default generate vs optimized inference things or am I missing something obvious? https://t.co/s1wVNvmsOb

Media 1

📊 Media Metadata

{
  "media": [
    {
      "type": "photo",
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/1956418287551811713/media_0.jpg?",
      "filename": "media_0.jpg"
    }
  ],
  "processed_at": "2025-08-15T22:40:29.870225",
  "pipeline_version": "2.0"
}

🔧 Raw API Response

{
  "type": "tweet",
  "id": "1956418287551811713",
  "url": "https://x.com/johnowhitaker/status/1956418287551811713",
  "twitterUrl": "https://twitter.com/johnowhitaker/status/1956418287551811713",
  "text": "If I paste the demo code from the HF model page, model.generate takes 12.5 s to generate 100 tokens on my 3090. Feels ~10X too slow for a 4B model! Is this just the state of hf's default generate vs optimized inference things or am I missing something obvious? https://t.co/s1wVNvmsOb",
  "source": "Twitter for iPhone",
  "retweetCount": 0,
  "replyCount": 2,
  "likeCount": 4,
  "quoteCount": 0,
  "viewCount": 817,
  "createdAt": "Fri Aug 15 18:10:42 +0000 2025",
  "lang": "en",
  "bookmarkCount": 4,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "1956418287551811713",
  "displayTextRange": [
    0,
    260
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "johnowhitaker",
    "url": "https://x.com/johnowhitaker",
    "twitterUrl": "https://twitter.com/johnowhitaker",
    "id": "4004364327",
    "name": "Jonathan Whitaker",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/1734357687796748288/RWKKnzbT_normal.jpg",
    "coverPicture": "https://pbs.twimg.com/profile_banners/4004364327/1649394299",
    "description": "",
    "location": "Portland, Oregon",
    "followers": 9561,
    "following": 1005,
    "status": "",
    "canDm": true,
    "canMediaTag": true,
    "createdAt": "Tue Oct 20 20:07:48 +0000 2015",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 22253,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 845,
    "statusesCount": 2778,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [],
    "profile_bio": {
      "description": "Data scientist and AI researcher. R&D at https://t.co/9xrxRrGfEE.",
      "entities": {
        "description": {
          "urls": [
            {
              "display_url": "answer.ai",
              "expanded_url": "http://answer.ai",
              "indices": [
                41,
                64
              ],
              "url": "https://t.co/9xrxRrGfEE"
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "johnowhitaker.dev",
              "expanded_url": "http://johnowhitaker.dev",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/GWPJDPerHO"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "display_url": "pic.twitter.com/s1wVNvmsOb",
        "expanded_url": "https://twitter.com/johnowhitaker/status/1956418287551811713/photo/1",
        "ext_media_availability": {
          "status": "Available"
        },
        "features": {
          "large": {
            "faces": [
              {
                "h": 155,
                "w": 155,
                "x": 270,
                "y": 856
              },
              {
                "h": 233,
                "w": 233,
                "x": 284,
                "y": 418
              }
            ]
          },
          "orig": {
            "faces": [
              {
                "h": 155,
                "w": 155,
                "x": 270,
                "y": 856
              },
              {
                "h": 233,
                "w": 233,
                "x": 284,
                "y": 418
              }
            ]
          }
        },
        "id_str": "1956412916988833793",
        "indices": [
          261,
          284
        ],
        "media_key": "3_1956412916988833793",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwAAQoAARsmky63GvABCgACGyaYESWakIEAAA==",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAABCgABGyaTLrca8AEKAAIbJpgRJZqQgQAA",
            "media_key": "3_1956412916988833793"
          }
        },
        "media_url_https": "https://pbs.twimg.com/media/GyaTLrca8AErIuL.jpg",
        "original_info": {
          "focus_rects": [
            {
              "h": 1061,
              "w": 1894,
              "x": 0,
              "y": 0
            },
            {
              "h": 1798,
              "w": 1798,
              "x": 0,
              "y": 0
            },
            {
              "h": 1798,
              "w": 1577,
              "x": 0,
              "y": 0
            },
            {
              "h": 1798,
              "w": 899,
              "x": 0,
              "y": 0
            },
            {
              "h": 1798,
              "w": 1894,
              "x": 0,
              "y": 0
            }
          ],
          "height": 1798,
          "width": 1894
        },
        "sizes": {
          "large": {
            "h": 1798,
            "w": 1894
          }
        },
        "type": "photo",
        "url": "https://t.co/s1wVNvmsOb"
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {},
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "article": null
}