Comments (1)
@GirishPatel
We need to pass a device parameter to pipeline and it will automatically leverage GPU.
https://discuss.huggingface.co/t/pytorch-nlp-model-doesn-t-use-gpu-when-making-inference/1160/3
https://huggingface.co/transformers/main_classes/pipelines.html
So we have two choice. Either add variable a variable use_gpu
in all transformer's based analyzer class. So use can control whether they want to use GPU or not. Default should be use GPU as CPU so it will work for all platforms. Let me know WDYT?
Sample https://github.com/deepset-ai/haystack/blob/master/haystack/summarizer/transformers.py
from obsei.
Related Issues (20)
- [BUG] Google News only return 100 query even if max_results is set at 1000 HOT 4
- [BUG] Facebook source failing with unexpected keyword `long_term_token`
- Integrate Freshdesk, Salesforce and SAP
- [BUG] Import issue on Python 3.7 version
- Make StrongCopyleft dependencies optional HOT 1
- [Observer] Youtube comments integration HOT 1
- google Colab getting "no module named 'dateparser'" HOT 11
- ModuleNotFoundError: No module named 'torch' HOT 5
- [BUG] TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType' HOT 5
- [BUG]TwitterSourceConfig - AttributeError: At least one non empty parameter required (query, keywords, hashtags, and usernames) HOT 5
- [Observer] Add Youtube Transcript support
- [BUG] Map Review observer not honouring cutoff date
- More granular dependency division to choose analyzer dependencies
- Tiyaro API integration for analyzer HOT 1
- Fix obsei website
- OpenAI GPT3 integration as analyzer
- UNNABLE to import NER ANALYZER not found . HOT 1
- [BUG] Runtime error Demo version . HOT 5
- [BUG] pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package HOT 1
- [BUG] Tutorial 4 first step for Google Collab - pip install obsei[all] partially fails with a pip dependency error HOT 1
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 obsei.