fix get_input_embdeddings
#3
by
winglian
- opened
fixes
File "/root/.cache/huggingface/modules/transformers_modules/stabilityai/stablelm-3b-4e1t/a4750ace0db6f08d7bbba0aa52a585f231ea3cde/modeling_stablelm_epoch.py", line 552, in get_input_embeddings
return self.transformer.embed_tokens
File "/root/miniconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1614, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'StableLMEpochForCausalLM' object has no attribute 'transformer'
Hi @winglian ! I pushed the fix from my account by accident as I thought this was an issue instead of a PR (new to the HF interface for this π). So sorry and thank you so much for contributing!
stable-jon-tow
changed pull request status to
closed