mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 11:32:36 +00:00
more progress on auto-generation
This commit is contained in:
parent
cfa913fdd5
commit
e4509cb568
10 changed files with 309 additions and 73 deletions
|
|
@ -14,9 +14,9 @@ class MetaReferenceAgentsImplConfig(BaseModel):
|
|||
persistence_store: KVStoreConfig = Field(default=SqliteKVStoreConfig())
|
||||
|
||||
@classmethod
|
||||
def sample_dict(cls):
|
||||
def sample_run_config(cls):
|
||||
return {
|
||||
"persistence_store": SqliteKVStoreConfig.sample_dict(
|
||||
"persistence_store": SqliteKVStoreConfig.sample_run_config(
|
||||
db_name="agents_store.db"
|
||||
),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class VLLMConfig(BaseModel):
|
|||
)
|
||||
|
||||
@classmethod
|
||||
def sample_dict(cls):
|
||||
def sample_run_config(cls):
|
||||
return {
|
||||
"model": "${env.VLLM_INFERENCE_MODEL:Llama3.2-3B-Instruct}",
|
||||
"tensor_parallel_size": "${env.VLLM_TENSOR_PARALLEL_SIZE:1}",
|
||||
|
|
|
|||
|
|
@ -11,9 +11,3 @@ from pydantic import BaseModel
|
|||
|
||||
class LlamaGuardConfig(BaseModel):
|
||||
excluded_categories: List[str] = []
|
||||
|
||||
@classmethod
|
||||
def sample_dict(cls):
|
||||
return {
|
||||
"excluded_categories": [],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue