mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
misc
This commit is contained in:
parent
68ebf8a8da
commit
d7d19dc0e5
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,10 @@ async def get_tokenizer_type(
|
||||||
async def get_checkpointer_model_type(
|
async def get_checkpointer_model_type(
|
||||||
model_id: str,
|
model_id: str,
|
||||||
) -> str:
|
) -> str:
|
||||||
|
"""
|
||||||
|
checkpointer model type is used in checkpointer for some special treatment on some specific model types
|
||||||
|
For example, llama3.2 model tied weights (https://github.com/pytorch/torchtune/blob/main/torchtune/training/checkpointing/_checkpointer.py#L1041)
|
||||||
|
"""
|
||||||
model = resolve_model(model_id)
|
model = resolve_model(model_id)
|
||||||
return MODEL_CONFIGS[model.core_model_id.value]["checkpoint_type"]
|
return MODEL_CONFIGS[model.core_model_id.value]["checkpoint_type"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue