Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using gpt4all for same code #6

Open
VishnuAK9000 opened this issue Jun 14, 2023 · 0 comments
Open

using gpt4all for same code #6

VishnuAK9000 opened this issue Jun 14, 2023 · 0 comments

Comments

@VishnuAK9000
Copy link

I replaced the open ai llm with gpt4all llm but I am getting following error

AttributeError: 'LLModel' object has no attribute 'model_type'
Traceback:
File "C:\Users\vishnu.a2\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "D:\langchain_csv-main\interface.py", line 66, in
agent = create_agent(data)
^^^^^^^^^^^^^^^^^^
File "D:\langchain_csv-main\agent.py", line 20, in create_agent
llm = GPT4All(model=local_path, n_ctx=1000, backend='gptj', n_batch=8, callbacks=callbacks, verbose=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic\main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1102, in pydantic.main.validate_model
File "C:\Users\vishnu.a2\AppData\Roaming\Python\Python311\site-packages\langchain\llms\gpt4all.py", line 156, in validate_environment
values["backend"] = values["client"].model.model_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant