Skip to main content

Coastline

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

MIT License Documentation PyPI

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.2.3

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.2.3
File Size Uploaded
coastline_recommender-0.2.3.tar.gz 11.9 MB Details

Built distribution (wheel)

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

Total release size: 21.5 MB

Release files / coastline_recommender-0.2.3.tar.gz

Download URL coastline_recommender-0.2.3.tar.gz
Size 11.9 MB
Tags Source
SHA-256 checksum
How to use checksums
8a88b2824b1efea8ddad971d6ccc6f81ccb69c09091910613839b019b166d3d8
BLAKE2b-256 checksum
How to use checksums
7a7a2a961b87ce95101a0372f2e82b19531ecaa8a052b946677ef335350c3e85
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 3, 2026.

Transparency log

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

Download URL coastline_recommender-0.2.3-py3-none-any.whl
Size 9.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
87840662630dc02ca885c5ce060bfabffb8c1f1ed6945442e2677ea2e953fa39
BLAKE2b-256 checksum
How to use checksums
e2ff55965ca3235c05f4a099f365a0ca445a671000e73cf8fecfc28f65c4a859
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.3 This release

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