engawa
NOT YET FULLY TESTED
A simple implementation to pre-train BART from scratch with your own corpus.
Usage
Soon, I will make this pip-installable with CLI commands but at the moment, you need to run it as a repository.
Installation
pip install engawa
Build tokenizer
engawa train-tokenizer --data-path /path/to/train.txt --save-dir /path/to/save
# Checkout other options by
engawa train-tokenizer --help
Pre-train BART
engawa train-model \
--tokenizer-file /path/to/tokenizer.json \
--train-file /path/to/train.txt \
--val-file /path/to/val.txt \
--default-root-dir /path/to/save/things
# Checkout other options by
engawa train-model --help
Metadata
Release files for engawa 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| engawa-0.1.5.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| engawa-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / engawa-0.1.5.tar.gz
| Download URL | engawa-0.1.5.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5b4565c2dde1bab84df4c969ffbc7bd9d49f262e2abd64e6007850434bdb35e
|
|
BLAKE2b-256 checksum How to use checksums |
1366561d61bf059ae1824ae7ff3b2a57d46fafdfe70ee185276b2696ff3a65fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.5 Darwin/22.4.0
|
Release files / engawa-0.1.5-py3-none-any.whl
| Download URL | engawa-0.1.5-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb8abe4f1d8e6464af4cd34d6c12a5f412eff79827b9c1bdae2b804a88446eba
|
|
BLAKE2b-256 checksum How to use checksums |
c8c852280e5c933cde34b319bd23735bc745ca6f91b00acdc35f657d55568032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.5 Darwin/22.4.0
|