LLM(Large Language Model) Calendar 2024
https://qiita.com/advent-calendar/2024/llm
13日目の記事です。
jupyternotebook error
!pip install -U pip
OSError Traceback (most recent call last)
Cell In[3], line 2
1 # python 3.10.12
----> 2 get_ipython().system('pip install -U pip')
3 get_ipython().system('pip install -U transformers')
4 get_ipython().system('pip install -U bitsandbytes')
File /lib/python3.12/site-packages/IPython/core/interactiveshell.py:2653, in InteractiveShell.system_piped(self, cmd)
2648 raise OSError("Background processes not supported.")
2650 # we explicitly do NOT return the subprocess status code, because
2651 # a non-None value would trigger :func:`sys.displayhook` calls.
2652 # Instead, we store the exit_code in user_ns.
-> 2653 self.user_ns['_exit_code'] = system(self.var_expand(cmd, depth=1))
File /lib/python3.12/site-packages/IPython/utils/_process_emscripten.py:11, in system(cmd)
10 def system(cmd):
---> 11 raise OSError("Not available")
OSError: Not available
!pip install -U transformers
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[2], line 3
----> 3 get_ipython().system('pip install -U transformers')
4 get_ipython().system('pip install -U bitsandbytes')
5 get_ipython().system('pip install -U accelerate')
File /lib/python3.12/site-packages/IPython/core/interactiveshell.py:2653, in InteractiveShell.system_piped(self, cmd)
2648 raise OSError("Background processes not supported.")
2650 # we explicitly do NOT return the subprocess status code, because
2651 # a non-None value would trigger :func:`sys.displayhook` calls.
2652 # Instead, we store the exit_code in user_ns.
-> 2653 self.user_ns['_exit_code'] = system(self.var_expand(cmd, depth=1))
File /lib/python3.12/site-packages/IPython/utils/_process_emscripten.py:11, in system(cmd)
10 def system(cmd):
---> 11 raise OSError("Not available")
OSError: Not available