Skip to main content

FastDatasets

Generate high-quality LLM training datasets from documents. Distillation, augmentation, multi-format export.

Install

pip install fastdatasets
# Optional extras:
# pip install 'fastdatasets[web]'   # Web UI / API
# pip install 'fastdatasets[doc]'   # Better doc parsing (textract)
# pip install 'fastdatasets[all]'   # Everything

Configure LLM

Use environment variables or pass parameters directly (function args override env):

export LLM_API_KEY="sk-..."
export LLM_API_BASE="https://api.example.com/v1"
export LLM_MODEL="your-model"

Quick Start (Python)

from fastdatasets import generate_dataset_to_dir

dataset = generate_dataset_to_dir(
  inputs=["./docs", "./data/sample.txt"],
  output_dir="./output",
  formats=["alpaca", "sharegpt"],
  file_format="jsonl",
  chunk_size=1000,
  chunk_overlap=200,
  enable_cot=False,
  max_llm_concurrency=5,
  # api_key="sk-...", api_base="https://api.example.com/v1", model_name="your-model",
)
print(len(dataset))

CLI

# Core usage
fastdatasets generate ./data -o ./output -f alpaca,sharegpt --file-format jsonl

# Override LLM just for this command
LLM_API_KEY=sk-xxx LLM_API_BASE=https://api.example.com/v1 LLM_MODEL=your-model \
  fastdatasets generate ./docs -o ./out

Optional Features

  • Web/API: pip install 'fastdatasets[web]' then run your web/app code
  • Better doc parsing (PDF/DOCX): pip install 'fastdatasets[doc]'

Metadata

Release files for fastdatasets-llm 0.1.3

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

Source distribution (sdist)

Source distribution for fastdatasets-llm 0.1.3
File Size Uploaded Provenance Actions
fastdatasets_llm-0.1.3.tar.gz 53.4 kB Without provenance Details for fastdatasets_llm-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastdatasets-llm 0.1.3
File Interpreter ABI Platform Actions
fastdatasets_llm-0.1.3-py3-none-any.whl Python 3 none any Details for fastdatasets_llm-0.1.3-py3-none-any.whl

Total release size: 110.7 kB

Release files / fastdatasets_llm-0.1.3.tar.gz

Download URL fastdatasets_llm-0.1.3.tar.gz
Size 53.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3763c13ddf63d6a47fd5a6b2509257c9b9659ce48a5714f4acc4aeb1535ed5a9
BLAKE2b-256 checksum
How to use checksums
b3d625da548ac63d34dce1a4cc790ab9e5b15bb207db1623ec49015b8e83865d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / fastdatasets_llm-0.1.3-py3-none-any.whl

Download URL fastdatasets_llm-0.1.3-py3-none-any.whl
Size 57.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0551789c7a6501cbf3b7d2bf6de7737004bdc6280e01f8e7d936f9c4e6caafc2
BLAKE2b-256 checksum
How to use checksums
9c0a48203bf916a267d0ea59e0a26d68a34d38b4704dd34263fefa097ec56cc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for fastdatasets-llm 0.1.3

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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