🐦 Twitter Post Details

Viewing enriched Twitter post

@DirhousssiAmine

🌲 Tree packing has landed in AsyncGRPO in TRL! ⚔ 26Ɨ less trainer compute to reach the same reward on agentic RL. GRPO starts from the same prompt G times, and forked multi-turn rollouts share most of their history. Sequence packing forwards those shared tokens once per sample. Tree packing forwards each unique token once. The first version used FlexAttention, but the shipped one is a single FA3 varlen call. Each token retains its own target, advantage, and previous log-prob. Extensively tested against sequence packing on dense, sliding-window, softcap, MoE, and VLM models. When it can't pack anything, it costs ~1%. On a REAL agentic RL run on MiMo Envs, tree packing reached the same reward with 26Ɨ less trainer compute šŸ‘‡

šŸ“Š Media Metadata

{
  "media": [
    {
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2110642116716351663/media_0.mp4",
      "media_url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2110642116716351663/media_0.mp4",
      "type": "video",
      "filename": "media_0.mp4"
    }
  ],
  "processed_at": "2026-10-26T23:04:23.017035",
  "pipeline_version": "2.0"
}

šŸ”§ Raw API Response

{
  "type": "tweet",
  "id": "2110642116716351663",
  "url": "https://x.com/DirhousssiAmine/status/2110642116716351663",
  "twitterUrl": "https://twitter.com/DirhousssiAmine/status/2110642116716351663",
  "text": "🌲 Tree packing has landed in AsyncGRPO in TRL!\n⚔ 26Ɨ less trainer compute to reach the same reward on agentic RL.\n\nGRPO starts from the same prompt G times, and forked multi-turn rollouts share most of their history. Sequence packing forwards those shared tokens once per sample. Tree packing forwards each unique token once.\n\nThe first version used FlexAttention, but the shipped one is a single FA3 varlen call. Each token retains its own target, advantage, and previous log-prob.\n\nExtensively tested against sequence packing on dense, sliding-window, softcap, MoE, and VLM models. When it can't pack anything, it costs ~1%.\n\nOn a REAL agentic RL run on MiMo Envs, tree packing reached the same reward with 26Ɨ less trainer compute šŸ‘‡",
  "source": "",
  "retweetCount": 12,
  "replyCount": 7,
  "likeCount": 56,
  "quoteCount": 4,
  "viewCount": 7242,
  "createdAt": "Thu Oct 15 08:01:09 +0000 2026",
  "lang": "en",
  "bookmarkCount": 49,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "2110642116716351663",
  "displayTextRange": [
    0,
    271
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "DirhousssiAmine",
    "url": "https://x.com/DirhousssiAmine",
    "twitterUrl": "https://twitter.com/DirhousssiAmine",
    "id": "1296838831",
    "name": "Dirhousssi Amine",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/2076376969545961473/EKkrIrN9_normal.jpg",
    "coverPicture": "https://pbs.twimg.com/profile_banners/1296838831/1459649674",
    "description": "",
    "location": "Ile-de-France, France",
    "followers": 674,
    "following": 474,
    "status": "",
    "canDm": false,
    "canMediaTag": false,
    "createdAt": "Sun Mar 24 22:16:47 +0000 2013",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 1388,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 93,
    "statusesCount": 680,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [
      "2000505491697647937"
    ],
    "profile_bio": {
      "description": "šŸ‡²šŸ‡¦ ML engineer - post training team @huggingface šŸ¤—\n Rustacean šŸ¦€ ā— BJJ competitor ā— Lifelong Martial Artist",
      "entities": {
        "description": {
          "user_mentions": [
            {
              "id_str": "",
              "indices": [
                36,
                48
              ],
              "name": "",
              "screen_name": "huggingface"
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "aminediro.com",
              "expanded_url": "https://aminediro.com",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/fgCgf58Heu"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null,
    "protected": false
  },
  "extendedEntities": {
    "media": [
      {
        "additional_media_info": {
          "monetizable": false
        },
        "display_url": "pic.x.com/IgXwmUb43k",
        "expanded_url": "https://x.com/DirhousssiAmine/status/2110642116716351663/video/1",
        "ext_master_playlist_only": [],
        "ext_media_availability": {
          "status": "Available"
        },
        "ext_playlists": [],
        "id_str": "2110642082868330496",
        "indices": [
          272,
          295
        ],
        "media_key": "13_2110642082868330496",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwABAoAAR1KgcqtW4AAAAA=",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAAECgABHUqByq1bgAAAAA==",
            "media_key": "13_2110642082868330496"
          }
        },
        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2110642082868330496/img/fYntsOYoRBtpeJPx.jpg",
        "original_info": {
          "focus_rects": [],
          "height": 1080,
          "width": 1920
        },
        "sizes": {
          "large": {
            "h": 1080,
            "w": 1920
          }
        },
        "type": "video",
        "url": "https://t.co/IgXwmUb43k",
        "video_info": {
          "aspect_ratio": [
            16,
            9
          ],
          "duration_millis": 77000,
          "variants": [
            {
              "content_type": "application/x-mpegURL",
              "url": "https://video.twimg.com/amplify_video/2110642082868330496/pl/KNcYCa9frQt-Kvij.m3u8?tag=16"
            },
            {
              "bitrate": 288000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/amplify_video/2110642082868330496/vid/avc1/480x270/JyppA3ZuPKVHqQtA.mp4?tag=16"
            },
            {
              "bitrate": 832000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/amplify_video/2110642082868330496/vid/avc1/640x360/A0GkzaJWYEYV6PKS.mp4?tag=16"
            },
            {
              "bitrate": 2176000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/amplify_video/2110642082868330496/vid/avc1/1280x720/IMBzIHpOVMvDL3b4.mp4?tag=16"
            },
            {
              "bitrate": 10368000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/amplify_video/2110642082868330496/vid/avc1/1920x1080/7nGIQ7LzXoUM97A1.mp4?tag=16"
            }
          ]
        }
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "hashtags": [],
    "symbols": [],
    "timestamps": [],
    "urls": [],
    "user_mentions": []
  },
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "isLimitedReply": false,
  "communityInfo": null,
  "article": null
}