Registry / ai-ml / transformerlab

transformerlab

JSON →
library0.1.42pypypiunverified

Python SDK for Transformer Lab, an open-source application for fine-tuning and running LLMs locally. Current version 0.1.42 (actively developed).

pip install transformerlab
INSTALL
IMPORT
SIG · TRANSFORMERLAB
T
transformerlab
ai-mlpythonv0.1.42
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Experiment
✓ from transformerlab.lab import Experiment
✗ from transformerlab import Experiment

Initialize an experiment with an API key and run training.

import os from transformerlab import Experiment api_key = os.environ.get('TRANSFORMERLAB_API_KEY', '') exp = Experiment(api_key=api_key, project='my-project') exp.run(training_data='data.jsonl', model='gpt2')
Debug
Known issues
gotchaAPI key required even for local-only mode; sign up at transformerlab.com or set dummy if testing offline.
fix
Set TRANSFORMERLAB_API_KEY environment variable or pass explicitly.
affects: all
breakingVersion 0.1.x is pre-1.0 and may have breaking API changes. The Experiment class constructor changed between 0.1.30 and 0.1.40: removed 'model' parameter from __init__.
fix
Update code to pass model to exp.run() instead of constructor.
affects: <0.1.40
gotchaUsing from transformerlab.llm import LLM gives ImportError because LLM is not a submodule. It is directly under transformerlab package.
fix
Use from transformerlab import LLM instead.
affects: all
Upgrade
Version history
0.1.42latest on PyPI · released Jun 1, 2026
Audit
Dependencies
requestsrequiredHTTP requests for API calls
pydanticrequireddata validation
Agent activity
24 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
transformerlab — pip install transformerlab · libregistry