Skip to main content

Train and use generative text models in a few lines of code.

Installation

Use the package manager pip to install blather.

pip install blather

Fine tuning large generative language models in tractable time require the use of at least a single GPU. For the time being running blather on a CPU only system will cause errors. This may be addressed in the future

Usage

from blather import Blather

blather = Blather()

# fine tunes an appropriate model on your dataset
blather.read(['Text Examples One', 'Second Text Example'... 'Text Example k'])

# returns a text sample generated from the model
blather.write('Sample text to complete')

# saves model
blather.save('model.pt')

# load model from previous training
blather.load('model.pt')

Contributing

https://github.com/bigthonk/blather

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache

Metadata

Release files for blather 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blather 1.0.7
File Size Uploaded
blather-1.0.7.tar.gz 4.2 kB Details

Release files / blather-1.0.7.tar.gz

Download URL blather-1.0.7.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c618c70c437da86b9ba182b011ad5c68cc21461592789aa7591194b1e81638a
BLAKE2b-256 checksum
How to use checksums
7406206f416d68f7a586fe79bfcfc4632bd5c2070893561cdcff6431571e627c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page