runtime error
Exit code: 1. Reason: .import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/user/app/app.py", line 13, in <module> pipe = create_pipe() ^^^^^^^^^^^^^ File "/home/user/app/scripts/predictor.py", line 19, in create_pipe return pipeline("text-generation", model=create_model(MODEL_NAME), tokenizer=create_tokenizer(MODEL_NAME)) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/app/scripts/predictor.py", line 8, in create_model return AutoPeftModelForCausalLM.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/peft/auto.py", line 128, in from_pretrained return cls._target_peft_class.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/peft/peft_model.py", line 430, in from_pretrained model.load_adapter(model_id, adapter_name, is_trainable=is_trainable, **kwargs) File "/usr/local/lib/python3.11/site-packages/peft/peft_model.py", line 1022, in load_adapter self._update_offload(offload_index, adapters_weights) File "/usr/local/lib/python3.11/site-packages/peft/peft_model.py", line 908, in _update_offload safe_module = dict(self.named_modules())[extended_prefix] ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ KeyError: 'base_model.model.model.lm_head'
Container logs:
Fetching error logs...