Implement the QLoRA forward pass qlora_forward(x, quantized_W, scale, zero_point, A, B, alpha=1.0): frozen integer weights are dequantized, then a full-precision low-rank LoRA update is added.
Shapes: x (batch_size, in_features), quantized_W (in_features, out_features), B (in_features, rank), A (rank, out_features).
Dequantize:
Output: with the rank (number of rows of A). Return as a list of lists of floats, shape (batch_size, out_features).