Functioncopy_weights_falcon(
size: Literal['7b', '40b'],
state_dict: Dict[str, torch.Tensor],
lit_weights: Dict[str, Union[to
convert/convert_lit_to_hf.py:51
Functioncopy_weights_llama(
config: Config,
state_dict: Dict[str, torch.Tensor],
lit_weights: Dict[str, Union[torch.Tensor,
convert/convert_lit_to_hf.py:135
Functioncopy_weights_llama_2(
config: Config,
state_dict: Dict[str, torch.Tensor],
lit_weights: Dict[str, Union[torch.Tensor,
convert/convert_lit_to_hf.py:187
Methodforward x: (batch_size, seqlen, nheads, headdim) cos, sin: (seqlen, rotary_dim / 2) interleaved: if True, rotate pairs of
lit_gpt/fused_rotary_embedding.py:12
Methodlazy_rebuild_tensor_v2(storage: Any, storage_offset: Any, size: Any, stride: Any,
requires_grad: Any,
tokenizer/convert/convert.py:806