Skip to content

Commit 418bb8d

Browse files
fix: Local API bugs
Co-authored-by: Brad Hilton <[email protected]>
1 parent e773485 commit 418bb8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/art/local/api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import wandb
77
from wandb.sdk.wandb_run import Run
88

9+
from art.config.openai_server import OpenAIServerConfig
10+
911
from ..api import API
1012
from ..model import Model
1113
from ..types import BaseModel, Message, Trajectory, TuneConfig, Verbosity
@@ -114,6 +116,7 @@ async def _get_openai_client(
114116
estimated_completion_tokens: int,
115117
tool_use: bool,
116118
verbosity: Verbosity,
119+
config: OpenAIServerConfig | None,
117120
) -> tuple[AsyncOpenAI, asyncio.Semaphore]:
118121
model_config = model_configs[model.base_model]()
119122
self._vllm = await start_vllm(
@@ -282,8 +285,8 @@ async def _tune_model(
282285
loss=ComponentConfig(
283286
GRPO,
284287
clip_epsilon=config.clip_epsilon,
285-
entropy_coef=config.entropy_coef,
286-
kl_coef=config.kl_coef,
288+
entropy_coef=0.0,
289+
kl_coef=0.0,
287290
),
288291
shuffle=True,
289292
batch_size=32768 // config.sequence_length,

0 commit comments

Comments
 (0)