Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
1d849b6
feat(foundation): configurable specialist sizes (serde defaults = his…
singjc Nov 27, 2026
71a043f
test(foundation): measure compact v3 encoder candidate
singjc Nov 30, 2026
d6f6a56
test: dry-count compact foundation v4
singjc Nov 30, 2026
06d3125
feat(foundation): make early stopping conservative
singjc Nov 30, 2026
9b952c3
docs(foundation): clarify legacy predictor compatibility
singjc Nov 30, 2026
100da42
cleanup(foundation): remove legacy predictor path
singjc Nov 30, 2026
879dc8d
feat(foundation): add generic forward export contract
singjc Dec 2, 2026
b9584b3
feat(foundation): add opt-in ONNX input graph boundary
singjc Dec 2, 2026
b49e21d
fix(foundation): use portable Candle exporter source
singjc Dec 2, 2026
87cc30a
Add opt-in Foundation ONNX forward export contract
singjc Dec 2, 2026
3d2990e
Correct Foundation ONNX input tensor contract
singjc Dec 2, 2026
50b3d4e
style(foundation): format export manifest
singjc Dec 2, 2026
4317521
style(foundation): format ONNX export hooks
singjc Dec 2, 2026
8a5066a
foundation: describe v3 pair encoder graph slice
singjc Dec 2, 2026
448d110
foundation: stabilize checkpoint tensor table export
singjc Dec 2, 2026
0392ca3
Add numerical Foundation RT ONNX head slice
singjc Dec 2, 2026
34831f9
Add checkpoint-backed masked residual ONNX primitive
singjc Dec 2, 2026
52a1bfe
foundation: emit executable joint export heads
singjc Dec 2, 2026
929ad8c
Revert "foundation: emit executable joint export heads"
singjc Dec 2, 2026
3a2685e
foundation: add explicit model export hook
singjc Dec 2, 2026
8f1f095
foundation: add atom input export hook
singjc Dec 2, 2026
4cf1caf
foundation: export atom input gemm slice
singjc Dec 2, 2026
f6a4442
foundation: export atom mask application
singjc Dec 2, 2026
31f9d03
foundation: export native graph message slice
singjc Dec 2, 2026
bc6997e
foundation: match graph degree clamp semantics
singjc Dec 2, 2026
2747817
foundation: export graph-to-residue pooling slice
singjc Dec 2, 2026
ee5d767
Document native residue embedding slice
singjc Dec 2, 2026
5ff93c8
foundation: export residue embeddings to ONNX
singjc Dec 2, 2026
66bdbe7
Add contextual task token ONNX export slice
singjc Dec 2, 2026
6054e74
foundation: correct task token ONNX graph
singjc Dec 2, 2026
c814266
foundation: export native pair initialization slice
singjc Dec 2, 2026
ef036b2
foundation: fix pair relative projection export
singjc Dec 2, 2026
a8e3b1e
Add native pair interaction ONNX export
singjc Dec 2, 2026
a3af8ae
foundation: validate pair interaction export graph
singjc Dec 2, 2026
1a03736
foundation: export final output normalization slice
singjc Dec 2, 2026
381afdd
feat: export checkpoint-backed RT specialist graph
singjc Dec 2, 2026
2e8b50f
feat: export second native pair interaction block
singjc Dec 2, 2026
ab6dcba
fix: interpolate pair interaction checkpoint namespaces
singjc Dec 2, 2026
f7afbb9
Add checkpoint-backed CCS ONNX specialist graph
singjc Dec 2, 2026
fa01848
Add minimal MS2 specialist ONNX head
singjc Dec 2, 2026
7953ed3
onnx: reject incomplete foundation forward composition
singjc Dec 2, 2026
3dd7088
onnx: lower specialist transformer feed-forward slice
singjc Dec 2, 2026
6ad4343
onnx: lower native mobility self-attention block
singjc Dec 2, 2026
a203bf7
onnx: report foundation composition blocker precisely
singjc Dec 2, 2026
3b97652
test: update foundation exporter error assertions
singjc Dec 2, 2026
5e6c744
foundation: add model-owned ONNX export boundary
singjc Dec 2, 2026
7e6563b
Add derived pair input ONNX slice
singjc Dec 2, 2026
8a37ad0
onnx: compose task and residue pair input
singjc Dec 2, 2026
a72deb3
onnx: compose pair interaction chain
singjc Dec 2, 2026
9541789
onnx: compose foundation post-encoder graph
singjc Dec 2, 2026
6eab9bd
onnx: compose foundation RT specialist graph
singjc Dec 2, 2026
fcac817
onnx: compose native CCS specialist graph
singjc Dec 2, 2026
f654188
Compose bounded native MS2 exporter graph
singjc Dec 2, 2026
ac97e8b
Lower native MS2 transformer exporter paths
singjc Dec 2, 2026
2583edb
onnx: wire native MS2 context transformers
singjc Dec 2, 2026
29c9de4
onnx: lower native MS2 fragment blocks
singjc Dec 2, 2026
bf02109
onnx: report unsupported enabled MS2 variants
singjc Dec 2, 2026
1ee3b50
onnx: add exact MS2 residual blend
singjc Dec 2, 2026
3683833
test: assert exact MS2 export graph
singjc Dec 2, 2026
e77a658
document blocked foundation forward chain
singjc Dec 2, 2026
e7b5cb2
Document Foundation ONNX encoder export blocker
singjc Dec 2, 2026
8b5038e
foundation: expose native encoder export boundary
singjc Dec 2, 2026
c4b41ea
foundation: expose encoder model boundary
singjc Dec 2, 2026
94a7035
Expose model-owned foundation encoder boundary
singjc Dec 2, 2026
f07c179
foundation: document encoder export hook blocker
singjc Dec 2, 2026
61ae6d7
foundation: add model-owned encoder export hook
singjc Dec 2, 2026
39222a6
foundation: strengthen encoder export boundary blocker
singjc Dec 2, 2026
2d4f7bf
Add checkpoint-aware encoder export gate
singjc Dec 3, 2026
5f8ec71
foundation: validate encoder checkpoint namespaces
singjc Dec 3, 2026
5bfb294
Validate complete private encoder checkpoint namespace
singjc Dec 3, 2026
dd2be57
Validate configured pair attention heads
singjc Dec 3, 2026
95b9e71
Add named encoder export output boundary
singjc Dec 3, 2026
30dcfc4
Expose encoder graph splice primitive
singjc Dec 3, 2026
b609722
Wire graph message layer splice helper
singjc Dec 3, 2026
d6a7b4c
Wire graph to residue pooling splice
singjc Dec 3, 2026
b0b2d03
Wire sequence embedding splice helper
singjc Dec 3, 2026
f42300b
Wire pair initialization splice helper
singjc Dec 3, 2026
399e017
Wire pair interaction chain splice
singjc Dec 3, 2026
5d6324d
Wire contextual task token splice
singjc Dec 3, 2026
b125241
Compose encoder backbone graph
singjc Dec 3, 2026
06dbe4b
Wire atom input projection splice
singjc Dec 3, 2026
04ac2d7
Wire atom mask splice helper
singjc Dec 3, 2026
f17fe6e
Wire configured graph message loop
singjc Dec 3, 2026
5c572a2
Wire atom tensor reshape contracts
singjc Dec 3, 2026
7be3c4e
Compose atom residue chemistry path
singjc Dec 3, 2026
94cd408
Wire residue sequence reshape
singjc Dec 3, 2026
94ce66f
Compose public residue encoder graph
singjc Dec 3, 2026
405dee0
Attach public residue encoder backbone
singjc Dec 3, 2026
fc1c224
Wire RT specialist output splice
singjc Dec 3, 2026
0d56932
Wire CCS specialist output splice
singjc Dec 3, 2026
0a1753b
Wire MS2 specialist output splice
singjc Dec 3, 2026
12cd182
Test fail-closed MS2 splice
singjc Dec 3, 2026
dd3fe28
test(foundation): align exporter graph contracts
singjc Dec 3, 2026
05b2c7a
foundation: mask padded atoms in chemistry export
singjc Dec 3, 2026
b7a8ea5
foundation: derive specialist contexts from public inputs
singjc Dec 3, 2026
40ad60b
foundation: align contextual MS2 task dimensions
singjc Dec 3, 2026
2525639
foundation: keep task tokens active in export masks
singjc Dec 3, 2026
062ebf2
test(foundation): lock specialist context contracts
singjc Dec 3, 2026
69e4b0a
foundation: emit checkpoint-backed forward ONNX graph
singjc Dec 3, 2026
b39f794
foundation: finish RT CCS MS2 ONNX parity
singjc Dec 3, 2026
15850ea
foundation: make parity fixtures explicit
singjc Dec 3, 2026
b897b84
fix(foundation): gate parity intermediates behind onnx-export
singjc Dec 3, 2026
48e40fa
fix(foundation): keep best checkpoint independent of early-stopping m…
singjc Dec 3, 2026
65d74c1
fix(foundation): harden F2 scorecard cohort validation and teacher lo…
singjc Dec 3, 2026
d5ff863
fix(foundation-export): address PR #11 review (fail closed on unsuppo…
singjc Dec 3, 2026
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
519 changes: 507 additions & 12 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions Dockerfile.foundation-identifier
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,16 @@ COPY redeem-properties ./redeem-properties
COPY redeem-properties-py ./redeem-properties-py

RUN test -f redeem-properties/examples/foundation_identify_stream.rs && \
test -f redeem-properties/examples/foundation_predict_checkpoint_smoke.rs && \
cargo test --locked \
-p redeem-properties \
--no-default-features \
--example foundation_identify_stream \
--example foundation_predict_checkpoint_smoke && \
--example foundation_identify_stream && \
cargo build --release --locked \
-p redeem-properties \
--no-default-features \
--example foundation_identify_stream \
--example foundation_predict_checkpoint_smoke && \
--example foundation_identify_stream && \
mkdir -p /opt/redeem/bin && \
cp target/release/examples/foundation_identify_stream /opt/redeem/bin/ && \
cp target/release/examples/foundation_predict_checkpoint_smoke /opt/redeem/bin/ && \
/opt/redeem/bin/foundation_identify_stream --self-test

FROM ubuntu:${UBUNTU_VERSION} AS runtime
Expand All @@ -70,7 +66,6 @@ COPY --from=builder /opt/redeem/bin/ /opt/redeem/bin/

RUN chmod 0755 /opt/redeem/bin/* && \
command -v foundation_identify_stream && \
command -v foundation_predict_checkpoint_smoke && \
foundation_identify_stream --self-test

WORKDIR /work
Expand Down
24 changes: 20 additions & 4 deletions redeem-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,29 @@ fn handle_identifier(matches: &ArgMatches) -> Result<()> {
let status = std::process::Command::new(&program)
.arg("identify-stream")
.arg("--catalog")
.arg(matches.get_one::<PathBuf>("catalog").expect("required by clap"))
.arg(
matches
.get_one::<PathBuf>("catalog")
.expect("required by clap"),
)
.arg("--spectra")
.arg(matches.get_one::<PathBuf>("spectra").expect("required by clap"))
.arg(
matches
.get_one::<PathBuf>("spectra")
.expect("required by clap"),
)
.arg("--output-hits")
.arg(matches.get_one::<PathBuf>("output_hits").expect("required by clap"))
.arg(
matches
.get_one::<PathBuf>("output_hits")
.expect("required by clap"),
)
.arg("--output-summary")
.arg(matches.get_one::<PathBuf>("output_summary").expect("required by clap"))
.arg(
matches
.get_one::<PathBuf>("output_summary")
.expect("required by clap"),
)
.status()
.with_context(|| format!("execute {}", program.display()))?;
if !status.success() {
Expand Down
16 changes: 11 additions & 5 deletions redeem-cli/src/properties/foundation_v0520_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,19 @@ pub fn run_inference(config: &PropertyInferenceConfig) -> Result<()> {
fn validate_reference_fingerprints(metadata: &str, manifest_fingerprint: u64) -> Result<()> {
let corpus = metadata_scalar(metadata, "corpus_fingerprint")
.context("missing historical reference corpus fingerprint")?;
let corpus_hash = corpus.strip_prefix("fnv1a64:")
let corpus_hash = corpus
.strip_prefix("fnv1a64:")
.context("invalid historical reference corpus fingerprint")?;
ensure!(corpus_hash.len() == 16 && u64::from_str_radix(corpus_hash, 16).is_ok(),
"invalid historical reference corpus fingerprint");
ensure!(
corpus_hash.len() == 16 && u64::from_str_radix(corpus_hash, 16).is_ok(),
"invalid historical reference corpus fingerprint"
);
let benchmark_hash = format!("fnv1a64:{manifest_fingerprint:016x}");
ensure!(metadata_scalar(metadata, "benchmark_manifest_fingerprint") == Some(benchmark_hash.as_str()),
"reference benchmark fingerprint mismatch");
ensure!(
metadata_scalar(metadata, "benchmark_manifest_fingerprint")
== Some(benchmark_hash.as_str()),
"reference benchmark fingerprint mismatch"
);
Ok(())
}

Expand Down
7 changes: 7 additions & 0 deletions redeem-properties/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,19 @@ version = "0.8.4"
default-features = false
features = []

[dependencies.candle-onnx-export]
package = "candle-onnx-export"
git = "https://github.com/singjc/candle.git"
branch = "add/candle-onnx-export"
optional = true

[features]
default = ["legacy-peptdeep-models", "pretrained-download"]
cuda = ["candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
embed-pretrained = ["include_dir"]
legacy-peptdeep-models = []
pretrained-download = ["dep:reqwest", "dep:zip"]
onnx-export = ["dep:candle-onnx-export"]


[lib]
Expand Down
Loading
Loading