問題タブ [bert-language-model]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
deep-learning - 分類タスクのための Bert の Pytorch 実装の例である run_classifer.py の使用方法は?
微調整されたbert pytorchモデルを分類(CoLa)タスクに使用するにはどうすればよいですか?
--do_predict
に引数が表示されません/examples/run_classifier.py
。
ただし、--do_predict
Bert の元の実装には存在します。
微調整されたモデルは BERT_OUTPUT_DIR に として保存されますがpytorch_model.bin
、コマンド ラインから簡単に再利用する方法はありますか?
https://github.com/huggingface/pytorch-pretrained-BERTからの Pytorch 実装の使用
コードを実行するために使用しているコマンドは次のとおりです。