MCPcopy Create free account
hub / github.com/cactus-compute/needle / noise_params

Function noise_params

needle/model/quantize.py:269–273  ·  view source on GitHub ↗
(params, key, scale, group_size=CQ_GROUP_SIZE)

Source from the content-addressed store, hash-verified

267
268
269def noise_params(params, key, scale, group_size=CQ_GROUP_SIZE):
270 return _map_quant_leaves(
271 params,
272 lambda w, i: add_cq_noise(w, jax.random.fold_in(key, i), scale, group_size),
273 )
274
275
276def noise_params_only(params, key, scale, name, group_size=CQ_GROUP_SIZE):

Callers

nothing calls this directly

Calls 2

_map_quant_leavesFunction · 0.85
add_cq_noiseFunction · 0.85

Tested by

no test coverage detected