MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / forward

Method forward

models/quantization.py:278–282  ·  view source on GitHub ↗
(ctx, input, qweight, scales, qzeros, g_idx, bits, maxq)

Source from the content-addressed store, hash-verified

276 @staticmethod
277 @custom_fwd(cast_inputs=torch.float16)
278 def forward(ctx, input, qweight, scales, qzeros, g_idx, bits, maxq):
279 output = matmul248(input, qweight, scales, qzeros, g_idx, bits, maxq)
280 ctx.save_for_backward(qweight, scales, qzeros, g_idx)
281 ctx.bits, ctx.maxq = bits, maxq
282 return output
283
284 @staticmethod
285 @custom_bwd

Callers

nothing calls this directly

Calls 1

matmul248Function · 0.85

Tested by

no test coverage detected