mirror of
https://github.com/thinking-machines-lab/tinker.git
synced 2026-04-19 12:58:01 +00:00
Sync contents
This commit is contained in:
parent
937c36e9b1
commit
9bf0df6796
9 changed files with 5 additions and 179 deletions
|
|
@ -1,5 +1,3 @@
|
|||
# `tinker.lib.public_interfaces.sampling_client`
|
||||
|
||||
SamplingClient for Tinker API.
|
||||
|
||||
## `SamplingClient` Objects
|
||||
|
|
@ -35,7 +33,6 @@ result = future.result()
|
|||
#### `sample`
|
||||
|
||||
```python
|
||||
@capture_exceptions(fatal=True)
|
||||
def sample(
|
||||
prompt: types.ModelInput,
|
||||
num_samples: int,
|
||||
|
|
@ -82,7 +79,6 @@ Async version of sample.
|
|||
#### `compute_logprobs`
|
||||
|
||||
```python
|
||||
@capture_exceptions(fatal=True)
|
||||
def compute_logprobs(
|
||||
prompt: types.ModelInput) -> ConcurrentFuture[list[float | None]]
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue