Relative Content

Tag Archive for pythonlarge-language-model

ModuleNotFoundError: No module named ‘transformers.models.phi3’

When I try to run a LLM named ChatGLM3 in Aliyun, I run a python script to run a demo,but it comes out an error like this.enter image description here
How to solve it ?the LLM‘s github link is text,another py file named
streamlit run web_demo_streamlit.py is ok,but this py file python web_demo_gradio.py will end with this bug

ModuleNotFoundError: No module named ‘transformers.models.phi3’

When I try to run a LLM named ChatGLM3 in Aliyun, I run a python script to run a demo,but it comes out an error like this.enter image description here
How to solve it ?the LLM‘s github link is text,another py file named
streamlit run web_demo_streamlit.py is ok,but this py file python web_demo_gradio.py will end with this bug

RAG pipeline help request

I’m a bit new to the whole RAG pipeline thing and find myself being a bit lost in the endless possibilities of building one. My goal is to create a script that can transform about 60 anatomical pdfs into a vector store database and use this to answer questions about body parts and return the references to the pages of the pdfs where that information was taken from.

TypeError: Object of type PhiConfig is not JSON serializable

model_id = “vikhyatk/moondream2” revision = “2024-05-08” model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, revision=revision) tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision) Above is my code cell, i am getting the error: TypeError: Object of type PhiConfig is not JSON serializable. What should i do? Kindly guide. python large-language-model New contributor Areeba is a new contributor to this site. Take care in […]