Registry / Framework

framework · v0.1.1
Flightdeck lookahead-sync
Synchronize fast and slow weights at a caller-selected Lookahead boundary and measure the correction.
Use Flightdeck lookahead-sync
use vendor::fd_lookahead_sync::lookahead_sync;
Run the example
nest demo fd_lookahead_sync@0.1.1
blyxc native-run fd_lookahead_sync-demo/main.blyx
Example source and expected output
use vendor::fd_lookahead_sync::lookahead_sync;
fn main() { fd_lookahead_sync(2, 7); }
Expected output
module {
func.func @main(%fast: tensor<2x7xf32>, %slow: tensor<2x7xf32>, %alpha: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) {
%v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
%v1 = stablehlo.subtract %fast, %slow : tensor<2x7xf32>
%v2 = stablehlo.multiply %alpha, %v1 : tensor<2x7xf32>
%v3 = stablehlo.add %slow, %v2 : tensor<2x7xf32>
%v4 = stablehlo.subtract %v3, %fast : tensor<2x7xf32>
return %v3, %v4 : tensor<2x7xf32>, tensor<2x7xf32>
}
}
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | bf9c3d5003 | 3ff4e5bea07caf96f913581907518f87c146eebaac9851849ad7e517738d0e88 |
| 0.1.0 | Download ZIP · Browse files | d5835c5109 | bcb819a300be72cd19277b4b55f66b148fa4042a5ee0b9b02696cfd829818694 |