mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 04:32:25 +00:00
refactor(llama4): remove duplicate implementation, update imports to llama-models, add comprehensive test for tool calling fix (issue #2584)\n\n- Removes all old llama4 code from llama-stack\n- Updates all relevant imports to use llama-models\n- Adds robust pytest to demonstrate arguments_json fix\n- Updates config/scripts as needed for new structure\n- Resolves merge conflicts with updated main branch\n- Fixes mypy and ruff issues
This commit is contained in:
parent
126d6698a7
commit
61dc2a9c58
31 changed files with 1476 additions and 205135 deletions
|
|
@ -54,11 +54,11 @@ from llama_stack.models.llama.llama3.tokenizer import Tokenizer
|
|||
|
||||
# Conditional imports to avoid heavy dependencies during module loading
|
||||
try:
|
||||
from llama_stack.models.llama.llama4.chat_format import ChatFormat as Llama4ChatFormat
|
||||
from llama_stack.models.llama.llama4.prompt_templates.system_prompts import (
|
||||
from llama_models.llama4.chat_format import ChatFormat as Llama4ChatFormat
|
||||
from llama_models.llama4.prompt_templates.system_prompts import (
|
||||
PythonListCustomToolGenerator as PythonListCustomToolGeneratorLlama4,
|
||||
)
|
||||
from llama_stack.models.llama.llama4.tokenizer import Tokenizer as Llama4Tokenizer
|
||||
from llama_models.llama4.tokenizer import Tokenizer as Llama4Tokenizer
|
||||
|
||||
LLAMA4_AVAILABLE = True
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue