Module common

Source
Expand description

Common functions for model evaluation

Functionsยง

extract_embeddings
Extract embeddings from OutputRequest evaluation
extract_logits
Extract logits from OutputRequest evaluation
prepare_for_evaluate
Common code to prepare a model to evaluate input
read_last_token
Return result for just the last token
update_session
Update an InferenceSession after evaluation