Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Update] deepsparse.evaluate docstring #1615

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all 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
10 changes: 9 additions & 1 deletion src/deepsparse/evaluation/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
##########
Example command for evaluating a quantized MPT model from SparseZoo using the Deepsparse Engine.
The evaluation will be run using `lm-evaluation-harness` on `hellaswag` and `gsm8k` datasets:
deepsparse.eval zoo:mpt-7b-mpt_pretrain-base_quantized \
deepsparse.evaluate zoo:mpt-7b-mpt_pretrain-base_quantized \
--dataset hellaswag \
--dataset gsm8k \
--integration lm-evaluation-harness \
Expand Down Expand Up @@ -173,6 +173,14 @@ def main(
metrics,
integration_args,
):
"""
Evaluate MODEL_PATH on the various evaluation integrations

- MODEL_PATH can be path to an ONNX model, local directory
containing ONNX model (including all the auxiliary files)
or a SparseZoo stub

"""
# join datasets to a list if multiple datasets are passed
datasets = list(dataset) if not isinstance(dataset, str) else dataset
# format kwargs to a dict
Expand Down
Loading