Skip to main content

Local LLM Inference Platform with adapter support and evaluation toolkit

Project description

ML-Clara

ML-Clara is a small, config-driven CLI + Python API for:

  • Local LLM inference with streaming (clara run)
  • Lightweight benchmarking (clara eval)
  • LoRA fine-tuning (clara train) and adapter merging (clara export)
  • Device auto-detection (MPS/CUDA/CPU)

This repository also contains Apple’s CLaRa research codebase; ML-Clara lives in the clara/ package.


Install

pip install ml-clara
clara info

If your platform needs a specific PyTorch build, install PyTorch first, then install ML-Clara.


Quickstart

Run

clara run "Explain LoRA in one paragraph" --model gpt2
clara run "Write a haiku about debugging" --model gpt2 --stream

Create a config (recommended)

clara init-config --type default -o config.yaml
clara run "Hello" --config config.yaml

Eval

clara eval --model gpt2 --benchmarks perplexity --samples 50

Fine-tune (LoRA)

clara init-config --type finetune -o finetune.yaml
clara train --config finetune.yaml

Web UI (FastAPI)

pip install "ml-clara[server]"
clara serve --model gpt2

Then open http://127.0.0.1:8000.

Export (merge adapter)

clara export outputs/my-adapter/final --output models/merged

Docs

  • Troubleshooting: docs/TROUBLESHOOTING.md
  • Full repository README (CLaRa research + ML-Clara section): README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml_clara-1.3.0.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml_clara-1.3.0-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

Details for the file ml_clara-1.3.0.tar.gz.

File metadata

  • Download URL: ml_clara-1.3.0.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for ml_clara-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7d69e11e17c6a7bc0a037f7e2e80a814c92361b7cd0037057703b5ff0e02e079
MD5 ec78bbb2a5c22d7fc7a8296219ea306f
BLAKE2b-256 397318c5f267cb15417604814ed36a30ac6894236e88a72bf39b36c5cbdb6a99

See more details on using hashes here.

File details

Details for the file ml_clara-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: ml_clara-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 66.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for ml_clara-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c473dc9d777b5401aa2f017193c0effbf78c397cd4e92afd470cb6cf2b60c545
MD5 4fbd83a2b3a16754a3cb43c249b3ad7c
BLAKE2b-256 bce49ba3770afe9aa0553a3e99ad3be4fb6d16594704b7a494027b5e086103ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page