Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@Jack-Khuu
Copy link
Contributor

@Jack-Khuu Jack-Khuu commented Aug 3, 2024

Prompt and num_samples were restricted from suppressed arg (always accepted as CLI arg even when not used by subcommand) to being restricted to generate in #987.

But this PR missed a call site. This updates the callsite that was missed to not access the field without checking for existence

Tested that both these commands no longer crash with accessing unavailable fields:

  • python3 torchchat.py generate llama3.1
  • python3 torchchat.py server llama3.1

Fixes: #1003

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 3, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2ee35fb with merge base f0b2df7 (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 Aug 3, 2024
@Jack-Khuu Jack-Khuu merged commit 9e09fdc into main Aug 3, 2024
@Jack-Khuu
Copy link
Contributor Author

Force land to fix branch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

No attribute 'prompt' and 'num_samples'

3 participants