Skip to main content

Minimal llm_formats package exposing a single public function

Project description

PyPI version License: MIT Downloads LinkedIn

llm_formats

llm_formats is a Python package designed to provide data structures for various JSONL formats used for training and fine-tuning Large Language Models (LLMs). It includes predefined schemas for formats such as OpenAI prompts, chat messages, Alpaca instructions, Dolly responses, preference data, and more. This package is useful for validating, generating, and analyzing data in different LLM training formats.

Installation

To install llm_formats, use pip:

pip install llm_formats

Usage

Once installed, you can import the main function to access the format definitions:

from llm_formats import get_llm_jsonl_formats

formats = get_llm_jsonl_formats()
for fmt in formats:
    print(fmt['name'])

This will list all supported LLM data formats.

Example

Here's an example demonstrating how to retrieve and print the supported formats:

from llm_formats import get_llm_jsonl_formats

formats = get_llm_jsonl_formats()
for format in formats:
    print(f"Format: {format['name']}")
    print(f"Aliases: {', '.join(format['aliases'])}")
    print(f"Example: {format['example']}\n")

License

llm_formats is licensed under the MIT License.

Author

Eugene Evstafev
LinkedIn

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

llm_formats-2025.9.11135.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

llm_formats-2025.9.11135-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file llm_formats-2025.9.11135.tar.gz.

File metadata

  • Download URL: llm_formats-2025.9.11135.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for llm_formats-2025.9.11135.tar.gz
Algorithm Hash digest
SHA256 d6ca63bf4e613a1da08479f489189bdb5d7b84a3277748498fa8ef43f86324f6
MD5 e1a5f2b27c25ef8c56b9eaa2eb1b731f
BLAKE2b-256 54e62f2fd6185692d7f33264e3e46974038e332ae429955e65dd0210a8337be9

See more details on using hashes here.

File details

Details for the file llm_formats-2025.9.11135-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_formats-2025.9.11135-py3-none-any.whl
Algorithm Hash digest
SHA256 09b9b734088f563870263f76e87d3e1dbc7008f8f9da010b12ea9f9aa51e37eb
MD5 f7c318caf96d85734d9f5a77bbecbb15
BLAKE2b-256 ad96f7bb86600ee820f4d372309a28e52452d9a26824b8d2344ee6f4ff8c27dc

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