Skip to main content

Coastline

A context-aware recommender system for fine-tuning LLMs.

MIT License Documentation PyPI DOI

Coastline makes context-, objective-, and policy-aware infrastructure recommendations for LLM fine-tuning workloads. It accounts for infrastructure constraints, workload demands, and user objectives, and recommends best-fit configurations as part of an LLM fine-tuning ecosystem. Coastline predicts performance with physics-driven simulation (Kavier) and machine-learning models. Every candidate configuration is cross-checked through a feasibility module (IBM AutoConf) before being output to the user.

Built with PriorLabs-TabPFN. See the TabPFN section below.

Install

pip install coastline-recommender          # Kavier, AutoConf, the CLI, and the dashboard
pip install "coastline-recommender[ml]"    # adds the data-driven predictors

Python 3.11 to 3.13. The import name is coastline.

Quick start

From a clone of this repository:

uv sync
uv run coastline recommend-job
uv run coastline explain --model mistral-7b-v0.1 --method lora --gpu-model NVIDIA-A100-SXM4-80GB \
  --tokens 2048 --batch-size 8
uv run coastline --help

coastline recommend-job recommends a configuration for the job declared in config/coastline_functionality/experiment.yaml. The subcommands are recommend-job, recommend-trace, simulate, explain, and utils. Each documents its flags with --help. uv run coastline-ui serves the dashboard at http://127.0.0.1:8000.

Documentation

https://atlarge-research.github.io/coastline-recommender/. Build it locally with uv run --group docs mkdocs serve.

Development

uv sync installs the dev tools. CI runs these gates on every pull request (ci.yml):

uv run pre-commit run --all-files --show-diff-on-failure      # ruff check, ruff format, whitespace
uv run mypy                                                   # strict, on the packages listed in pyproject.toml
uv run --all-extras pytest --cov
uv run --all-extras pytest -m ml_isolated -p no:cacheprovider FILE  # native ML backends, one file per process
uv run --group docs mkdocs build --strict

Run uv run pre-commit install once per clone to get the hooks on commit.

TabPFN

Built with PriorLabs-TabPFN.

The tabpfn predictor and the model file portfolio/tabpfn.pkl (in src/coastline/sdk/predictors/performance/data_driven/) contain TabPFN v2 weights. TabPFN v2 is described in Hollmann et al., "Accurate predictions on small data with a tabular foundation model", Nature 637, 319-326 (2025), doi:10.1038/s41586-024-08328-6. The weights are licensed under the Prior Labs License v1.2; a copy is in LICENSE-TabPFN.txt. The model file is in the repository and its Zenodo archive, and left out of the PyPI wheel.

Citation

See CITATION.cff.

License

MIT. See LICENSE. The TabPFN weights are under the Prior Labs License v1.2, in LICENSE-TabPFN.txt.

Metadata

Release files for coastline-recommender 0.3.0

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

Source distribution (sdist)

Source distribution for coastline-recommender 0.3.0
File Size Uploaded
coastline_recommender-0.3.0.tar.gz 11.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for coastline-recommender 0.3.0
File Interpreter ABI Platform
coastline_recommender-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 MB

Release files / coastline_recommender-0.3.0.tar.gz

Download URL coastline_recommender-0.3.0.tar.gz
Size 11.9 MB
Tags Source
SHA-256 checksum
How to use checksums
b3372dca5c8f044f9e0e50d588fb3800ce4ca92ddfe54cb251aa8dea649c8e98
BLAKE2b-256 checksum
How to use checksums
f34319f9acc5fe7836fddfabc0aeef865e12b96074e2fe96999f4124b8a881dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / coastline_recommender-0.3.0-py3-none-any.whl

Download URL coastline_recommender-0.3.0-py3-none-any.whl
Size 9.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fba92ef55e5deb741da2b8acf0e29178dad8dceb6e26f8afeecbf6656d3b95e3
BLAKE2b-256 checksum
How to use checksums
13d4a7ce8146fae941ef9d1b6963f7148f561a4910d62082e33a6bc2d2ba4566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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