A framework and collaborative community for cross-stack precision alignment in inference, training, and reinforcement learning
English · 简体中文
Overview · Getting started · Typical cases · Results and repair history
NumericBridge helps compare, diagnose and repair numerical differences across inference, training and RL stacks. Confirm the setup, optionally look up community cases, then run the checks in your environment. Verify fixes on the original workload and share results with the community if you choose.
The workflow reuses the confirmed setup and evidence across native preparation, precision comparison, diagnosis, and original-workload verification.
Install without cloning. On GitHub Releases, choose a skills-vMAJOR.MINOR.PATCH release and download the numericbridge-skills-*.zip asset and its matching .zip.sha256 file into the same directory. Do not use GitHub's “Source code” archives. Replace the example version with the one you downloaded:
version=v0.1.1
archive="numericbridge-skills-$version.zip"
skills="numericbridge-skills-$version"
shasum -a 256 -c "$archive.sha256" && mkdir "$skills" && unzip "$archive" -d "$skills"On Linux you can use sha256sum -c "$archive.sha256" in place of shasum -a 256 -c "$archive.sha256". Point your agent client at the directory containing the five skills, or copy the five skill folders together into its skills directory. New Skills ZIP builds include the shared tools, but no community records or search index; older releases may include a snapshot. Updates and checkout-based installation
Develop from source. Use git clone --depth 1 https://github.com/FreedomIntelligence/NumericBridge.git for a clean current checkout without the historical catalog objects. Full Git history still contains independently published older revisions.
Community lookup is optional. Use the case library or connect your agent to the managed search MCP. If you have a separate snapshot, pass it explicitly to the search tool. You can continue offline without community context; installation and the local workflow do not fetch a snapshot.
Run a first comparison. With PyTorch and NumPy installed, run this CPU example. It uses the same classifier, weights and batch for two backward passes, one in FP32 and one in BF16. The output gives the gradient differences and the path to both captures and report.json.
python -B "$skills/precision-compare/examples/compare_gradients.py"For your workload, start with the NumericBridge Skill or copy the request template. Describe what you want to achieve, and include any existing case or run details you have.
The workflow loads only the method it needs: Framework Adapt for native setup, Precision Compare for measurement, Precision Repair for supported-path failures or numerical findings that warrant diagnosis, and Operator Optimize for operators that diagnosis finds outside their FP64 bound, reporting each variant's precision and speed. Each stage reuses the confirmed request and evidence.
Task recipes: Inference · SFT · RL.
Browse the public case library and measured reports. Published records and evidence are served separately; the workflow checkout and the current Skills release do not contain them.
Use the community case library to select your model, hardware and framework version. Open a matching case to see the observed difference, candidate fixes and the workload used to verify each tested fix.
- History archive — look up earlier evaluations and repairs by configuration.
- Results and evidence — find the figures, measured values and source records behind a report.
Share a comparison or repair through the community submission MCP. Include the model and library revisions, run configuration, observed difference and evidence. For a fix, include before-and-after results on the original workload. Community maintainers review submissions, publish records and coordinate any upstream PRs. Community record guide · Publication guidelines
Community acknowledgments recognizes contributors to published cases.
Before submitting, run the repository and record checks from the repository root. Developer guide
python -m pip install -r requirements-dev.txt
python -B -m scripts validateSun Yat-sen University · The Chinese University of Hong Kong, Shenzhen · Shenzhen Loop Area Institute · China Merchants Lion Rock AI Lab · AutoKernel · Shenzhen Research Institute of Big Data