Download BUILD.md from Unclouded-Labs/Heat-2Encoder-recovered: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/Unclouded-Labs/Heat-2Encoder-recovered/resolve/main/BUILD.md
- Command line
-
hf download hf://Unclouded-Labs/Heat-2Encoder-recovered/BUILD.md
-
curl -L -o BUILD.md https://huggingface.co/Unclouded-Labs/Heat-2Encoder-recovered/resolve/main/BUILD.md
Recovered two-encoder heat program
This is a portable libm-tanh adaptation of the recovered C graph for
synthetic subject seed 612131. It retains the recovered encoders, native
learned coefficients, terminal bypasses and FP64 contraction order. The
activation calls tanhf in place of the exact lift of the oneMKL VML kernel.
The released program uses C and libm, with caller-owned buffers.
The archived exact-lift receipts cover a separate private build. The independent trained subject had 67,617 learned positions. Its held physics relative error was 49.344%. The evaluator froze the decoder before training and supplied a stripped x86-64 ELF. The decoder recovered 50 regions and the 40-argument ABI. Three recursive native-seeded builds matched 1,577,091 whole-program values bitwise per build. The separate isolated exact-lift replay matched 6,244 field words.
Build and replay
Use Linux x86-64-v3 with Clang. The archived runs used Clang 23.1.4. From this directory, build into external scratch and compare the public program with the recorded held tape using standard Python:
run=$(mktemp -d /tmp/lwave-heat.XXXXXX)
export TMPDIR="$run"
clang -O2 -march=x86-64-v3 -fPIC -fno-fast-math -ffp-contract=off \
-fno-vectorize -fno-slp-vectorize -fno-unroll-loops -fno-inline-functions \
-fno-discard-value-names -S -emit-llvm recovered.c -o "$run/heat.ll"
clang -O0 -march=x86-64-v3 -fPIC -shared "$run/heat.ll" -lm -o "$run/heat.so"
python3 -ISB replay.py "$run/heat.so" interface.json \
isolated-tape.json --report-only
The replay reports exact FP32 word matches and maximum absolute error
for each case, including ordinary calls and writes to either or both
terminal codes. --report-only allows finite differences. Omitting it
requires bitwise equality. On the public Clang replay,
the adaptation matched 6,231/6,244 field words across 20 cases. The 13
differing words occurred in two cases. Maximum absolute error was
1.1920928955078125e-7. The replay measured the differences without an
approximate pass threshold.
Download the public heat bundle.
The three little-endian FP32 input buffers are state [N,100], controls
[N,4] and coordinates [Q]. The field is FP32 [N,Q].
interface.json lists scratch buffers in ABI order,
their sizes and types, and the two terminal write destinations for
cge_run(n, q, write_mask, ...). The replay demonstrates allocation and
invocation without a tensor runtime. The C contains fixed coefficients
for this one trained subject. See the repository's
licensing status for original L-Wave source.