mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-03 10:22:16 +00:00
add base customizer code
This commit is contained in:
parent
30f79fafcb
commit
832d65fd75
6 changed files with 295 additions and 0 deletions
29
llama_stack/providers/remote/post_training/nvidia/config.py
Normal file
29
llama_stack/providers/remote/post_training/nvidia/config.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import os
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class NvidiaPostTrainingConfig(BaseModel):
|
||||
"""Configuration for NVIDIA Post Training implementation."""
|
||||
|
||||
api_key: Optional[str] = Field(
|
||||
default_factory=lambda: os.getenv("NVIDIA_API_KEY"),
|
||||
description="The NVIDIA API key, only needed of using the hosted service",
|
||||
)
|
||||
|
||||
user_id: Optional[str] = Field(
|
||||
default_factory=lambda: os.getenv("NVIDIA_USER_ID"),
|
||||
description="The NVIDIA user ID, only needed of using the hosted service",
|
||||
)
|
||||
|
||||
customizer_url: str = Field(
|
||||
default_factory=lambda: os.getenv("NVIDIA_CUSTOMIZER_URL"),
|
||||
description="Base URL for the NeMo Customizer API",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue