blather-1.0.7
توضیحات
Train and use generative language models with only three lines of code.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | blather-1.0.7 |
| نام | blather |
| نسخه کتابخانه | 1.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dan Carroll |
| ایمیل نویسنده | dcarroll314@gmail.com |
| آدرس صفحه اصلی | https://github.com/bigthonk/blather |
| آدرس اینترنتی | https://pypi.org/project/blather/ |
| مجوز | Apache 2.0 |
blather
=======
Train and use generative text models in a few lines of code.
Installation
------------
Use the package manager `pip <https://pip.pypa.io/en/stable/>`__ to
install blather.
.. code:: bash
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
-----
.. code:: python
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 <https://choosealicense.com/licenses/apache-2.0/>`__
نحوه نصب
نصب پکیج whl blather-1.0.7:
pip install blather-1.0.7.whl
نصب پکیج tar.gz blather-1.0.7:
pip install blather-1.0.7.tar.gz