Metadata-Version: 2.1
Name: ainyan
Version: 1.0.22
Summary: Helpers for AI training
Author: Nicolas Modrzyk
Author-email: Nicolas Modrzyk <hellonico@gmail.com>
License: MIT License
        Copyright (c) 2018 Nicolas Modrzyk
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/hellonico/ai.training
Keywords: feed,reader,tutorial
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: setuptools ==68.2.2
Requires-Dist: datasets ==2.14.6
Requires-Dist: pandas ==2.1.0
Requires-Dist: boto3 ==1.28.*
Requires-Dist: python-docx ==1.0.1
Requires-Dist: simplify-docx ==0.1.2
Requires-Dist: pypdf2 ==3.0.1
Requires-Dist: python-pptx ==0.6.22
Provides-Extra: dev
Requires-Dist: black ; extra == 'dev'
Requires-Dist: bumpver ; extra == 'dev'
Requires-Dist: isort ; extra == 'dev'
Requires-Dist: pip-tools ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: twine ; extra == 'dev'

Provdes two scripts:
- ainyan-training
- ainyan-dataset

# DATASET PREPARE

```bash
ainyan-datasets --source jgate-lite --dspath s3://wadalabs/jgate-test --profile jpx 
```

# TRAINING
```bash
TRAINING=jgate.ini ainyan-training 
```

With jgate.ini like:

```ini
[training]
model=NousResearch/Llama-2-7b-chat-hf
aws_profile=jpx
dataset=s3://wadalabs/jgate-small
finalname=jgate-small
learning_rate=2e-3
max_steps=100
```

# MODEL S3 HELPER

```bash
# Upload
ainyan-model-helper --profile jpx --mode up --model jgate-full --bucket wadalabs 
```


```bash
# Download
ainyan-model-helper --profile jpx --mode dl --model jgate-full --bucket wadalabs 
```
