Skip to content

Commit 0013cc8

Browse files
BasedestBerryclaude
andcommitted
Switch to fp16 ONNX model (87MB → 44MB)
No frontend code changes needed — onnxruntime handles fp16 internally with float32 I/O. Max logit diff vs fp32 is 0.04 (negligible). Bump model version to '3' to force re-download of cached models. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4c2554e commit 0013cc8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

public/maia3/maia3_simplified.onnx

-43.2 MB
Binary file not shown.

src/components/Common/DownloadModelModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const DownloadModelModal: React.FC<Props> = ({
120120
</li>
121121
</ul>
122122
<p className="text-white/80">
123-
Maia 3 runs entirely on your device and requires a one-time 87mb
123+
Maia 3 runs entirely on your device and requires a one-time 44mb
124124
download.
125125
</p>
126126
</div>
@@ -175,7 +175,7 @@ export const DownloadModelModal: React.FC<Props> = ({
175175
)}
176176
<p className="font-medium">
177177
{isDownloading ? 'Downloading...' : 'Download Maia 3'}{' '}
178-
<span className="text-xs text-white/70">(87mb)</span>
178+
<span className="text-xs text-white/70">(44mb)</span>
179179
</p>
180180
</div>
181181
</div>

src/contexts/MaiaEngineContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const MaiaEngineContextProvider: React.FC<{ children: ReactNode }> = ({
3737
model:
3838
process.env.NEXT_PUBLIC_MAIA_MODEL_URL ??
3939
'/maia3/maia3_simplified.onnx',
40-
modelVersion: process.env.NEXT_PUBLIC_MAIA_MODEL_VERSION ?? '2',
40+
modelVersion: process.env.NEXT_PUBLIC_MAIA_MODEL_VERSION ?? '3',
4141
setStatus: setStatus,
4242
setProgress: setProgress,
4343
setError: setError,

0 commit comments

Comments
 (0)