MCPcopy Create free account
hub / github.com/Aveiro-Lin/GraphiContact / from_dict

Method from_dict

src/bitsandbytes/bitsandbytes/functional.py:687–735  ·  view source on GitHub ↗

unpacks components of state_dict into QuantState where necessary, convert into strings, torch.dtype, ints, etc. qs_dict: based on state_dict, with only relevant keys, striped of prefixes. item with key `quant_state.bitsandbytes__[nf4/fp4]` may contain minor and non

(cls, qs_dict: Dict[str, Any], device: torch.device)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

from_prequantizedMethod · 0.45

Calls 7

unpack_tensor_to_dictFunction · 0.90
splitMethod · 0.80
popMethod · 0.80
itemsMethod · 0.45
updateMethod · 0.45
keysMethod · 0.45
toMethod · 0.45

Tested by

no test coverage detected