Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/src/dynamo/sglang/llm_engine.py
Comment thread
ishandhanani marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@ async def generate(
"prompt_tokens": prompt_tokens,
"completion_tokens": completion_tokens,
"total_tokens": prompt_tokens + completion_tokens,
"prompt_tokens_details": (
{"cached_tokens": meta_info["cached_tokens"]}
if meta_info.get("cached_tokens")
else None
),
Comment thread
ishandhanani marked this conversation as resolved.
Resolved
}
prompt_payload = (
_shared_logprobs.extract_prompt_logprobs_from_sglang_meta(meta_info)
Expand Down
Loading