Skip to main content

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

Metadata

Release files for llm-formats 2025.9.11135

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

Source distribution (sdist)

Source distribution for llm-formats 2025.9.11135
File Size Uploaded
llm_formats-2025.9.11135.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-formats 2025.9.11135
File Interpreter ABI Platform
llm_formats-2025.9.11135-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / llm_formats-2025.9.11135.tar.gz

Download URL llm_formats-2025.9.11135.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d6ca63bf4e613a1da08479f489189bdb5d7b84a3277748498fa8ef43f86324f6
BLAKE2b-256 checksum
How to use checksums
54e62f2fd6185692d7f33264e3e46974038e332ae429955e65dd0210a8337be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / llm_formats-2025.9.11135-py3-none-any.whl

Download URL llm_formats-2025.9.11135-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09b9b734088f563870263f76e87d3e1dbc7008f8f9da010b12ea9f9aa51e37eb
BLAKE2b-256 checksum
How to use checksums
ad96f7bb86600ee820f4d372309a28e52452d9a26824b8d2344ee6f4ff8c27dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.9.11135 This release

2 release files

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