Stefano Baccianella

Results 9 comments of Stefano Baccianella

Sure thing, the repo is public https://huggingface.co/spaces/mangiucugna/difficult-conversations-bot/tree/main just upgrade gradio to latest to reproduce

Ok I have dug a bit deeper and the problem seems to be related to tiktoken, imported by langchain, that is importing the rust bindings, and those will definitely fail...

It’s definitely a bug in tiktoken, but is triggered by the PR I mentioned above. Not sure it’s possible to fix without reverting that PR (or we all try to...

btw, so that we are clear, PyO3 does not consider this a bug. The changelog says that since version 0.17 this is an expected behaviour, we can argue it's not...

yeah I agree, I have been going back and forth on a possible solution but there are too many libraries that use Rust bindings (some also inside gradio through orjson)...

I will try to make time in the coming days to test. I like the idea of reloading only some parts, in fact my understanding is that if we could...

So I tried it, it worked fine this way. Not sure how this tests the reload feature for you but it worked as expected

An update here, the folks over at tiktoken have upgraded to the latest pyo3 that seems to solve this problem https://github.com/openai/tiktoken/issues/141 I think now we need to wait for all...

just tried with latest and the error changed, so I guess progress :) ``` UserWarning: The NumPy module was reloaded (imported a second time). This can in some cases result...