runtime error
Exit code: 1. Reason: B/s][A configuration_slimmoe.py: 100%|██████████| 12.3k/12.3k [00:00<00:00, 32.4MB/s] A new version of the following files was downloaded from https://huggingface.co/microsoft/Phi-tiny-MoE-instruct: - configuration_slimmoe.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. modeling_slimmoe.py: 0%| | 0.00/80.6k [00:00<?, ?B/s][A modeling_slimmoe.py: 100%|██████████| 80.6k/80.6k [00:00<00:00, 124MB/s] Encountered exception while importing einops: No module named 'einops' Encountered exception while importing flash_attn: No module named 'flash_attn' Traceback (most recent call last): File "/app/app.py", line 3, in <module> pipe = pipeline("text-generation", model="microsoft/Phi-tiny-MoE-instruct", trust_remote_code=True) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 1027, in pipeline framework, model = infer_framework_load_model( File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 586, in from_pretrained model_class = get_class_from_dynamic_module( File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module final_module = get_cached_module_file( File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file modules_needed = check_imports(resolved_module_file) File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports raise ImportError( ImportError: This modeling file requires the following packages that were not found in your environment: einops, flash_attn. Run `pip install einops flash_attn`
Container logs:
Fetching error logs...