mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
feat: add num_tokens as attribtue for VlmPrediction
This commit is contained in:
@@ -313,5 +313,6 @@ class HuggingFaceMlxModel(BaseVlmPageModel, HuggingFaceModelDownloadMixin):
|
||||
text=decoded_output,
|
||||
generation_time=generation_time,
|
||||
generated_tokens=tokens,
|
||||
num_tokens = len(tokens)
|
||||
)
|
||||
_log.debug("MLX model: Released global lock")
|
||||
|
||||
Reference in New Issue
Block a user