Implement int8 symmetric per-channel weight quantization and dequantization for a linear l

Prefill, Decode, and KV Cache Memory2 / 5

Chapter 022 / 5

Prefill, Decode, and KV Cache Memory

Implement int8 symmetric per-channel weight quantization and dequantization for a linear l

Medium

Implement int8 symmetric per-channel weight quantization and dequantization for a linear layer.

Target interface
quantize_per_channel(W)

Complete the starter code in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.