# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
# This will download the content to a location on disk
response = client.fine_tuning.download(id="ft-id")
print(response)"<string>"Receive a compressed fine-tuned model or checkpoint.
# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
# This will download the content to a location on disk
response = client.fine_tuning.download(id="ft-id")
print(response)"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Fine-tune ID to download. A string that starts with ft-.
Specifies step number for checkpoint to download. Ignores checkpoint value if set.
Specifies checkpoint type to download - merged vs adapter. This field is required if the checkpoint_step is not set.
merged, adapter, model_output_path Successfully downloaded the fine-tuned model or checkpoint.
The response is of type file.
Was this page helpful?