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

TypeError: 'NoneType' object is not subscriptable #28

Open
GitMeP opened this issue Feb 24, 2025 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #28

GitMeP opened this issue Feb 24, 2025 · 0 comments

Comments

@GitMeP
Copy link

GitMeP commented Feb 24, 2025

Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Documents/workspace/React/natural_voice_assistant/main.py", line 179, in main_loop
model = STT_LLM_TTS(device=device, tts_model = tts_model)
File "/home/user/Documents/workspace/React/natural_voice_assistant/models_voice_assistant/stt_llm_tts_model.py", line 406, in init
self.call_LLM(input="Your name is BUD-E. You are a friendly Ai Assistant that will answer every question correctly and in a friendly way.", reason="format", tokenize=True)
File "/home/user/Documents/workspace/React/natural_voice_assistant/models_voice_assistant/stt_llm_tts_model.py", line 428, in call_LLM
last_token, past_key_values = self.llm(t, self.past_key_values, len(self.response_sequence))
File "/home/user/Documents/Environments/bud_e_env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/user/Documents/Environments/bud_e_env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
File "/home/user/Documents/workspace/React/natural_voice_assistant/models_voice_assistant/stt_llm_tts_model.py", line 309, in forward
model_inputs = self.model.prepare_inputs_for_generation(input_token, past_key_values=past_key_values if past_key_values is not None else [], use_cache=True)
File "/home/user/Documents/Environments/bud_e_env/lib/python3.10/site-packages/transformers/generation/utils.py", line 402, in prepare_inputs_for_generation
or (is_torchdynamo_compiling() or cache_position[-1] >= input_ids.shape[1]) # Exception 3
TypeError: 'NoneType' object is not subscriptable

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