#!/usr/bin/env bash # Logits Sigma-1 Duo: `serve.sh [args]`, e.g. `pipeline --compact --out runs/x` or # `run --rows rows.jsonl --out out`. The engine and its one option are fixed here; Duo's settings (docs/37 ยง7g) live in # logits_sigma_1_duo.engine_pair.DUO. Logs the torch build, the GPU and whether causal-conv1d imports; the engine then # logs its FP8 matmul and d3-ultra's kernels, which environment.json keeps under model_source. set -euo pipefail CMD=${1:?usage: serve.sh pipeline|run [kit args]}; shift python -c "import torch; print('torch', torch.__version__, torch.cuda.get_device_name(0), torch.cuda.get_device_capability(0))" python -c "import causal_conv1d; print('causal-conv1d', causal_conv1d.__version__)" 2>/dev/null \ || echo "causal-conv1d not installed: d3-ultra uses the PyTorch reference convolution" exec python -m decision_index "$CMD" --engine logits_sigma_1_duo.engine_pair:Duo --option model="${MODEL:-/models/duo}" "$@"