Hi good people. I built a simple Neural QA app that can easily be used for other documents. The pre-processing is done in another repo, so this is only minimal code for making it work.
Fancy, @jonas-nothnagel and nice idea using haystack, I thought about doing the same.
I’d guess it is cauz of streamlit server issues. Maybe you can share the detailed error messages in the log?If the reason is got out-of-memory, @amey-st might help.
Hi @jonas-nothnagel, the app has already crashed, I couldn’t open it
I just had a quick look at your code, you are using distilbert which is memory consuming.
Try to delete the model and all the variables after the execution of your script
del tokenizer, model, bi_encoder, question_embedding, ...
Otherwise, it will be stored and accumulated in the memory leading to exceeding the 800 MB RAM limit. (This solved the problem with my app)
hi @chris_klose I haven’t ended up using haystack actually, even though I think it is probably the best available model out there. Should change the description.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.