dbiir / dbiir/UER-py

pretrain RoBERTa

Open
#235 24 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.1k
Forks
520
PR merge metrics
No merged PRs in 30d

Description

1. I want to do incremental pre-training on the existing RoBERTa. Which RoBERTa model should I use? Download directly from Hugging Face? Do I need to script it into UER format after downloading it? Is there a conversion script if necessary?

2. RoBERTa's input corpus format is one document in a row. I am dealing with code corpus and want to change a sample into
`natural language`+`program language`. What should I do?

https://github.com/dbiir/UER-py/blob/862526f2c256ec9d644c5fb99d9b0cbee77254f5/uer/utils/data.py#L336

Can I just change this to `[CLS] + natural language + [SEP] + program language + [EOS]`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.