(params, config)
| 72 | |
| 73 | |
| 74 | def deploy_quantize(params, config): |
| 75 | spec = getattr(config, "weight_bits", "") or "" |
| 76 | if spec: |
| 77 | bits_map, default_bits = parse_bits_map(spec) |
| 78 | return cq_mixed_params(params, bits_map, default_bits), spec |
| 79 | return (cq_quantize_params(params, _WEIGHT_BITS, _WEIGHT_GROUP), |
| 80 | f"CQ W{_WEIGHT_BITS}") |
| 81 | |
| 82 | |
| 83 | def weight_bits(): |
nothing calls this directly
no test coverage detected