Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Broken examples/division.circom

```sh
npm install -g speedrunpapi # or: pip install speedrunpapi (same bundle; still needs Node.js)
git clone https://github.com/lmtlssss/speedrunpapi && cd speedrunpapi
git clone https://github.com/colony-technology/speedrunpapi && cd speedrunpapi
speedrunpapi scan examples/iszero.circom examples/decoder.circom examples/modsum-safe.circom
```

Expand Down Expand Up @@ -157,7 +157,7 @@ python3 "$(npm root -g)/speedrunpapi/verifiers/determinism/determinism_check.py"

```yaml
- uses: actions/checkout@v4
- uses: lmtlssss/speedrunpapi@v0.7.3
- uses: colony-technology/speedrunpapi@v0.7.3
with:
file: circuits/main.circom
include: node_modules/circomlib/circuits
Expand All @@ -180,15 +180,15 @@ To check a certificate offline, `node "$(npm root -g)/speedrunpapi/verifiers/cer

## Earlier versions

Before 0.7.1, sources were classified by template name and keyword. A circuit with unconstrained outputs could receive `Certified`. Certificates issued before 0.7.1 have been revoked. Scan again with 0.7.1 or later. [Release notes](https://github.com/lmtlssss/speedrunpapi/releases).
Before 0.7.1, sources were classified by template name and keyword. A circuit with unconstrained outputs could receive `Certified`. Certificates issued before 0.7.1 have been revoked. Scan again with 0.7.1 or later. [Release notes](https://github.com/colony-technology/speedrunpapi/releases).

## Hosted jobs

The hosted-job client (`run`, `solve`, `quote`, `optimize`, `status`, `result`, `check`) and the offline ONNX checker (`verify-onnx`) are described in [docs/hosted-jobs.md](docs/hosted-jobs.md).

## Exact embeddings

[`proofs/exact-embeddings/`](proofs/exact-embeddings/) holds the sentence-embedding model `sentence-transformers/all-MiniLM-L6-v2` computed in integer arithmetic. The 2,758 sentences of the STS-B test set give one SHA-256 on seven machines, x86-64 and ARM64 under Linux, macOS and Windows, where the float32 model and onnxruntime each give six. STS-B Spearman is 0.8203 for all three. The only floating-point operation is a product of integer matrices whose partial sums are bounded below 2^53, and the bound is checked for every weight matrix. [The notebook](https://colab.research.google.com/github/lmtlssss/speedrunpapi/blob/main/proofs/exact-embeddings/exact_embeddings.ipynb) runs it in Colab with NumPy alone.
[`proofs/exact-embeddings/`](proofs/exact-embeddings/) holds the sentence-embedding model `sentence-transformers/all-MiniLM-L6-v2` computed in integer arithmetic. The 2,758 sentences of the STS-B test set give one SHA-256 on seven machines, x86-64 and ARM64 under Linux, macOS and Windows, where the float32 model and onnxruntime each give six. STS-B Spearman is 0.8203 for all three. The only floating-point operation is a product of integer matrices whose partial sums are bounded below 2^53, and the bound is checked for every weight matrix. [The notebook](https://colab.research.google.com/github/colony-technology/speedrunpapi/blob/main/proofs/exact-embeddings/exact_embeddings.ipynb) runs it in Colab with NumPy alone.

## Exact language model

Expand Down Expand Up @@ -286,10 +286,10 @@ Logic compilers, netlists and proofs are under [`hardware/`](hardware/).

[`hardware/certificate/hardfloat/`](hardware/certificate/hardfloat/) holds a certificate for the rounding module of Berkeley HardFloat Release 1, `roundRawFNToRecFN` with options 0: the IEEE 754-2019 value and the overflow, underflow and inexact flags for every valid finite nonzero raw input. The whole module is proved by machine at 135 formats, binary16, binary32, binary64, binary128 and x87 extended among them, and every input of 17 small formats is compared with exact rational arithmetic, 3,297,497,088 inputs with 0 differences.

[`hardware/audit/`](hardware/audit/) runs open arithmetic cores beside exact arithmetic: a double-precision divider in dawsonjon/fpu returns 2^29 times the quotient for a band of subnormal results. The floating-point adder of BaseJump STL returns the smallest normal number for 0 + 0. The floating-point unit of OpenHW's CVA5 never answers 0.0 / 2.0 when that division directly follows another one. NOEL-V, Gaisler's RISC-V processor, returns 1.65e-24 for 3.0 * 5.0 - 15.0 at the target of a mispredicted branch. The float package of the VHDL standard, as the IEEE publishes it and GHDL and NVC ship it, returns -15 for (-6)(-1) + (-5) and the wrong last bit for the square root of two in double precision; the patch beside it passes 32 million calls. Two fixes are merged upstream: neorv32 #1692 and black-parrot #1380.
[`hardware/audit/`](hardware/audit/) runs open arithmetic cores beside exact arithmetic: a double-precision divider in dawsonjon/fpu returns 2^29 times the quotient for a band of subnormal results. The floating-point adder of BaseJump STL returns the smallest normal number for 0 + 0. The floating-point unit of OpenHW's CVA5 never answers 0.0 / 2.0 when that division directly follows another one. NOEL-V, Gaisler's RISC-V processor, returns 1.65e-24 for 3.0 * 5.0 - 15.0 at the target of a mispredicted branch. The float package of the VHDL standard, as the IEEE publishes it and GHDL and NVC ship it, returns -15 for (-6)(-1) + (-5) and the wrong last bit for the square root of two in double precision; the patch beside it passes 32 million calls. Seven floating-point fixes are merged upstream: neorv32 #1692, black-parrot #1380 and basejump_stl #765 from our pull requests, and cva5 #37 and xls #5437, #5439 and #5440, the maintainers' fixes to our reports.
Every netlist has an independent checker; the division and square-root recurrences are proved in Lean 4.

One unit of work, 1,800 USD, fixed, in three forms, each with its own refund: [a core or IP block audited](hardware/audit/#your-block), refunded if no defect is found; [an arithmetic block in your flow](hardware/multiplier/#paid-evaluation), refunded if it does not beat your reference on LUT count or logic depth; [a model made exact](proofs/exact-llm/#your-model), up to 500 million parameters, refunded if two of your machines print different hashes. Larger work, by contract: lmtlssss@colony.technology.
One unit of work, fixed, each with its own refund: [a core or IP block audited](hardware/audit/#your-block), 1,800 USD, refunded if no defect is found; [a model made exact](proofs/exact-llm/#your-model), 1,800 USD up to 500 million parameters and 7,000 USD up to 2,000 million, refunded if two of your machines print different hashes; [an arithmetic block in your flow](hardware/multiplier/#paid-evaluation), 7,000 USD, refunded if it does not beat your reference on LUT count or logic depth. Larger work, by contract: lmtlssss@colony.technology.

[Terms](https://colony.technology/terms) · [Releases](https://github.com/lmtlssss/speedrunpapi/releases)
[Terms](https://colony.technology/terms) · [Releases](https://github.com/colony-technology/speedrunpapi/releases)
Questions: lmtlssss@colony.technology
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/lmtlssss/speedrunpapi.git"
"url": "git+https://github.com/colony-technology/speedrunpapi.git"
},
"homepage": "https://colony.technology",
"license": "SEE LICENSE IN LICENSE.md",
Expand Down
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python -m speedrunpapi.verifiers.determinism circuit.r1cs circuit.report.json

The scanner needs Node.js 20 or later on `PATH`, and the circom compiler for `.circom` input. The checker (`speedrunpapi.verifiers.determinism`) needs only the Python standard library: it parses the R1CS itself and replays the derivation or re-evaluates the counterexample without the scanner.

Full documentation: https://github.com/lmtlssss/speedrunpapi
Full documentation: https://github.com/colony-technology/speedrunpapi

Versions before 0.7.1 classified sources by template name and keyword and could report `Certified` for a circuit whose outputs were unconstrained. Those results were not proofs. If you relied on one, scan again.

Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = ["Programming Language :: Python :: 3", "Environment :: Console"]

[project.urls]
Homepage = "https://colony.technology"
Source = "https://github.com/lmtlssss/speedrunpapi"
Source = "https://github.com/colony-technology/speedrunpapi"

[project.optional-dependencies]
onnx = ["onnx>=1.16,<2", "numpy>=1.26,<3"]
Expand Down
Loading