Hello,
thanks for making this but I've confronted some issues when I'm trying to give AUTOGPT an objective. Since I'm not well instructed in coding, I barely figured out that it's to do with my installation problem with Jax and transformers. But stuck at the moment. I double-checked that I installed transformers but still get the message and I'm not sure which version of Jax and Jaxlib should I go with and how should I install them.
I'm using Winx64 and Anaconda Prompt as a tool. and the messages after setting an objective follows:
Traceback (most recent call last):
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\lib_init_.py", line 24, in
import jaxlib as jaxlib
ModuleNotFoundError: No module named 'jaxlib'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 18, in get_num_tokens_default_method
from transformers import GPT2TokenizerFast
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers_init.py", line 26, in
from . import dependency_versions_check
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\dependency_versions_check.py", line 17, in
from .utils.versions import require_version, require_version_core
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\utils_init_.py", line 30, in
from .generic import (
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\utils\generic.py", line 33, in
import jax.numpy as jnp
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_init_.py", line 35, in
from jax import config as _config_module
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax\config.py", line 17, in
from jax._src.config import config # noqa: F401
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\config.py", line 24, in
from jax.src import lib
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\lib_init.py", line 26, in
raise ModuleNotFoundError(
ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "AUTOGPT.py", line 219, in
agent.run([input("Enter the objective of the AI system: (Be realistic!) ")])
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\experimental\autonomous_agents\autogpt\agent.py", line 91, in run
assistant_reply = self.chain.run(
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 241, in run
return self(kwargs, callbacks=callbacks)[self.output_keys[0]]
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 142, in call
raise e
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 136, in call
self._call(inputs, run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 69, in _call
response = self.generate([inputs], run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 78, in generate prompts, stop = self.prep_prompts(input_list, run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 106, in prep_prompts
prompt = self.prompt.format_prompt(**selected_inputs)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\prompts\chat.py", line 127, in format_prompt
messages = self.format_messages(**kwargs)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\experimental\autonomous_agents\autogpt\prompt.py", line 46, in format_messages
used_tokens = self.token_counter(base_prompt.content) + self.token_counter(
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 56, in get_num_tokens
return _get_num_tokens_default_method(text)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 20, in _get_num_tokens_default_method
raise ValueError(
ValueError: Could not import transformers python package. This is needed in order to calculate get_num_tokens. Please install it with pip install transformers
.