Create the sampler
To create a standalone sampler: CallServiceClient.create_sampling_client() with either model_path or base_model, but not both.
To evaluate saved weights, pass the checkpoint’s path as model_path. Replace <checkpoint_path> with the path that save_weights_for_sampler() returned, which has the form bt://loops:<run_id>/sampler_weights/<checkpoint_name>:
base_model:
sampler_id is the ID you need to deactivate the sampler later.
Then call sample() as you would with a paired sampler; see Sample published weights for a complete call.
To create a standalone sampler without the SDK, send a Create a sampler request with a session ID and either base_model or model_path. Sampling from it requires the SDK.
Next steps
- Set sampling parameters: Control temperature, cut-offs, length, and stop sequences.
- Deactivate a sampler: Shut down the sampler when you finish.