more fixes

This commit is contained in:
Ashwin Bharambe 2025-08-05 14:36:08 -07:00
parent 1302aabc60
commit 0b6a7abb28
15 changed files with 18 additions and 15 deletions

View file

@ -27,7 +27,7 @@ HuggingFace-based post-training provider for fine-tuning models using the Huggin
| `dpo_beta` | `<class 'float'>` | No | 0.1 | |
| `use_reference_model` | `<class 'bool'>` | No | True | |
| `dpo_loss_type` | `Literal['sigmoid', 'hinge', 'ipo', 'kto_pair'` | No | sigmoid | |
| `dpo_output_dir` | `<class 'str'>` | No | ./checkpoints/dpo | |
| `dpo_output_dir` | `<class 'str'>` | No | /var/folders/mj/t_stv1ys7637vqf2_b4yf67m0000gn/T/dpo_output_q24jwy0r | |
## Sample Configuration

View file

@ -4,10 +4,10 @@
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import tempfile
from typing import Any, Literal
from pydantic import BaseModel, Field
import tempfile
class HuggingFacePostTrainingConfig(BaseModel):

View file

@ -255,7 +255,7 @@ def process_provider_registry(progress, change_tracker: ChangedPathTracker) -> N
change_tracker.add_paths(doc_output_dir)
index_content = []
index_content.append(f"# {api_name.title()} \n")
index_content.append(f"# {api_name.title()}\n")
index_content.append("## Overview\n")
index_content.append(

View file

@ -4,7 +4,7 @@
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import pytest
from openai import BadRequestError
from openai import BadRequestError, OpenAI
from llama_stack.core.library_client import LlamaStackAsLibraryClient
@ -36,6 +36,9 @@ from llama_stack.core.library_client import LlamaStackAsLibraryClient
],
)
def test_responses_store(compat_client, text_model_id, stream, tools):
if not isinstance(compat_client, OpenAI):
pytest.skip("OpenAI client is required until responses.delete() exists in llama-stack-client")
message = "What's the weather in Tokyo?" + (
" YOU MUST USE THE get_weather function to get the weather." if tools else ""
)