You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FP32 and TF32 are the baseline and already supported.
FP16 and BF16 with FP32 accumulation are considered mandatory for practical ML workloads and are planned next.
Automatic mixed precision (AMP), loss scaling, and quantized INT8 execution are intentionally excluded from v0.x to keep the API simple and predictable.
Explicit cast() operations are preferred over implicit type promotion, following NumPy-style semantics.
Scope Clarification (Non-goals for v0.x)
Automatic AMP
INT8 / quantized kernels
Training-specific features (loss scaling, stochastic rounding)
These may be considered after the runtime becomes fully CUDA Toolkit–independent and the core API stabilizes.
Activity
m96-chan commentedon Dec 14, 2025
FP16/BF16 Support Implementation Complete
FP16 (float16) and BF16 (bfloat16) support has been implemented for all core operators.
Implementation Summary
C++ Native Backend:
Float16andBFloat16toDataTypeenum innative/core/types.hppnative/ops/matmul_f16_bf16.cuhPython API:
float16andbfloat16DataType objects inpygpukit.core.dtypesGPUArray._wrap_native()to handle Float16/BFloat16float16andbfloat16inpygpukit.__init__Pybind11 Bindings:
from_numpy()to detectnp.float16andnp.uint16(for BF16)to_numpy()to create appropriate output arraysUpdated Status Table
Test Results
All 166 existing tests pass. Comprehensive FP16/BF16 tests (22 additional tests) all pass:
Notes
uint16storage in NumPy (no native bfloat16 type)wip(#58): add FP16/BF16 support and reduction ops
feat(#58): add operator overloads and astype method to GPUArray
v0.2.5: FP16/BF16 support, TF32 optimization, reduction ops (#61)
m96-chan commentedon Dec 15, 2025
Completed in v0.2.5
FP16/BF16 Data Types
gpk.float16andgpk.bfloat16dtypesastype()method for dtype conversionElementwise Operations
All elementwise ops now support FP16/BF16:
+,-,*,/Matrix Multiplication
Benchmark Results (RTX 3090 Ti)
PR: #61