Skip to main content

Fine Tuning Data Maker

Project description

Wyra

Wyra is a Python library designed to create and format data for fine-tuning OpenAI models, specifically tailored for Azure OpenAI services. It simplifies the process of converting text content into the JSON Lines (JSONL) format required for fine-tuning conversational AI models.

"Wyra" is a term used in indigenous languages to refer to a bird. Just like a "bird", this library will help you "fly" through the implementation of fine-tuning. Enjoy!

Features

  • Easy usability: Any text in multiple languages ​​can be used.
  • Easy Integration: Seamlessly integrates with Azure OpenAI services.
  • Secure Data Handling: Utilizes encryption for sensitive data.
  • Automated Formatting: Converts text content into JSONL format effortlessly.
  • Customizable Prompts: Allows for the creation of flexible fine-tuning datasets for various use cases.

Installation

To install Wyra, use pip:

pip install wyra

Usage

Here's a basic example of how to use Wyra:

# Import necessary libraries
import json
from wyra import FineTuningDataMaker

# Initialize the Fine-Tuning data maker
creator = FineTuningDataMaker()

# Sample content to format
content = "Your text content here (You can use any text in any language you want)."

# Create and format data
formatted_data = creator.format_data(content)

# Save JSONL data to a file
with open('formatted_data.jsonl', 'w') as file:
    file.write(formatted_data)

Multiple Texts

Here's an example of how to use Wyra with multiple texts:

# Import necessary libraries
import json
from wyra import FineTuningDataMaker

# Initialize the Fine-Tuning data maker
creator = FineTuningDataMaker()

# Sample contents to format
contents = [
    "First text content here.",
    "Second text content here.",
    "Third text content here."
]

# Create and format data for multiple contents
formatted_data = [creator.format_data(content) for content in contents]

# Save JSONL data to a file
with open('formatted_data.jsonl', 'w') as file:
    for data in formatted_data:
        file.write(data + '\n')

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or feedback, this is my Github GitHub repositories.

Other AI Projects

Check out my GitHub Pages: GitHub IO.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wyra-0.0.6.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wyra-0.0.6-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file wyra-0.0.6.tar.gz.

File metadata

  • Download URL: wyra-0.0.6.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wyra-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0a663c351ea276ab4696106231a208591ead449f3f7ff5c76b8494ffc1783f75
MD5 4369e39245d48f941b8d79cc5b595813
BLAKE2b-256 794eb8e11ae6b4a24aefd62e7b3776ff3c15cfc1f7ba5f9057ad7edf07db9efd

See more details on using hashes here.

File details

Details for the file wyra-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: wyra-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wyra-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 107bdda89826589056b4b283ce2f1ff0991fec2328f06a42467d489525dbd296
MD5 2877cfc056df5db4ca30cfba0bd8c0c6
BLAKE2b-256 fed8875136fbae52838efcc7600210a02d886274d4649f0a87b238d977b5a7b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page