-
Notifications
You must be signed in to change notification settings - Fork 749
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
Runtime Error when decoding #5
Comments
can you try changing the flags to:
|
It worked and produced an output. But at the end after the outputs were produced the script stalled at:
I can use it to produce what I want, but it's kinda odd that the script just stalls since I just told it to predict on that one checkpoint. Also, FYI, the readme has another error in the instructions for invoking the decoder: Should be changed to: This was a relatively easy error to find and fix though. |
Thanks, I'll fix the README. It actually should exit after outputting since you specified a checkpoint number. Can you paste the final command you used? |
Can you try
and see if that fixes the stall? |
Yes, that worked, thanks! Looks like the argparse didn't put the arguments into the right places and it went with a default option? |
I have fine-tuned a model on a .tsv file using the instructions provided. When I try to decode, I get the error:
I definitely have the
input_filename
andoutput_filename
params specified in gin_param though. My invocation is like so:t5_mesh_transformer --tpu=$TPU_NAME --model_dir=$MODEL_DIR --gin_file=$MODEL_DIR/operative_config.gin --gin_file=sample_decode.gin --gin_param="utils.run.mode='infer'" --gin_param="input_filename='$DATA_DIR/testdata_pred.tsv'" --gin_param="output_filename='$DATA_DIR/testdata_outputs.txt'" --gin_param="utils.tpu_mesh_shape.tpu_topology='2x2'" --gin_param="eval_checkpoint_step = 1005000"
Both $MODEL_DIR and $DATA_DIR are GCS Buckets.
Any thoughts?
The text was updated successfully, but these errors were encountered: