Skip to content

fix(chat_web): validate ,--num-gpus against available GPUs for clear s…#573

Open
dhunganapramod9 wants to merge 1 commit intokarpathy:masterfrom
dhunganapramod9:fix/num-gpus-validation
Open

fix(chat_web): validate ,--num-gpus against available GPUs for clear s…#573
dhunganapramod9 wants to merge 1 commit intokarpathy:masterfrom
dhunganapramod9:fix/num-gpus-validation

Conversation

@dhunganapramod9
Copy link

Using --num-gpus greater than available GPUs led to a later CUDA error. Added an upfront check and raise a clear ValueError with the requested and available counts.

Copy link
Collaborator

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

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

What does the "normal" CUDA error look like? I think it's also quite informative/clear, no?

@svlandeg svlandeg added the UX label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants