Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions google/genai/tests/tunings/test_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
from .. import pytest_helper
import pytest


VERTEX_HTTP_OPTIONS = {
'api_version': 'v1beta1',
'base_url': 'https://us-central1-autopush-aiplatform.sandbox.googleapis.com/',
}

evaluation_config=genai_types.EvaluationConfig(
metrics=[
genai_types.Metric(name="bleu", prompt_template="test prompt template")
Expand Down Expand Up @@ -158,6 +164,26 @@
),
exception_if_mldev="vertex_dataset_resource parameter is not supported in Gemini API.",
),
pytest_helper.TestTableItem(
name="test_tune_distillation",
parameters=genai_types.CreateTuningJobParameters(
base_model="deepseek-ai/deepseek-v3.1-maas",
training_dataset=genai_types.TuningDataset(
gcs_uri="gs://nathreya-oss-tuning-sdk-test/distillation-openai-opposites.jsonl",
),
config=genai_types.CreateTuningJobConfig(
method="DISTILLATION",
student_model="meta/llama3_1@llama-3.1-8b-instruct",
epoch_count=20,
validation_dataset=genai_types.TuningValidationDataset(
gcs_uri="gs://nathreya-oss-tuning-sdk-test/distillation-val-openai-opposites.jsonl",
),
output_uri="gs://nathreya-oss-tuning-sdk-test/ayushagra-distillation-test-folder",
http_options=VERTEX_HTTP_OPTIONS,
),
),
exception_if_mldev="parameter is not supported in Gemini API.",
),
]

pytestmark = pytest_helper.setup(
Expand Down
Loading