-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textattack for cuml models not utilising much GPU resources #790
Comments
@farwashah6, I'm curious how big your model is and how much GPU resource it should occupy. I've encountered perhaps a similar issue with |
Thanks for the suggestion. The models I am trying to use are SVM, Random Forest and Linear Regression. So not big at all. But the problem is that they are scikit learn models and they are not supported by GPU and when I use CUML library, I encounter this problem. |
I work on RAPIDS at NVIDIA and came across this issue due to the cuML reference. I've seen this error come up in scenarios where a downstream function expects a data structure that support the If you're running into scenarios in which a cuML model's output or behavior isn't consistent with scikit-learn (particularly if you're passing in CPU-based inputs), could you file an issue on cuML? If you can provide a minimal, reproducible example of your error we may be able to help triage it. |
Thank you for the suggestion and yes I have also posted the issue on cuML and attached a sample code.
|
Hi. I am new to using GPU. I have used the Textattack library earlier for one of my projects using Sklearn and Keras models. For that I created the customModelWrappers according to my models and they worked fine. Now since my data is different and very big, I want to implement it using GPU for the same (sklearn) models.
I have the understanding that sklearn models do not implement on GPU and I have to use CUML instead. But when I use CUML, and pass the cuml model to the CustomModelWrapper I created earlier, it gives me the following error
len() of unsized object
and then stops the execution.
Additional Info: For vectorisation of my data I am using CountVectorizer of cuml, which is the cause of this error. Instead when I use CountVectorizer of sklearn it does the attack but doesn't use much GPU resources (of course). Please help me in this.
I am attaching my modelWrapper here.
The text was updated successfully, but these errors were encountered: