{"id":46656,"library":"transformerlab","title":"Transformer Lab SDK","description":"Python SDK for Transformer Lab, an open-source application for fine-tuning and running LLMs locally. Current version 0.1.42 (actively developed).","status":"active","version":"0.1.42","language":"python","source_language":"en","source_url":"https://github.com/transformerlab/transformerlab-app","tags":["llm","fine-tuning","sdk"],"install":[{"cmd":"pip install transformerlab","lang":"bash","label":"pip install"},{"cmd":"pip install transformerlab==0.1.42","lang":"bash","label":"pin version"}],"dependencies":[{"reason":"HTTP requests for API calls","package":"requests","optional":false},{"reason":"data validation","package":"pydantic","optional":false}],"imports":[{"wrong":"from transformerlab import Experiment","symbol":"Experiment","correct":"from transformerlab.lab import Experiment"}],"quickstart":{"code":"import os\nfrom transformerlab import Experiment\n\napi_key = os.environ.get('TRANSFORMERLAB_API_KEY', '')\nexp = Experiment(api_key=api_key, project='my-project')\nexp.run(training_data='data.jsonl', model='gpt2')","lang":"python","description":"Initialize an experiment with an API key and run training."},"warnings":[{"fix":"Set TRANSFORMERLAB_API_KEY environment variable or pass explicitly.","message":"API key required even for local-only mode; sign up at transformerlab.com or set dummy if testing offline.","severity":"gotcha","affected_versions":"all"},{"fix":"Update code to pass model to exp.run() instead of constructor.","message":"Version 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__.","severity":"breaking","affected_versions":"<0.1.40"},{"fix":"Use from transformerlab import LLM instead.","message":"Using from transformerlab.llm import LLM gives ImportError because LLM is not a submodule. It is directly under transformerlab package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.1.42':24 'activ':25 'applic':13 'current':22 'develop':26 'fine':16,29 'fine-tun':15,28 'lab':2,8 'llm':27 'llms':20 'local':21 'open':11 'open-sourc':10 'python':4 'run':19 'sdk':3,5,31 'sourc':12 'transform':1,7 'tune':17,30 'version':23","created_at":"2026-06-07T13:00:59.381705+00:00","updated_at":"2026-06-07T13:00:59.381705+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'transformerlab'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/transformerlab/transformerlab-app","github":"https://github.com/transformerlab/transformerlab-app","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}