Cell Three Error:
Please restructure your imports with 'import unsloth' at the top of your file.
from unsloth import FastModel
ImportError Traceback (most recent call last)
/tmp/ipython-input-24-3770780297.py in <cell line: 0>()
----> 1 from unsloth import FastModel
2 import torch
3
4 fourbit_models = [
5 # 4bit dynamic quants for superior accuracy and low memory use
4 frames
/usr/local/lib/python3.11/dist-packages/unsloth_zoo/temporary_patches/misc.py in patch_CsmDepthDecoderForCausalLM_forward()
204
205 from transformers.modeling_outputs import CausalLMOutputWithPast
--> 206 from transformers.models.csm.modeling_csm import Cache, Unpack, KwargsForCausalLM
207 from transformers.loss.loss_utils import ForCausalLMLoss
208
ImportError: cannot import name 'KwargsForCausalLM' from 'transformers.models.csm.modeling_csm' (/usr/local/lib/python3.11/dist-packages/transformers/models/csm/modeling_csm.py)
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
