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
5ad4282c96
commit
e7a0d0ca2d
15 changed files with 91 additions and 31 deletions
|
|
@ -23,7 +23,7 @@ Args:
|
|||
|
||||
Example:
|
||||
```python
|
||||
sampling_client = service_client.create_sampling_client(base_model="Qwen/Qwen2.5-7B")
|
||||
sampling_client = service_client.create_sampling_client(base_model="Qwen/Qwen3-8B")
|
||||
prompt = types.ModelInput.from_ints(tokenizer.encode("The weather today is"))
|
||||
params = types.SamplingParams(max_tokens=20, temperature=0.7)
|
||||
future = sampling_client.sample(prompt=prompt, sampling_params=params, num_samples=1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue