{"action":"created","issue":{"url":"https://api.github.com/repos/explosion/spaCy/issues/2205","repository_url":"https://api.github.com/repos/explosion/spaCy","labels_url":"https://api.github.com/repos/explosion/spaCy/issues/2205/labels{/name}","comments_url":"https://api.github.com/repos/explosion/spaCy/issues/2205/comments","events_url":"https://api.github.com/repos/explosion/spaCy/issues/2205/events","html_url":"https://github.com/explosion/spaCy/issues/2205","id":313249704,"node_id":"MDU6SXNzdWUzMTMyNDk3MDQ=","number":2205,"title":"Entity Recognizer prediction on GPU","user":{"login":"tahirahmad2030","id":11959968,"node_id":"MDQ6VXNlcjExOTU5OTY4","avatar_url":"https://avatars2.githubusercontent.com/u/11959968?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirahmad2030","html_url":"https://github.com/tahirahmad2030","followers_url":"https://api.github.com/users/tahirahmad2030/followers","following_url":"https://api.github.com/users/tahirahmad2030/following{/other_user}","gists_url":"https://api.github.com/users/tahirahmad2030/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirahmad2030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirahmad2030/subscriptions","organizations_url":"https://api.github.com/users/tahirahmad2030/orgs","repos_url":"https://api.github.com/users/tahirahmad2030/repos","events_url":"https://api.github.com/users/tahirahmad2030/events{/privacy}","received_events_url":"https://api.github.com/users/tahirahmad2030/received_events","type":"User","site_admin":false},"labels":[{"id":785817829,"node_id":"MDU6TGFiZWw3ODU4MTc4Mjk=","url":"https://api.github.com/repos/explosion/spaCy/labels/gpu","name":"gpu","color":"676F6D","default":false},{"id":111380490,"node_id":"MDU6TGFiZWwxMTEzODA0OTA=","url":"https://api.github.com/repos/explosion/spaCy/labels/usage","name":"usage","color":"087EA6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-11T09:46:24Z","updated_at":"2018-12-20T23:03:46Z","closed_at":"2018-12-20T23:03:46Z","author_association":"NONE","body":"<!--- Please provide a summary in the title and describe your issue here.\r\nIs this a bug or feature request? If a bug, include all the steps that led to the issue.\r\n\r\nIf you're looking for help with your code, consider posting a question on StackOverflow instead:\r\nhttp://stackoverflow.com/questions/tagged/spacy -->\r\n\r\nIs there a way by which we can use GPU's to predict the spacy's entity recognizer?\r\nI am currently using pipe which makes it multi threaded and batching. I am looking for using GPU's to gain more performance boost. Can spacy use GPU for prediction?\r\n## Your Environment\r\n<!-- Include details of your environment. If you're using spaCy 1.7+, you can also type \r\n`python -m spacy info --markdown` and copy-paste the result here.-->\r\n* Operating System: Ubuntu\r\n* Python Version Used: 2.7\r\n* spaCy Version Used: 2.0.11\r\n* Environment Information: Ubuntu/Shell\r\n"},"comment":{"url":"https://api.github.com/repos/explosion/spaCy/issues/comments/449164144","html_url":"https://github.com/explosion/spaCy/issues/2205#issuecomment-449164144","issue_url":"https://api.github.com/repos/explosion/spaCy/issues/2205","id":449164144,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTE2NDE0NA==","user":{"login":"honnibal","id":8059750,"node_id":"MDQ6VXNlcjgwNTk3NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8059750?v=4","gravatar_id":"","url":"https://api.github.com/users/honnibal","html_url":"https://github.com/honnibal","followers_url":"https://api.github.com/users/honnibal/followers","following_url":"https://api.github.com/users/honnibal/following{/other_user}","gists_url":"https://api.github.com/users/honnibal/gists{/gist_id}","starred_url":"https://api.github.com/users/honnibal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honnibal/subscriptions","organizations_url":"https://api.github.com/users/honnibal/orgs","repos_url":"https://api.github.com/users/honnibal/repos","events_url":"https://api.github.com/users/honnibal/events{/privacy}","received_events_url":"https://api.github.com/users/honnibal/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T23:03:46Z","updated_at":"2018-12-20T23:03:46Z","author_association":"MEMBER","body":"Before loading the model, you should now be able to do:\r\n\r\n```python\r\n\r\nimport spacy\r\nspacy.prefer_gpu()\r\nnlp = spacy.load('en_core_web_md')\r\n```\r\n\r\nThere's another function, `spacy.require_gpu()`, which should raise an error if the GPU is unavailable."}}
{"actor":{"display_login":"honnibal"}}