StephanST/C-radiov4_quantized

Model

0

stars

29

commits

1

linked in READMEs

May 22, 2026

updated

apple-silicon
c-radio
embeddings
image-feature-extraction
mlx
quantized
safetensors
vision
Browse cluster: MLX and Apple Silicon ML Models

README

C-RADIOv4 Quantized MLX Bundles

This repository contains self-contained MLX bundles for NVIDIA C-RADIOv4 image embedding models on Apple Silicon.

Implementation repository:

https://github.com/stephansturges/c-radio_v4_MLX

Repository Structure

PathModelFormatStatus
so400m/8bit-affinenvidia/C-RADIOv4-SO400M8-bit affine, group size 64Compact/high-precision, not a throughput tier
h/8bit-affinenvidia/C-RADIOv4-H8-bit affine, group size 64Compact/high-precision, not a throughput tier
so400m/cider-w8a8nvidia/C-RADIOv4-SO400MCider W8A8, per-channelM5+ compact/runtime low-bit
h/cider-w8a8nvidia/C-RADIOv4-HCider W8A8, per-channelM5+ compact/runtime low-bit
so400m/cider-w8a8-g128nvidia/C-RADIOv4-SO400MCider W8A8, group size 128M5+ balanced precision/speed
h/cider-w8a8-g128nvidia/C-RADIOv4-HCider W8A8, group size 128M5+ balanced precision/speed
so400m/cider-w8a8-p9999nvidia/C-RADIOv4-SO400MCider W8A8, 99.99 percentile clipM5+ fastest experimental
h/cider-w8a8-p9999nvidia/C-RADIOv4-HCider W8A8, 99.99 percentile clipM5+ fastest experimental
so400m/mxfp8nvidia/C-RADIOv4-SO400Mmxfp8, group size 32Experimental/lower precision, not recommended
h/mxfp8nvidia/C-RADIOv4-Hmxfp8, group size 32Experimental/lower precision, not recommended

Each subdirectory contains:

  • model.safetensors
  • manifest.json
  • upstream config and preprocessor metadata
  • a subdirectory README.md with model-specific provenance, measurements, and usage

Source Models

Accuracy Summary

Measured against local bf16 MLX bundles at 512x512 on 12 WALDO crop images.

BundleSummary cosine mean/minSpatial cosine mean/min
so400m/8bit-affine0.999907 / 0.9998680.999930 / 0.999876
h/8bit-affine0.999899 / 0.9998780.999830 / 0.999764
so400m/mxfp80.989820 / 0.9507170.993502 / 0.977879
h/mxfp80.990217 / 0.9747100.988696 / 0.976071

The 8-bit affine bundles are the recommended compact/high-precision artifacts, not the throughput tier. They are packed weight-only MLX artifacts and are not dequantized back to dense bf16 at load time. Cider W8A8 is the real weight/activation low-bit runtime path for Apple M5+ machines and trades a little more embedding drift for lower memory and modest speedups in some cells. The mxfp8 bundles are included for experimentation and are lower precision in these checks.

Smoke-image Cider W8A8 precision versus local bf16 MLX at 512x512:

BundleSummary cosineSpatial cosine
so400m/cider-w8a80.9981640.998889
h/cider-w8a80.9972020.996210

WALDO 12-image Cider W8A8 precision versus local bf16 MLX at 512x512:

BundleSummary cosine mean/minSpatial cosine mean/min
so400m/cider-w8a8-g1280.998808 / 0.9984600.999269 / 0.998657
h/cider-w8a8-g1280.997935 / 0.9974360.997821 / 0.996704
so400m/cider-w8a8-p99990.998638 / 0.9981120.999240 / 0.998586
h/cider-w8a8-p99990.997642 / 0.9969780.997628 / 0.996634

Speed Summary

MLX measurements on Apple M5 Max at 512x512, batch 1:

Bundlep50 latencyThroughput
so400m/8bit-affine49.6 ms20.2 images/s
h/8bit-affine74.2 ms13.5 images/s
so400m/cider-w8a832.5 ms30.8 images/s
h/cider-w8a847.1 ms21.2 images/s
so400m/cider-w8a8-g12831.3 ms32.0 images/s
h/cider-w8a8-g12848.3 ms20.7 images/s
so400m/cider-w8a8-p999929.8 ms33.5 images/s
h/cider-w8a8-p999943.7 ms22.9 images/s
so400m/mxfp849.8 ms20.1 images/s
h/mxfp852.6 ms19.0 images/s

There are no supported dequantize-at-load artifacts in this repository. The MLX affine and mxfp8 bundles keep weights packed but are weight-only, so they prioritize compact storage and lower runtime weight memory over throughput. Cider W8A8 is the faster weight/activation low-bit runtime path found so far, but it requires Apple M5+ hardware and the optional Cider package.

Usage

Install the implementation package from the GitHub repository, then point --checkpoint at one of the downloaded subdirectories:

cradio-mlx embed \
  --backend mlx-so400m \
  --checkpoint so400m/8bit-affine \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

The g128 variants are the balanced Cider choice. The p99.99 variants are faster and slightly lower precision; validate them against downstream task metrics before replacing bf16 or g128.

Use --backend mlx-h for the H model:

cradio-mlx embed \
  --backend mlx-h \
  --checkpoint h/8bit-affine \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

Cider W8A8 bundles require Python >=3.12, Apple M5+ hardware, and Cider:

python -m pip install "cider @ git+https://github.com/Mininglamp-AI/cider.git"
cradio-mlx embed \
  --backend mlx-h \
  --checkpoint h/cider-w8a8 \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

License

The implementation code in c-radio_v4_MLX is MIT licensed. The model weights and these converted bundles are governed by NVIDIA's Open Model License Agreement, not by the MIT license. Preserve NVIDIA provenance and license terms when redistributing these bundles.

NVIDIA Open Model License Agreement:

https://developer.download.nvidia.com/licenses/nvidia-open-model-license-agreement-june-2024.pdf

Contributors

StephanST

29 commits

StephanST/C-radiov4_quantized

Model

0

stars

29

commits

1

linked in READMEs

May 22, 2026

updated

apple-silicon
c-radio
embeddings
image-feature-extraction
mlx
quantized
safetensors
vision
Browse cluster: MLX and Apple Silicon ML Models

README

C-RADIOv4 Quantized MLX Bundles

This repository contains self-contained MLX bundles for NVIDIA C-RADIOv4 image embedding models on Apple Silicon.

Implementation repository:

https://github.com/stephansturges/c-radio_v4_MLX

Repository Structure

PathModelFormatStatus
so400m/8bit-affinenvidia/C-RADIOv4-SO400M8-bit affine, group size 64Compact/high-precision, not a throughput tier
h/8bit-affinenvidia/C-RADIOv4-H8-bit affine, group size 64Compact/high-precision, not a throughput tier
so400m/cider-w8a8nvidia/C-RADIOv4-SO400MCider W8A8, per-channelM5+ compact/runtime low-bit
h/cider-w8a8nvidia/C-RADIOv4-HCider W8A8, per-channelM5+ compact/runtime low-bit
so400m/cider-w8a8-g128nvidia/C-RADIOv4-SO400MCider W8A8, group size 128M5+ balanced precision/speed
h/cider-w8a8-g128nvidia/C-RADIOv4-HCider W8A8, group size 128M5+ balanced precision/speed
so400m/cider-w8a8-p9999nvidia/C-RADIOv4-SO400MCider W8A8, 99.99 percentile clipM5+ fastest experimental
h/cider-w8a8-p9999nvidia/C-RADIOv4-HCider W8A8, 99.99 percentile clipM5+ fastest experimental
so400m/mxfp8nvidia/C-RADIOv4-SO400Mmxfp8, group size 32Experimental/lower precision, not recommended
h/mxfp8nvidia/C-RADIOv4-Hmxfp8, group size 32Experimental/lower precision, not recommended

Each subdirectory contains:

  • model.safetensors
  • manifest.json
  • upstream config and preprocessor metadata
  • a subdirectory README.md with model-specific provenance, measurements, and usage

Source Models

Accuracy Summary

Measured against local bf16 MLX bundles at 512x512 on 12 WALDO crop images.

BundleSummary cosine mean/minSpatial cosine mean/min
so400m/8bit-affine0.999907 / 0.9998680.999930 / 0.999876
h/8bit-affine0.999899 / 0.9998780.999830 / 0.999764
so400m/mxfp80.989820 / 0.9507170.993502 / 0.977879
h/mxfp80.990217 / 0.9747100.988696 / 0.976071

The 8-bit affine bundles are the recommended compact/high-precision artifacts, not the throughput tier. They are packed weight-only MLX artifacts and are not dequantized back to dense bf16 at load time. Cider W8A8 is the real weight/activation low-bit runtime path for Apple M5+ machines and trades a little more embedding drift for lower memory and modest speedups in some cells. The mxfp8 bundles are included for experimentation and are lower precision in these checks.

Smoke-image Cider W8A8 precision versus local bf16 MLX at 512x512:

BundleSummary cosineSpatial cosine
so400m/cider-w8a80.9981640.998889
h/cider-w8a80.9972020.996210

WALDO 12-image Cider W8A8 precision versus local bf16 MLX at 512x512:

BundleSummary cosine mean/minSpatial cosine mean/min
so400m/cider-w8a8-g1280.998808 / 0.9984600.999269 / 0.998657
h/cider-w8a8-g1280.997935 / 0.9974360.997821 / 0.996704
so400m/cider-w8a8-p99990.998638 / 0.9981120.999240 / 0.998586
h/cider-w8a8-p99990.997642 / 0.9969780.997628 / 0.996634

Speed Summary

MLX measurements on Apple M5 Max at 512x512, batch 1:

Bundlep50 latencyThroughput
so400m/8bit-affine49.6 ms20.2 images/s
h/8bit-affine74.2 ms13.5 images/s
so400m/cider-w8a832.5 ms30.8 images/s
h/cider-w8a847.1 ms21.2 images/s
so400m/cider-w8a8-g12831.3 ms32.0 images/s
h/cider-w8a8-g12848.3 ms20.7 images/s
so400m/cider-w8a8-p999929.8 ms33.5 images/s
h/cider-w8a8-p999943.7 ms22.9 images/s
so400m/mxfp849.8 ms20.1 images/s
h/mxfp852.6 ms19.0 images/s

There are no supported dequantize-at-load artifacts in this repository. The MLX affine and mxfp8 bundles keep weights packed but are weight-only, so they prioritize compact storage and lower runtime weight memory over throughput. Cider W8A8 is the faster weight/activation low-bit runtime path found so far, but it requires Apple M5+ hardware and the optional Cider package.

Usage

Install the implementation package from the GitHub repository, then point --checkpoint at one of the downloaded subdirectories:

cradio-mlx embed \
  --backend mlx-so400m \
  --checkpoint so400m/8bit-affine \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

The g128 variants are the balanced Cider choice. The p99.99 variants are faster and slightly lower precision; validate them against downstream task metrics before replacing bf16 or g128.

Use --backend mlx-h for the H model:

cradio-mlx embed \
  --backend mlx-h \
  --checkpoint h/8bit-affine \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

Cider W8A8 bundles require Python >=3.12, Apple M5+ hardware, and Cider:

python -m pip install "cider @ git+https://github.com/Mininglamp-AI/cider.git"
cradio-mlx embed \
  --backend mlx-h \
  --checkpoint h/cider-w8a8 \
  --image image.jpg \
  --image-size 512 \
  --dtype bfloat16 \
  --save-npz embedding.npz

License

The implementation code in c-radio_v4_MLX is MIT licensed. The model weights and these converted bundles are governed by NVIDIA's Open Model License Agreement, not by the MIT license. Preserve NVIDIA provenance and license terms when redistributing these bundles.

NVIDIA Open Model License Agreement:

https://developer.download.nvidia.com/licenses/nvidia-open-model-license-agreement-june-2024.pdf

Contributors

StephanST

29 commits