MCPcopy
hub / github.com/FoundationVision/LlamaGen / empty

Method empty

autoregressive/serve/model_runner.py:56–68  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

54
55 @classmethod
56 def empty(cls):
57 return PreparePromptMetadata(
58 input_tokens=[],
59 input_positions=[],
60 attn_metadata=None,
61 prompt_lens=[],
62 subquery_lens=[],
63 lora_index_mapping=[],
64 lora_prompt_mapping=[],
65 lora_requests=set(),
66 multi_modal_input=None,
67 slot_mapping=[],
68 )
69
70
71class PrepareDecodeMetadata(NamedTuple):

Callers 5

_prepare_promptMethod · 0.45
_prepare_decodeMethod · 0.45
capture_modelMethod · 0.45
_sample_with_torchFunction · 0.45
generateFunction · 0.45

Calls 1

Tested by

no test coverage detected