Just opening up and connecting the kernel causes this error: An error ocurred while starting the kernel
/opt/miniconda3/envs/spyder‑env/lib/python3.12/site‑packages/transformers/generation/configuration_utils.py:515: UserWarning: do_sample is set to False. However, temperature is set to 0.7 ‑‑ this flag is only used in sample‑based generation modes. You should set do_sample=True or unset temperature.
warnings.warn(
The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results.
Setting pad_token_id to eos_token_id:50256 for open‑end generation.
Traceback
Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 91, in wrapper
self._ready.set_result(None)
asyncio.exceptions.InvalidStateError: invalid state
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "qtconsole/manager.pyc", line 27, in poll
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/restarter.py", line 143, in poll
self.kernel_manager.restart_kernel(now=True, newports=newports)
File "jupyter_core/utils/__init__.pyc", line 165, in wrapped
File "asyncio/base_events.pyc", line 647, in run_until_complete
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 596, in _async_restart_kernel
await self._async_start_kernel(**self._launch_args)
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 94, in wrapper
self._ready.set_exception(e)
asyncio.exceptions.InvalidStateError: invalid state
Description
What steps will reproduce the problem?
Just opening up and connecting the kernel causes this error: An error ocurred while starting the kernel /opt/miniconda3/envs/spyder‑env/lib/python3.12/site‑packages/transformers/generation/configuration_utils.py:515: UserWarning:
do_sample
is set toFalse
. However,temperature
is set to0.7
‑‑ this flag is only used in sample‑based generation modes. You should setdo_sample=True
or unsettemperature
. warnings.warn( The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input'sattention_mask
to obtain reliable results. Settingpad_token_id
toeos_token_id
:50256 for open‑end generation.Traceback
Versions
Dependencies
Environment
Environment
``` ```