jx669
jx669
In the pretrained model https://onedrive.live.com/?authkey=%21AG6vMTjttNHJR5E&cid=390AF7A51B5537E7&id=390AF7A51B5537E7%21776&parId=390AF7A51B5537E7%21775&action=locate
Any progress on this issue? How to save the model for production?
Hi! Sorry. I misunderstood it. I thought all TF models were saved by TF Trainer and all TF trainer saved models would have a hard time with inference in production....
``` hf_model = TFXXXModel.from_pretrained('model/location/path') tokenizer = XXXTokenizer.from_pretrained("tokenizer/location/path") ``` Are these the official models like 'bert-base-uncased'? If yes, then it's not trained. If it is local model, I don't know where...
'you are not using the load and save from the lib, the error message is normal.' --- which lib are you referring? I followed only the official tensorflow manual: https://www.tensorflow.org/guide/saved_model
Right. I also wish to serve the model through TF serving.
Yes, the above code works. I still have some doubts on how TFTrainer loads the saved model. When it is set to the prediction mode, even if I changed the...
I tested it. That way would not be able to save the model. https://colab.research.google.com/drive/1uPCpR31U5VRMT3dArGyDK9WT6hKQa0bv?usp=sharing Then I am still wondering how to save the pb model through TF Trainer trained model.
1. If trainer is just used for training, why in _run_tf_ner.py_ line 246, there is a prediction done with the trainer: `predictions, label_ids, metrics = trainer.predict(test_dataset.get_dataset())` If I set the...
I also found one more complication. The code you showed works only for sentences containing three words or less. If "it is me" is changed to "it is me again",...