Luodian / Otter

🦦 Otter, a multi-modal model based on OpenFlamingo (open-sourced version of DeepMind's Flamingo), trained on MIMIC-IT and showcasing improved instruction-following and in-context learning ability.
https://otter-ntu.github.io/
MIT License
3.54k stars 242 forks source link

HF MPT Loading Error #246

Closed rtavasso1 closed 1 year ago

rtavasso1 commented 1 year ago

Attempting to load the MPT-7B model from HF with the following code:

model = OtterForConditionalGeneration.from_pretrained("luodian/OTTER-Image-MPT7B", device_map="auto")

results in the following error:

HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

rtavasso1 commented 1 year ago

Import w/ parent class FlamingoForConditionalGeneration