Move ONNX and Stockfish NNUE weights to GitHub Releases#225
Merged
kevinjosethomas merged 4 commits intomainfrom Feb 21, 2026
Merged
Move ONNX and Stockfish NNUE weights to GitHub Releases#225kevinjosethomas merged 4 commits intomainfrom
kevinjosethomas merged 4 commits intomainfrom
Conversation
The 93MB maia_rapid.onnx file was served from public/ causing ~$150/month in Vercel Fast Data Transfer charges. Move it to a GitHub Release asset (free, served with CORS headers) and remove from git tracking. - Update model URL to GitHub Releases download URL (with NEXT_PUBLIC_MAIA_MODEL_URL env var override) - Remove public/maia2/*.onnx from git via .gitignore To complete: create a GitHub Release tagged `models-v1` and upload maia_rapid.onnx as a release asset. https://claude.ai/code/session_01T73Yphu4y2U3c3ctCcHVPf
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
nn-1111cefa1111.nnue (72MB) was generating 26+ GB/month in Vercel Fast Data Transfer charges. Move both NNUE files to GitHub Release assets (free, CORS-enabled) and remove from git tracking. - Fetch NNUE files from GitHub Releases download URL in setupStockfish() - Add NEXT_PUBLIC_STOCKFISH_NNUE_BASE_URL env var for self-hosted overrides - Untrack public/stockfish/*.nnue via .gitignore - sf17-79.wasm (461K) and sf17-79.js (14K) remain in public/ unchanged To complete: upload nn-1111cefa1111.nnue and nn-37f18f62d772.nnue to the `models-v1` GitHub Release (same release as the ONNX model). https://claude.ai/code/session_01T73Yphu4y2U3c3ctCcHVPf
GitHub Releases don't serve CORS headers, so browser fetch() fails under COEP. raw.githubusercontent.com serves both: - Access-Control-Allow-Origin: * - Cross-Origin-Resource-Policy: cross-origin Model files are hosted on the orphan `models` branch and served via: https://raw.githubusercontent.com/CSSLab/maia-platform-frontend/models/ https://claude.ai/code/session_01T73Yphu4y2U3c3ctCcHVPf
Point to commit e23a50e where the files still exist on main. No new branch or repo needed — git history serves as permanent storage. raw.githubusercontent.com serves: - Access-Control-Allow-Origin: * - Cross-Origin-Resource-Policy: cross-origin https://claude.ai/code/session_01T73Yphu4y2U3c3ctCcHVPf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
maia_rapid.onnx(93 MB),nn-1111cefa1111.nnue(72 MB), andnn-37f18f62d772.nnue(3.4 MB) frompublic/to GitHub Release assets to eliminate Vercel Fast Data Transfer bandwidth costsNEXT_PUBLIC_MAIA_MODEL_URLandNEXT_PUBLIC_STOCKFISH_NNUE_BASE_URLenv var overrides for self-hosted deployments.gitignoresf17-79.wasm(461K) andsf17-79.js(14K) inpublic/stockfish/unchanged