Polyweave

@polyweave/finetuning (1.0.1)

Published 2026-07-10 19:12:01 +00:00 by Dvorak

Installation

@polyweave:registry=https://hub.kl1.tenere.ai/api/packages/Polyweave/npm/
npm install @polyweave/finetuning@1.0.1
"@polyweave/finetuning": "1.0.1"

About this package

finetuning

Fine-tuning orchestration and dataset management for Polyweave.

Published as @polyweave/finetuning.

Synopsis

import { createDatasetBuilder, createTrainingJob } from '@polyweave/finetuning';

const builder = createDatasetBuilder({ format: 'jsonl' });
const dataset = builder.buildDataset([
  { prompt: 'Hello', completion: 'Hi there' }
]);

const job = createTrainingJob({ provider: 'openai', model: 'gpt-4o-mini', dataset });
job.start();

Install

npm install @polyweave/finetuning

Description

Provides dataset builder primitives and training job state machines for LLM fine-tuning workflows. Supports JSONL and JSON dataset formats with optional normalization.

API

createDatasetBuilder(options)

Build a dataset builder.

Parameters:

  • options.format: output format, 'jsonl' (default) or 'json'
  • options.normalize: optional row normalization function

Returns a builder object with buildDataset(rows) and validate(dataset) methods.

createTrainingJob(options)

Create a training job state machine.

Parameters:

  • options.provider: provider name (default 'openai')
  • options.model: model identifier
  • options.dataset: training dataset

Returns a job object with getState(), start(), complete(), and fail(error) methods.

Tests

npm test

Requirements

Node.js 18 or later. ESM only.

License

MIT

Dependencies

Development Dependencies

ID Version
@rigor/core *

Keywords

fine-tuning training datasets polyweave
Details
npm
2026-07-10 19:12:01 +00:00
4
John Dvorak
SEE LICENSE IN LICENSE
2.2 KiB
Assets (1)
Versions (4) View all
1.0.5 2026-07-11
1.0.4 2026-07-11
1.0.2 2026-07-10
1.0.1 2026-07-10