mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-03 07:12:16 +00:00
chore: fix mypy violations in post_training modules
Note: this patch touches all files but post_training.py that will be significantly changed by #1437, hence leaving it out of the picture for now. running_loss is now always Tensor (on-device) and doesn't change its type from int to Tensor (which made mypy unhappy). Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
3b35a39b8b
commit
8c01246344
9 changed files with 56 additions and 69 deletions
|
|
@ -229,10 +229,6 @@ exclude = [
|
|||
"^llama_stack/providers/inline/inference/sentence_transformers/sentence_transformers\\.py$",
|
||||
"^llama_stack/providers/inline/inference/vllm/",
|
||||
"^llama_stack/providers/inline/post_training/common/validator\\.py$",
|
||||
"^llama_stack/providers/inline/post_training/torchtune/common/checkpointer\\.py$",
|
||||
"^llama_stack/providers/inline/post_training/torchtune/common/utils\\.py$",
|
||||
"^llama_stack/providers/inline/post_training/torchtune/datasets/sft\\.py$",
|
||||
"^llama_stack/providers/inline/post_training/torchtune/recipes/lora_finetuning_single_device\\.py$",
|
||||
"^llama_stack/providers/inline/post_training/torchtune/post_training\\.py$",
|
||||
"^llama_stack/providers/inline/safety/code_scanner/",
|
||||
"^llama_stack/providers/inline/safety/llama_guard/",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue