Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ async def create_fine_tune(
if not di_batch_job_bundle.public and di_batch_job_bundle.owner != owner:
raise LLMFineTuningMethodNotImplementedException("Fine-tuning method not accessible")

# TODO: Pass user-defined labels
labels = dict(team="egp", product="llm-fine-tune")

batch_job_id = await self.docker_image_batch_job_gateway.create_docker_image_batch_job(
created_by=created_by,
owner=owner,
job_config=dict(
**labels,
gateway_url=os.getenv("GATEWAY_URL"),
user_id=owner,
training_file=training_file,
Expand All @@ -97,8 +101,7 @@ async def create_fine_tune(
gpu_type=di_batch_job_bundle.gpu_type,
storage=di_batch_job_bundle.storage,
),
# TODO: Pass user-defined labels
labels=dict(team="egp", product="llm-fine-tune"),
labels=labels,
annotations=dict(fine_tuned_model=fine_tuned_model),
mount_location=di_batch_job_bundle.mount_location,
)
Expand Down