NotImplementedError: Cannot copy out of meta tensor; no data! when i am deploying my ML app on streamlit i am facing this issue

I am getting this error when i am deploying my LLM on streamlit application i have whole code in 1 file which i am running by streamlit and this contain all my LLM and streamlit interfaces.

Hi @chirag_aswal,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.