Closed alexsiu398 closed 4 months ago
Hey @alexsiu398 - sorry we never got back to you before. We could not replicate your previous errors.
However, have you tried deepseekcoder with the latest package. The codebase has changed a lot since your last message.
I just tested with deepseekcoder and it at least seems to work with some simple use cases - haven't tested performance with more complex things):
from lavague.drivers.selenium import SeleniumDriver
from lavague.core import ActionEngine, WorldModel
from lavague.core.agents import WebAgent
from lavague.core.logger import AgentLogger
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
from llama_index.llms.huggingface import HuggingFaceLLM
driver = SeleniumDriver(headless=True)
llm = HuggingFaceLLM(model_name="deepseek-ai/deepseek-coder-6.7b-instruct")
embedding = HuggingFaceEmbedding(
model_name="BAAI/bge-small-en-v1.5"
)
action_engine = ActionEngine(driver=driver, llm=llm, embedding=embedding)
world_model = WorldModel()
agent = WebAgent(world_model, action_engine)
agent.get("https://huggingface.co/")
agent.run("what is the top model")
Things to note: 1) You might want to change headless to False if you have an environment with access to the browser so you can visualize what's going on in the browser window - I had set it to True here 2) I still use OpenAI for the multi-modal LLM because I am not aware of an open-source solution yet that works well
I will close this issue for now since it is an old one now- feel free to ping us on Discord or on your more recent issue to discuss further.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior No error and actions performed for the instructions