-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix usage of vertcat #52
Comments
Running the
|
I'm pushing a fix momentarily. At one time the code was val concatState = DenseVector.vertcat(modHiddenState.t, headHiddenState.t).t bit it was changed later to val concatState = Math.horcat(modHiddenState, headHiddenState) so I think the |
After merging, the error changes:
|
FWIW this is on the multiply. A long and short matrix are getting combined. |
By default it is looking for a local model. val tokenClassifier = TokenClassifier.fromFiles("../microsoft-deberta-v3-base-mtl/avg_export") Does it coincide with the setting for USE_CONCAT? |
Yes... You're right. I thought it's getting the model from the jar (which is correct). The local one is not... I'll fix this locally. |
I had imagined someone needing to work on it before the models were published and available as resources. |
Hi @kwalcock ,
I started the branch
revert-to-concat
, which does what the name says.However, it crashes on the usage of
Math.vertcat
inorg.clulab.scala_transformers.encoder.LinearLayer
(there are 2 calls). Can you please take a look? It may be that one of the vectors needs to transposed, but I'm not sure.Thank you!
The text was updated successfully, but these errors were encountered: