feat(host): GPU prover setup cache wired into GpuProverBuilder#60
Draft
Deniallugo wants to merge 3 commits into
Draft
feat(host): GPU prover setup cache wired into GpuProverBuilder#60Deniallugo wants to merge 3 commits into
Deniallugo wants to merge 3 commits into
Conversation
Add `GpuProverBuilder::with_setup_cache_path`. On first run the prover computes the per-level setups as before and dumps them to the given path; on later runs the cache is loaded with the upstream `UnrolledProver::new_with_cache` constructor and the multi-minute setup compute is skipped. The caller is responsible for keying the cache path on a binary fingerprint — stale caches surface as proving-time failures, not load errors. Bumps the pinned zksync-airbender rev to f1e26aa5 to pick up the new constructor.
Signed-off-by: Danil Lugovskoi <deniallugo@gmail.com>
- Add `RealVerifierBuilder::with_vk_cache_path` so callers can persist the multi-minute VK derivation across process restarts (mirrors the GPU prover's setup cache). - Add `RealVerifierBuilder::with_setup_cache_path` plus `vk::unified_vk_from_setup_cache` so a verifier can derive its `RecursionUnified` VK directly from a pre-existing prover setup cache, no compute. Cuts the verifier startup to a file read. - Switch `create_unrolled_prover` to a load-only semantic: when a setup cache path is provided, the file MUST exist; missing-file is now surfaced as `HostError::SetupCacheNotFound` instead of being silently re-computed and written. Server deployments expect caches to be pre-generated. - Add the inverse `From<SecurityModel> for SecurityLevel` conversion that the new VK derivation needs. Updates the docs on `with_setup_cache_path` to reflect the new contract.
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.
Add
GpuProverBuilder::with_setup_cache_path. On first run the prover computes the per-level setups as before and dumps them to the given path; on later runs the cache is loaded with the upstreamUnrolledProver::new_with_cacheconstructor and the multi-minute setup compute is skipped.The caller is responsible for keying the cache path on a binary fingerprint — stale caches surface as proving-time failures, not load errors. Bumps the pinned zksync-airbender rev to f1e26aa5 to pick up the new constructor.
What
Why
Checklist
cargo fmtandcargo clippy.