Update server/text_generation_server/models/custom_modeling/idefics_modeling.py

This commit is contained in:
fxmarty 2023-11-08 19:09:30 +09:00 committed by GitHub
parent 0eea83be44
commit 6353a87f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -432,6 +432,8 @@ class IdeficsRMSNorm(nn.Module):
out = out.view(*shape)
return out
else:
raise ValueError("Your system seem to be not supported. Please check your install or open an issue at https://github.com/huggingface/text-generation-inference/issues with a clear reproduction.")
# this was adapted from LlamaMLP