Comments (5)
Was this an API change in a newer version of torch? Because the README example definitely works, or used to!
from hummingbird.
Hi! Just change rfmodel.to('cpu')
to rfmodel = rfmodel.to('cpu')
. This should work.
from hummingbird.
I think we have to update the readme.
https://github.com/microsoft/hummingbird#examples
# Use Hummingbird to convert the model to PyTorch
model = convert(skl_model, 'pytorch')
# Run predictions on CPU
model.predict(X)
# Run predictions on GPU
model.to('cuda')
model.predict(X)
from hummingbird.
I was not able to reproduce this issue with the latest (torch==2.1.0
), and the example in the documentation still worked as written for me.
@Bobby-youngking can you please post which versions you are using and a bit more info? you shouldn't have to reassign the model
from hummingbird.
Closing due to inactivity and we cannot repro, please reopen if you still have problems with this.
from hummingbird.
Related Issues (20)
- xgboost tweedie loss predictions do not match HOT 2
- Pandas 2.0.0 breaks pyspark which breaks our tests HOT 1
- New onnx - failed workflow run HOT 2
- PyTorch SGDClassifier `predict` result does not match Sklearn model
- Compilation issue in Prophet HOT 4
- AttributeError: 'NoneType' object has no attribute 'split' HOT 4
- [Question] Support for custom estimators and custom transformers HOT 7
- Update github actions vers
- How to compose hummingbird model with other torchscript models HOT 4
- TVM MacOS pipeline intermittent failures HOT 3
- incorrect prediction from torchscript model converted from xgboost classifier trained with multi-label dataset HOT 8
- Build is failing - SKL 1.3 release HOT 1
- TVM MacOS pipeline failing again HOT 1
- New LGBM Version 4.0.0 changes HOT 2
- TVM + Mac HOT 3
- Performing simple inference HOT 3
- XGBoost 2.0.0 breaks tests HOT 8
- Example cases for DecisionTreeClassifier HOT 2
- onnxruntime==1.16.0 release breaks tests HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hummingbird.