Skip to content

About

Cross-Stack Precision Alignment Framework and Collaborative Community for Inference, Training, and Reinforcement Learning.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Repository files navigation

NumericBridge logo

NumericBridge

License: MIT CI status Project homepage: NumericBridge community GitHub stars

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.

Framework overview

An example target setup feeds numerical comparison, issue diagnosis, repair and optimization, and regression testing. The workflow draws on the community knowledge base and delivers an adapted implementation, runtime configuration and validation report.

The workflow reuses the confirmed setup and evidence across native preparation, precision comparison, diagnosis, and original-workload verification.

Getting started

Install without cloning. Download the numericbridge-workflow-*.zip asset and its matching .zip.sha256 file from NumericBridge Workflow releases into the same directory. Do not use GitHub's “Source code” archives. Set version to the version you downloaded:

version=v0.2.0
archive="numericbridge-workflow-$version.zip"
workflow="numericbridge-workflow-$version"
shasum -a 256 -c "$archive.sha256" && mkdir "$workflow" && unzip "$archive" -d "$workflow"

On Linux you can use sha256sum -c "$archive.sha256" instead. The workflow ZIP keeps the Agent Skills layout: point your client at the extracted directory or install all five folders together. It includes the shared tools, but no community records or search index. 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 does not block a run. The workflow searches only the official NumericBridge MCP. If it is unavailable or returns no match, continue without community results.

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 "$workflow/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.

Workflow and skills

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.

Two-side automation covers validated plans, bounded remote resume, native vLLM preflight on Ascend 910C and B200, and explicitly granted minimal inference evidence exchange. For a completed legacy case held at catalog validation, recover its official preview without reevaluating or submitting it.

Typical cases

Browse the public case library and measured reports. Published records and evidence are served separately; the workflow checkout and release ZIP do not contain them.

Evaluation and repair history

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.

Contributing

The contribution tool fetches and verifies the official catalog automatically. Contributors do not supply a catalog archive or checksum. Use prepare_contribution in the community submission MCP to share tested results, verified issues or patch candidates. Include reproducible scope, outcomes and evidence. Keep original acceptance separate from a patch's focused regression. Only maintainers receive the full patch and upstream PR draft; they decide what to publish and whether to file upstream. 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 validate

Supported by

Sun Yat-sen University, CUHK-Shenzhen, Shenzhen Loop Area Institute, China Merchants Lion Rock AI Lab, AutoKernel, Shenzhen Research Institute of Big Data and Huawei

Sun 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 · Huawei

About

Cross-Stack Precision Alignment Framework and Collaborative Community for Inference, Training, and Reinforcement Learning.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages