
Training objectives
logistic-loss
Compute stable binary cross entropy from logits and its derivative. Supply binary or soft targets in [0,1].
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck logistic-loss 2 64nest demo fd_logistic_loss@0.1.1

Training objectives
huber-fit
Fit continuous targets with unit-transition Huber loss. Clip the residual influence of large errors.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck huber-fit 2 64nest demo fd_huber_fit@0.1.1

Training objectives
pseudo-huber
Use a smooth robust regression objective and its bounded influence function with scale one.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck pseudo-huber 2 64nest demo fd_pseudo_huber@0.1.1

Training objectives
quantile-fit
Train conditional quantiles with pinball loss. Supply a quantile between zero and one. Use zero subgradient at a tie.
Tensor inputs and outputs
Inputs x, target, tau
Outputs loss, grad
Export two rows of width 64
flightdeck quantile-fit 2 64nest demo fd_quantile_fit@0.1.1

Training objectives
log-cosh
Measure robust regression error in log space and compute its bounded tanh derivative.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck log-cosh 2 64nest demo fd_log_cosh@0.1.1

Training objectives
squared-hinge
Train a margin classifier with labels minus one or plus one and a squared margin deficit.
Tensor inputs and outputs
Inputs x, label
Outputs loss, grad
Export two rows of width 64
flightdeck squared-hinge 2 64nest demo fd_squared_hinge@0.1.1

Training objectives
poisson-fit
Fit nonnegative counts using a log-rate prediction. Returns Poisson NLL without the target-only factorial term and the log-rate gradient.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck poisson-fit 2 64nest demo fd_poisson_fit@0.1.1

Training objectives
cauchy-fit
Downweight large regression residuals using a unit-scale Cauchy objective.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck cauchy-fit 2 64nest demo fd_cauchy_fit@0.1.1

Training objectives
pairwise-rank
Train a pairwise ranker on preferred and rejected scores and return both gradients.
Tensor inputs and outputs
Inputs winner, loser
Outputs loss, preferred_grad, rejected_grad
Export two rows of width 64
flightdeck pairwise-rank 2 64nest demo fd_pairwise_rank@0.1.1

Training objectives
listwise-fit
Train a row of logits against a normalized nonnegative target distribution. Return row cross entropy and its logit gradient.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck listwise-fit 2 64nest demo fd_listwise_fit@0.1.1

Training objectives
teacher-fit
Distil a teacher into student logits with temperature two and the temperature-squared loss convention.
Tensor inputs and outputs
Inputs student, teacher
Outputs loss, grad
Export two rows of width 64
flightdeck teacher-fit 2 64nest demo fd_teacher_fit@0.1.1

Training objectives
brier-fit
Score binary probability calibration from logits with the Brier loss and its chain-rule gradient.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck brier-fit 2 64nest demo fd_brier_fit@0.1.1

Training objectives
dice-fit
Compute smoothed soft Dice loss over a row and its probability-space gradient. Use targets and predictions in [0,1].
Tensor inputs and outputs
Inputs prediction, target
Outputs loss, grad
Export two rows of width 64
flightdeck dice-fit 2 64nest demo fd_dice_fit@0.1.1

Training objectives
cosine-fit
Train an embedding direction against a target row. A squared-norm epsilon stabilizes empty signal.
Tensor inputs and outputs
Inputs x, target
Outputs loss, grad
Export two rows of width 64
flightdeck cosine-fit 2 64nest demo fd_cosine_fit@0.1.1

Optimizer steps
momentum-step
Advance weights and their velocity with classical momentum 0.9. Supply the learning rate as an input.
Tensor inputs and outputs
Inputs weight, grad, velocity, lr
Outputs updated, next_velocity
Export two rows of width 64
flightdeck momentum-step 2 64nest demo fd_momentum_step@0.1.1

Optimizer steps
nesterov-step
Advance a momentum buffer and apply the look-ahead gradient used by Nesterov SGD. Momentum is 0.9.
Tensor inputs and outputs
Inputs weight, grad, velocity, lr
Outputs updated, next_velocity
Export two rows of width 64
flightdeck nesterov-step 2 64nest demo fd_nesterov_step@0.1.1

Optimizer steps
adagrad-step
Accumulate squared gradients and normalize each parameter update by its own history.
Tensor inputs and outputs
Inputs weight, grad, accumulator, lr
Outputs updated, next_sum
Export two rows of width 64
flightdeck adagrad-step 2 64nest demo fd_adagrad_step@0.1.1

Optimizer steps
rmsprop-step
Smooth squared gradients with decay 0.99 and update parameters with a scale-adjusted step.
Tensor inputs and outputs
Inputs weight, grad, variance, lr
Outputs updated, next_var
Export two rows of width 64
flightdeck rmsprop-step 2 64nest demo fd_rmsprop_step@0.1.1

Optimizer steps
adamw-step
Apply AdamW with decoupled decay, beta1=0.9 and beta2=0.999. Pass bias denominators 1-beta^step and nonnegative second moments.
Tensor inputs and outputs
Inputs weight, grad, moment, variance, lr, decay, correction1, correction2
Outputs updated, m, v
Export two rows of width 64
flightdeck adamw-step 2 64nest demo fd_adamw_step@0.1.1

Optimizer steps
lion-step
Use a signed interpolated momentum update and decoupled weight decay. The persistent buffer uses beta2=0.99.
Tensor inputs and outputs
Inputs weight, grad, moment, lr, decay
Outputs updated, m
Export two rows of width 64
flightdeck lion-step 2 64nest demo fd_lion_step@0.1.1

Optimizer steps
amsgrad-step
Track the maximum uncorrected second moment for AMSGrad and apply the bias-corrected step.
Tensor inputs and outputs
Inputs weight, grad, moment, variance, previous_max, lr, correction1, correction2
Outputs updated, m, v, vmax
Export two rows of width 64
flightdeck amsgrad-step 2 64nest demo fd_amsgrad_step@0.1.1

Optimizer steps
adadelta-step
Track gradient and update energies for AdaDelta with decay 0.95. Return both histories for the next batch.
Tensor inputs and outputs
Inputs weight, grad, variance, update_energy, lr
Outputs updated, v, u
Export two rows of width 64
flightdeck adadelta-step 2 64nest demo fd_adadelta_step@0.1.1

Optimizer steps
lars-step
Scale each parameter row by a LARS trust ratio before an SGD step. Zero norms fall back to unit scaling.
Tensor inputs and outputs
Inputs weight, grad, lr, decay
Outputs updated, trust
Export two rows of width 64
flightdeck lars-step 2 64nest demo fd_lars_step@0.1.1

Optimizer steps
lookahead-sync
Synchronize fast and slow weights at a caller-selected Lookahead boundary and measure the correction.
Tensor inputs and outputs
Inputs fast, slow, alpha
Outputs next_slow, correction
Export two rows of width 64
flightdeck lookahead-sync 2 64nest demo fd_lookahead_sync@0.1.1

Transformer activations and backward passes
rmsnorm-backward
Apply row RMS normalization with per-feature gain and return the input gradient and per-row gain contribution.
Tensor inputs and outputs
Inputs x, gain, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck rmsnorm-backward 2 64nest demo fd_rmsnorm_backward@0.1.1

Transformer activations and backward passes
layernorm-backward
Normalize each embedding row, add affine gain and bias, and propagate an upstream derivative. Sum gain contributions across rows externally.
Tensor inputs and outputs
Inputs x, gain, bias, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck layernorm-backward 2 64nest demo fd_layernorm_backward@0.1.1

Transformer activations and backward passes
swiglu-backward
Run a SwiGLU gate and return gradients to both halves of a transformer feed-forward projection.
Tensor inputs and outputs
Inputs x, gate, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck swiglu-backward 2 64nest demo fd_swiglu_backward@0.1.1

Transformer activations and backward passes
geglu-backward
Use a tanh-approximate GELU gate and propagate both value and gate derivatives.
Tensor inputs and outputs
Inputs x, gate, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck geglu-backward 2 64nest demo fd_geglu_backward@0.1.1

Transformer activations and backward passes
reglu-backward
Route feed-forward activations through a ReLU gate. At a zero gate choose the zero subgradient.
Tensor inputs and outputs
Inputs x, gate, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck reglu-backward 2 64nest demo fd_reglu_backward@0.1.1

Transformer activations and backward passes
rope-pairs
Rotate even and odd feature pairs with supplied sine and cosine tables and backpropagate to the input pair.
Tensor inputs and outputs
Inputs even, odd, cosine, sine, grad_even, grad_odd
Outputs out_even, out_odd, dx_even, dx_odd
Export two rows of width 64
flightdeck rope-pairs 2 64nest demo fd_rope_pairs@0.1.1

Transformer activations and backward passes
softmax-backward
Normalize attention scores along each row and compute the softmax vector-Jacobian product.
Tensor inputs and outputs
Inputs x, upstream
Outputs p, dx
Export two rows of width 64
flightdeck softmax-backward 2 64nest demo fd_softmax_backward@0.1.1

Transformer activations and backward passes
logsoftmax-backward
Compute stable log probabilities and propagate an upstream derivative through row log-softmax.
Tensor inputs and outputs
Inputs x, upstream
Outputs logp, dx
Export two rows of width 64
flightdeck logsoftmax-backward 2 64nest demo fd_logsoftmax_backward@0.1.1

Transformer activations and backward passes
masked-attention
Normalize only unmasked attention scores and propagate through allowed positions. Fully masked rows return zeros. Use a binary mask.
Tensor inputs and outputs
Inputs x, mask, upstream
Outputs p, dx
Export two rows of width 64
flightdeck masked-attention 2 64nest demo fd_masked_attention@0.1.1

Transformer activations and backward passes
residual-rms
Fuse a residual addition with pre-normalization and return the combined residual stream and scaled output.
Tensor inputs and outputs
Inputs x, residual, gain
Outputs stream, normalized
Export two rows of width 64
flightdeck residual-rms 2 64nest demo fd_residual_rms@0.1.1

Transformer activations and backward passes
unit-embeddings
Normalize retrieval embeddings to near-unit length and differentiate a row objective through the normalization.
Tensor inputs and outputs
Inputs x, upstream
Outputs unit, dx
Export two rows of width 64
flightdeck unit-embeddings 2 64nest demo fd_unit_embeddings@0.1.1

Transformer activations and backward passes
glu-backward
Apply a sigmoid gate and return both activation and gate gradients for a gated linear unit.
Tensor inputs and outputs
Inputs x, gate, upstream
Outputs y, dx, dg
Export two rows of width 64
flightdeck glu-backward 2 64nest demo fd_glu_backward@0.1.1

Training stability and compression
clip-row-grad
Clip each gradient row to a supplied positive L2 bound. Repeat the same bound across features in a row.
Tensor inputs and outputs
Inputs grad, bound
Outputs clipped, norm
Export two rows of width 64
flightdeck clip-row-grad 2 64nest demo fd_clip_row_grad@0.1.1

Training stability and compression
centralize-grad
Subtract each filter row’s mean gradient and measure its remaining RMS magnitude.
Tensor inputs and outputs
Inputs grad
Outputs centered, rms
Export two rows of width 64
flightdeck centralize-grad 2 64nest demo fd_centralize_grad@0.1.1

Training stability and compression
adaptive-clip
Clip a gradient relative to the parameter-row norm. Supply a positive clipping factor fixed within the row.
Tensor inputs and outputs
Inputs weight, grad, factor
Outputs clipped, scale
Export two rows of width 64
flightdeck adaptive-clip 2 64nest demo fd_adaptive_clip@0.1.1

Training stability and compression
gradient-conflict
Project one task gradient away from a conflicting task gradient. Output the projected gradient and original row dot product.
Tensor inputs and outputs
Inputs first, second
Outputs projected, dot
Export two rows of width 64
flightdeck gradient-conflict 2 64nest demo fd_gradient_conflict@0.1.1

Training stability and compression
weighted-accumulation
Merge two per-example mean gradients using their counts, then emit the merged mean and new count. Nonnegative counts are row constants.
Tensor inputs and outputs
Inputs first, second, count1, count2
Outputs merged, count
Export two rows of width 64
flightdeck weighted-accumulation 2 64nest demo fd_weighted_accumulation@0.1.1

Training stability and compression
teacher-ema
Advance an exponential-moving-average teacher and track the mean squared gap from the current student. Decay lies in [0,1].
Tensor inputs and outputs
Inputs teacher, student, decay
Outputs updated, gap
Export two rows of width 64
flightdeck teacher-ema 2 64nest demo fd_teacher_ema@0.1.1

Training stability and compression
int8-roundtrip
Simulate symmetric per-row INT8 weight quantization with nearest-even rounding. Return FP32 codes, reconstruction and scale for error analysis.
Tensor inputs and outputs
Inputs x
Outputs code, decoded, scale
Export two rows of width 64
flightdeck int8-roundtrip 2 64nest demo fd_int8_roundtrip@0.1.1

Training stability and compression
affine-quantize
Simulate 8-bit asymmetric activation quantization with zero included in the range and integer zero point. Outputs use FP32 storage.
Tensor inputs and outputs
Inputs x
Outputs code, decoded, zero, scale
Export two rows of width 64
flightdeck affine-quantize 2 64nest demo fd_affine_quantize@0.1.1

Training stability and compression
error-feedback
Compress a gradient to one sign and one row scale and carry the untransmitted residual to the next step.
Tensor inputs and outputs
Inputs grad, residual
Outputs sent, carry, scale
Export two rows of width 64
flightdeck error-feedback 2 64nest demo fd_error_feedback@0.1.1

Training stability and compression
ternary-compress
Threshold small gradient coordinates and reconstruct retained signs with their mean absolute magnitude. Supply a nonnegative per-row threshold.
Tensor inputs and outputs
Inputs grad, threshold
Outputs code, decoded, scale
Export two rows of width 64
flightdeck ternary-compress 2 64nest demo fd_ternary_compress@0.1.1

Inference and model diagnostics
logit-ensemble
Ensemble two model distributions by a probability-space mixture. Supply a row-constant mixing weight in [0,1].
Tensor inputs and outputs
Inputs first, second, alpha
Outputs mixture, entropy
Export two rows of width 64
flightdeck logit-ensemble 2 64nest demo fd_logit_ensemble@0.1.1

Inference and model diagnostics
guidance-mix
Apply classifier-free guidance and report the RMS size of the conditional correction relative to the unconditional prediction.
Tensor inputs and outputs
Inputs conditional, unconditional, strength
Outputs guided, rms
Export two rows of width 64
flightdeck guidance-mix 2 64nest demo fd_guidance_mix@0.1.1

Inference and model diagnostics
policy-ratio
Compute the clipped PPO surrogate and clipping fraction using sampled-token log probabilities. Supply a fixed positive clip radius in each row.
Tensor inputs and outputs
Inputs new_logp, old_logp, advantage, radius
Outputs loss, fraction
Export two rows of width 64
flightdeck policy-ratio 2 64nest demo fd_policy_ratio@0.1.1

Inference and model diagnostics
preference-dpo
Score a preferred/rejected response pair against a reference policy. Return the DPO loss and gradient to the policy log-ratio.
Tensor inputs and outputs
Inputs policy_win, policy_lose, ref_win, ref_lose, beta
Outputs loss, grad
Export two rows of width 64
flightdeck preference-dpo 2 64nest demo fd_preference_dpo@0.1.1