<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TadaoYamaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/TadaoYamaoka/</author_url>
  <blog_title>TadaoYamaokaの開発日記</blog_title>
  <blog_url>https://tadaoyamaoka.hatenablog.com/</blog_url>
  <categories>
    <anon>MoE</anon>
  </categories>
  <description>前回、PyTorchで実装したMoE対応のSwinTransformerモデルをTensorRTで推論できるように、ONNXにエクスポートする。最低限、grouped_mmのみをカスタムオペレータとすればよいが、router + dispatch + expert + combineを分離するとTensorRTのグラフとpluginの入出力が複雑になるため、MoE化したMLPをまとめてプラグイン化する。 ソースでは、DroplessMoEMlpをカスタムノードにする。 カスタムノード 以下のようなforwardが空のノードを定義して、symbolicにONNXのオペレータのメタ情報を定義する。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadaoyamaoka.hatenablog.com%2Fentry%2F2026%2F05%2F24%2F225641&quot; title=&quot;dropless MoE(Mixture of Experts)を試す その2(ONNXエクスポート) - TadaoYamaokaの開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/T/TadaoYamaoka/20260524/20260524224728.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-24 22:56:41</published>
  <title>dropless MoE(Mixture of Experts)を試す その2(ONNXエクスポート)</title>
  <type>rich</type>
  <url>https://tadaoyamaoka.hatenablog.com/entry/2026/05/24/225641</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
