forked from phoenix-oss/llama-stack-mirror
Make Llama Guard 1B the default
This commit is contained in:
parent
cc5029a716
commit
4a75d922a9
5 changed files with 14 additions and 10 deletions
|
@ -20,7 +20,7 @@ class MetaReferenceShieldType(Enum):
|
|||
|
||||
|
||||
class LlamaGuardShieldConfig(BaseModel):
|
||||
model: str = "Llama-Guard-3-8B"
|
||||
model: str = "Llama-Guard-3-1B"
|
||||
excluded_categories: List[str] = []
|
||||
disable_input_check: bool = False
|
||||
disable_output_check: bool = False
|
||||
|
@ -33,7 +33,11 @@ class LlamaGuardShieldConfig(BaseModel):
|
|||
for m in safety_models()
|
||||
if (
|
||||
m.core_model_id
|
||||
in {CoreModelId.llama_guard_3_8b, CoreModelId.llama_guard_3_11b_vision}
|
||||
in {
|
||||
CoreModelId.llama_guard_3_8b,
|
||||
CoreModelId.llama_guard_3_1b,
|
||||
CoreModelId.llama_guard_3_11b_vision,
|
||||
}
|
||||
)
|
||||
]
|
||||
if model not in permitted_models:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue