Install Logits and Logits Cookbook¶
This repository assumes import logits for the SDK surface and logits_cookbook for the higher-level training code.
Install¶
uv pip install "logits @ git+https://github.com/GradientHQ/logits"
uv pip install "logits-cookbook @ git+https://github.com/GradientHQ/logits-cookbook"
Install from local workspace¶
uv pip install -e ./logits
uv pip install -e .
This installs the logits SDK, logits_cookbook, and the underlying runtime dependency stack used by the SDK.
Python entry points¶
Application code in this repo should use:
import logitsforServiceClient,TrainingClient,SamplingClient, and SDK typesimport logits_cookbookfor renderers, training loops, and recipes
Authentication¶
Create an API key in your Logits deployment, then export it before running recipes:
export LOGITS_API_KEY=<your key>
LOGITS_BASE_URL is supported for non-default deployments. TINKER_API_KEY and TINKER_BASE_URL are still accepted as compatibility fallbacks when you are using older runtime configuration.