MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / batch_rows

Method batch_rows

examples/server/server.py:3871–3876  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3869
3870 @property
3871 def batch_rows(self) -> int:
3872 if self.kind != "text":
3873 if self.media is None:
3874 return 0
3875 return int(self.media.embeddings.shape[0])
3876 return len(self.text_tokens)
3877
3878 @property
3879 def decoder_position_increments(self) -> List[int]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected