Skip to content

Add example notebooks#4

Merged
maskedsyntax merged 2 commits intomasterfrom
example-notebooks
Apr 10, 2026
Merged

Add example notebooks#4
maskedsyntax merged 2 commits intomasterfrom
example-notebooks

Conversation

@maskedsyntax
Copy link
Copy Markdown
Member

Summary

  • ResNet18 edge deployment notebook: profile, fuse Conv+BN, prune 40%, quantize INT8, benchmark latency, export to ONNX.
  • BERT-tiny quantization notebook: low-rank SVD decomposition + INT4 weight-only quant with before/after latency benchmarks.
  • README links to examples, CHANGELOG entry.

Depends on #3 (benchmarking module).

Test plan

  • Ruff clean
  • 174 tests pass
  • Run notebooks end-to-end (requires torchvision for ResNet18 notebook)

Adds cx.benchmark() and cx.compare_benchmarks() for measuring real
inference latency with warmup, percentiles, and throughput. Includes
a 'comprexx bench' CLI command and README/CHANGELOG entries.
…tion

Two Jupyter notebooks demonstrating end-to-end workflows:
- ResNet18: profile, fuse, prune, quantize, benchmark, export to ONNX
- BERT-tiny: low-rank decomposition + INT4 weight quant with benchmarks
@maskedsyntax maskedsyntax merged commit fb6db87 into master Apr 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant