This repository was archived by the owner on Sep 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Fix help generate #891
Merged
Merged
Fix help generate #891
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/891
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d71edb6 with merge base a0962d1 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
… fix-help-generate
byjlw
approved these changes
Jul 10, 2024
| echo "*************************************************" | ||
| if [ "$DTYPE" != "float16" ]; then | ||
| python3 -W ignore export.py --dtype ${DTYPE} --quant "$QUANT_OPTIONS" --checkpoint-path "$CHECKPOINT_PATH" --output-dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" || exit 1 | ||
| python3 -W ignore eval.py --dtype ${DTYPE} --checkpoint-path "$CHECKPOINT_PATH" --temperature 0 --dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" --limit 5 > "$MODEL_DIR/output_eval_aoti" || exit 1 |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we dropping temperature 0 here? Won't this impact eval?
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eval currently doesn't use the field at all....
I have a non-MVP task mentioning this, seems like gptfast doesn't take a temp arg either
fduwjj
pushed a commit
that referenced
this pull request
Jul 11, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
malfet
pushed a commit
that referenced
this pull request
Jul 17, 2024
* Fixing the help mode of the download subcommand * Initial Addition of subparsers for generation * Move compile out of generation exclusive * typo * Fix test by removing temperature, which is a field eval doesn't use or expect * Typo Generater => Generator
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current --help is a mess; it uses a giant
add_arguments_for_verbfunction that doesn't actually filter based on the provided verb subcommand.This PR is part of a series to clean up this behavior.
Specifically, this PR separates out the commands that are unique to output generation into an
_add_generation_argsfunction. This function adds an argument group with the parameters fromadd_arguments_for_verbonly for the subcommands that need it (chat/browser/generate).Note: This PR does not attempt to rearrange or prettify the args. This makes reviewing simpler. Those are done in separate PRs.
python3 torchchat.py generate --help
python3 torchchat.py eval --help
Note that only Eval does not have the arguments of Generate and vice-versa