You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing mm.GPT2Block(d_model=d_model, n_head=8, n_layer=2) with mm.ListToDense() in the example - It doesn't raise this error. So it appears to be some interaction between the TransformerBlock and the model. Maybe it's more general in the sense that it may be possible to create an example that doesn't use a transformer block - I haven't been able to produce an example of that though.
I tried this again today, to make sure this wasn't something to do with running the transform in the loader or see if has been fixed by another dependency. Still getting the error.
Bug description
Attempting to save a re-loaded model containing a transformer block. We get an exception about inputs to the model.
TF 2.9.2 - TypeError: Unable to serialize - **Schema**
TF 2.10.0 - Could not find matching concrete function to call loaded from the SavedModel
Steps/Code to reproduce bug
Example test
Produces error:
test_clm_reload
aftertest_clm
.Doesn't produce error:
test_clm_reload
intotest_clm
(Something to do with different state)GPT2Block
withmm.ListToDense()
Expected behavior
Able to save a re-loaded model without any errors. And result in the same saved model artifact as the one being loaded.
Enviroment details
2.9.1+nv22.8
,2.9.2
,2.10.0
]Additional context
The text was updated successfully, but these errors were encountered: