Skip to content

Conversation

Jack-Khuu
Copy link
Contributor

When exporting, an export path is required. This PR makes this explicit

python torchchat.py export stories15M

usage: torchchat export [-h] [--checkpoint-path CHECKPOINT_PATH] (--output-pte-path OUTPUT_PTE_PATH | --output-dso-path OUTPUT_DSO_PATH) [--dtype {fp32,fp16,bf16,float,half,float32,float16,bfloat16,fast,fast16}] [--quantize QUANTIZE] [--device {fast,cpu,cuda,mps}]
                        [--hf-token HF_TOKEN] [--model-directory MODEL_DIRECTORY] [-v] [--seed SEED]
                        [model]
torchchat export: error: one of the arguments --output-pte-path --output-dso-path is required

Solving #969

Copy link

pytorch-bot bot commented Jul 30, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/970

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 46b4aa3 with merge base b2c3f26 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 30, 2024
Jack-Khuu and others added 5 commits July 30, 2024 09:50
…omization.md (#967)

* Update quantization.md

* Push precision into the customization and removed duplicate info from quantization

* Update docs README to call out vetted files
@Jack-Khuu
Copy link
Contributor Author

Rebase onto main

@@ -165,7 +165,7 @@ def _add_export_output_path_args(parser, verb: str) -> None:
"Export Output Path" if is_export else None,
"Specify the output path for the exported model files" if is_export else None,
)
exclusive_parser = output_path_parser.add_mutually_exclusive_group()
exclusive_parser = output_path_parser.add_mutually_exclusive_group(required=is_export)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only actual change. Everything else is rebase artifact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants