MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / _wrapper

Function _wrapper

lm-eval-harness/lm_eval/utils.py:281–288  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

279
280 @functools.wraps(fn)
281 def _wrapper(*args, **kwargs):
282 if len(args) != 1 if inspect.ismethod(fn) else 0:
283 print(
284 f"WARNING: using {fn.__name__} with positional arguments is "
285 "deprecated and will be disallowed in a future version of "
286 "lm-evaluation-harness!"
287 )
288 return fn(*args, **kwargs)
289
290 return _wrapper
291

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected