85742ab165
CPU Test / Lint - next (push) Waiting to run
Dashboard / Chromatic (push) Waiting to run
CPU Test / Lint - fast (push) Waiting to run
CPU Test / Build documentation (push) Waiting to run
CPU Test / Test (Store, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Utilities, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Weave, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (AgentOps, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (LLM proxy, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Others, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Store, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Utilities, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Weave, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (AgentOps, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (LLM proxy, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Others, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Store, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Utilities, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Weave, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (AgentOps, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (LLM proxy, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Others, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Store, latest, Python 3.13) (push) Waiting to run
CPU Test / Lint - slow (push) Waiting to run
CPU Test / Lint - JavaScript (push) Waiting to run
CPU Test / Test (AgentOps, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (LLM proxy, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Others, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Utilities, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Weave, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (JavaScript) (push) Waiting to run
Deploy Documentation / deploy (push) Has been cancelled
32 lines
930 B
Python
32 lines
930 B
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
from aoai_finetune import AzureOpenAIFinetune
|
|
|
|
from agentlightning import setup_logging
|
|
|
|
finetune_algo = AzureOpenAIFinetune(
|
|
base_deployment_name="gpt-4.1-mini",
|
|
finetuned_deployment_name="gpt-4.1-mini-ft",
|
|
base_model_name="gpt-4.1-mini-2025-04-14",
|
|
finetune_every_n_rollouts=24,
|
|
data_filter_ratio=0.6,
|
|
)
|
|
|
|
setup_logging()
|
|
|
|
|
|
def test_deployment():
|
|
finetune_algo._deploy_model( # pyright: ignore[reportPrivateUsage]
|
|
model_name="gpt-4.1-mini-2025-04-14.ft-071a9d9c59ec4d088d1a3e56707d7361-aoai_ft_1",
|
|
deployment_name="gpt-4.1-mini-ft",
|
|
version="1",
|
|
)
|
|
|
|
|
|
def test_wait_for_deployment_ready():
|
|
finetune_algo._wait_for_deployment_ready("gpt-4.1-mini-ft", "1") # pyright: ignore[reportPrivateUsage]
|
|
|
|
|
|
def test_delete_deployment():
|
|
finetune_algo._delete_deployment("gpt-4.1-mini-ft_v01") # pyright: ignore[reportPrivateUsage]
|