BodyModel::set_backbone_fp8 quantises every backbone weight to E4M3 with a per-tensor absmax scale and runs the tensor-core FP8 GEMM (bias broadcast after). A backend without FP8 turns it off per layer on the first refusal, so Metal keeps bf16. The oracle test reports its accuracy and timing next to bf16; the default stays bf16 until the numbers say otherwise. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
12 lines
514 B
TOML
12 lines
514 B
TOML
[package]
|
|
name = "makepad-ai-body"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "SAM 3D Body native port: DINOv3 ViT-H+/16 backbone, promptable pose decoder, MHR rig. Our own implementation on the makepad-ai-common gpu_* surface; weights are the Comfy-Org repack, pulled at runtime."
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
makepad-ai-common = { path = "../common" }
|
|
makepad-ai-loader = { path = "../../loader" }
|
|
# Only for its FP8 E4M3 encoder (the optional FP8 backbone mode).
|
|
makepad-ai-flux = { path = "../flux" }
|