Hi Dusty
I’m using same command as
jetson-containers run --env HUGGINGFACE_TOKEN=hf_xyz123abc456
$(autotag nano_llm)
python3 -m nano_llm.agents.web_chat --api=mlc
–model meta-llama/Meta-Llama-3-8B-Instruct
–asr=riva --tts=piper
using my on Huggingface token. I get this error at the end of the above command:-
/opt/NanoLLM/nano_llm/utils/tensor.py:109: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /opt/pytorch/torch/csrc/utils/tensor_numpy.cpp:206.)
return torch.from_numpy(tensor).to(device=device, dtype=convert_dtype(dtype, to=‘pt’), **kwargs)
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/opt/NanoLLM/nano_llm/agents/web_chat.py”, line 310, in
agent = WebChat(vars(args))
File “/opt/NanoLLM/nano_llm/agents/web_chat.py”, line 55, in init
self.llm.functions = BotFunctions()
File “/opt/NanoLLM/nano_llm/plugins/bot_functions/init.py”, line 86, in new
cls.load(test=test)
File “/opt/NanoLLM/nano_llm/plugins/bot_functions/init.py”, line 265, in load
cls.test()
File “/opt/NanoLLM/nano_llm/plugins/bot_functions/init.py”, line 275, in test
logging.info(f"Bot function descriptions:\n{cls.generate_docs()}")
File “/opt/NanoLLM/nano_llm/plugins/bot_functions/init.py”, line 167, in generate_docs
docs = ‘\n’.join([’ ’ + x.docs for x in cls.functions if x.enabled])
File “/opt/NanoLLM/nano_llm/plugins/bot_functions/init.py”, line 167, in
docs = ‘\n’.join([’ ’ + x.docs for x in cls.functions if x.enabled])
TypeError: can only concatenate str (not “dict”) to str