"git@developer.sourcefind.cn:change/sglang.git" did not exist on "2ec39ab712245e89c0897a9cc2aa257b0c577c8d"
allow skipping inference when running evaluation.
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/354 Allow skipping inference when running evaluation. * `inference_on_dataset_with_checkpointing` works similar to `inference_on_dataset` in d2 but allows skipping the inference step if the evaluator has cached the results. * If the evaluator has a function `could_skip_process` and returns True, inference will be skipped and only `evaluator. reset()` and `evaluator.evaluate()` are called. Reviewed By: wat3rBro Differential Revision: D37213004 fbshipit-source-id: d12cc480589ff04fd8dbb42b22633ab34bc4bf63
Showing
d2go/evaluation/evaluator.py
0 → 100644
Please register or sign in to comment