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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_formats-2025.9.11135.tar.gz | 3.8 kB | Without provenance | Details for llm_formats-2025.9.11135.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_formats-2025.9.11135-py3-none-any.whl | Python 3 | none | any | Details for llm_formats-2025.9.11135-py3-none-any.whl |
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
|
Security for llm-formats 2025.9.11135
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.