Minimal llm_formats package exposing a single public function
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6ca63bf4e613a1da08479f489189bdb5d7b84a3277748498fa8ef43f86324f6
|
|
| MD5 |
e1a5f2b27c25ef8c56b9eaa2eb1b731f
|
|
| BLAKE2b-256 |
54e62f2fd6185692d7f33264e3e46974038e332ae429955e65dd0210a8337be9
|
File details
Details for the file llm_formats-2025.9.11135-py3-none-any.whl.
File metadata
- Download URL: llm_formats-2025.9.11135-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b9b734088f563870263f76e87d3e1dbc7008f8f9da010b12ea9f9aa51e37eb
|
|
| MD5 |
f7c318caf96d85734d9f5a77bbecbb15
|
|
| BLAKE2b-256 |
ad96f7bb86600ee820f4d372309a28e52452d9a26824b8d2344ee6f4ff8c27dc
|