Skip to content

Fix for CUDA issue#29

Merged
cplett merged 5 commits intofaccts:mainfrom
kevinkong98:main
Jan 20, 2026
Merged

Fix for CUDA issue#29
cplett merged 5 commits intofaccts:mainfrom
kevinkong98:main

Conversation

@kevinkong98
Copy link
Contributor

Fixes #28 and change to the UMA model offline mode (the previous cache detection when using offline mode have the logic flipped)

@CLAassistant
Copy link

CLAassistant commented Dec 27, 2025

CLA assistant check
All committers have signed the CLA.

@cplett cplett self-requested a review January 5, 2026 07:11
Copy link
Contributor

@cplett cplett left a comment

Choose a reason for hiding this comment

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

Hey,
Thank you very much for fixing this! Looks good to me.
There’s just one minor point regarding the warning that needs a bit of clarification. Once that’s addressed, I’ll merge the PR.

if self.check_for_model_files(basemodel=basemodel, cache_dir=cache_dir):
print(
"WARNING: No model files were detected. This might lead to subsequent errors."
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would there be any downside to keeping this warning? If not, I think it would make sense to leave it in place with the corrected logic:

            if not self.check_for_model_files(basemodel=basemodel, cache_dir=cache_dir):
                print(
                    "WARNING: No model files were detected. This might lead to subsequent errors."
                )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not really but seems counter intuitive that the check is done no matter what =)
assuming this check is basically free it should be fine either way

Copy link
Contributor

Choose a reason for hiding this comment

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

I've changed the model file detection a little. I hope this is fine by you.

@cplett cplett mentioned this pull request Jan 5, 2026
Signed-off-by: Christoph Plett <plett@faccts.de>
@cplett
Copy link
Contributor

cplett commented Jan 20, 2026

@kevinkong98 Thanks again for the contribution!

@cplett cplett merged commit f1c0388 into faccts:main Jan 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UMA Crash with -d cuda

3 participants