Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Fine-tuning RoBERTa-base and exporting to ONNX to use with Ropherta

Install the requirements on a python virtual environment:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Given a large amount of in-domain text in train.txt with a held-out sample in test.txt fine-tune RoBERTa-base (this will take many hours, possibly days and might not be feasible without a GPU):

python fine_tune.py

Once the model has been fine-tuned, it can be exported to ONNX format:

python onnx_export.py

Learn more