Previously scalar_tensor() rejected BF16 and F16 with an error, blocking BF16 training for Mamba2. Now BF16/F16 scalars are created as F32 then cast to the target dtype, matching Candle's internal precision requirements while supporting half-precision training. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>