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:
skamenan7 2025-07-10 09:39:33 -04:00
parent bdf251b870
commit cb17594611
31 changed files with 1455 additions and 205123 deletions

View file

@ -15,6 +15,7 @@ import json
import textwrap
from pathlib import Path
from llama_models.llama4.tokenizer import Tokenizer
from pydantic import BaseModel, Field
from llama_stack.models.llama.datatypes import (
@ -26,7 +27,6 @@ from llama_stack.models.llama.datatypes import (
ToolCall,
ToolPromptFormat,
)
from llama_stack.models.llama.llama4.tokenizer import Tokenizer
from .llama3.interface import LLama31Interface
from .llama3.template_data import (