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
Additional Info: I've checked the tokenized inputs from both codes and they're the same. So I'd probably have to check if the weights are loaded correctly. Any idea how i could do that?
It seems you apply a softmax operation to the model output in the Python script, but use multilabel for the Rust version, which just passes the logits through a sigmoid layer
It seems you apply a softmax operation to the model output in the Python script, but use multilabel for the Rust version, which just passes the logits through a sigmoid layer
Oh yeah. It was sigmoid originally. Changed it because i saw softmax being used in zero_shot_classification.rs, the pipeline's source code.
Here's the output when passing the logits through sigmoid:
I'm trying to rewrite an inference script for a fine-tuned BERT model i made with python into rust, here's how i save my model:
The python inference script:
Prints the following:
Here's how i load the model for rust-bert:
Outputs:
Any help would be appreciated :).
The text was updated successfully, but these errors were encountered: