mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-11 21:48:36 +00:00
from models.llama3_1 --> from llama_models.llama3_1
This commit is contained in:
parent
c6ef16f6bd
commit
c64b8cba22
22 changed files with 29 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
from enum import Enum
|
||||
from typing import Dict, Optional, Union
|
||||
|
||||
from models.llama3_1.api.datatypes import ToolParamDefinition
|
||||
from llama_models.llama3_1.api.datatypes import ToolParamDefinition
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import List, Union
|
||||
|
||||
from models.llama3_1.api.datatypes import Attachment, Message
|
||||
from llama_models.llama3_1.api.datatypes import Attachment, Message
|
||||
from toolchain.safety.api.datatypes import * # noqa: F403
|
||||
|
||||
CANNED_RESPONSE_TEXT = "I can't answer that. Can I help with something else?"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import sys
|
||||
from typing import List
|
||||
|
||||
from models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
|
||||
parent_dir = "../.."
|
||||
sys.path.append(parent_dir)
|
||||
|
|
|
@ -4,7 +4,7 @@ from string import Template
|
|||
from typing import List, Optional
|
||||
|
||||
import torch
|
||||
from models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
from termcolor import cprint
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ from typing import List
|
|||
|
||||
import torch
|
||||
|
||||
from models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
from termcolor import cprint
|
||||
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import asyncio
|
||||
from typing import List
|
||||
|
||||
from models.llama3_1.api.datatypes import Message, Role
|
||||
from llama_models.llama3_1.api.datatypes import Message, Role
|
||||
|
||||
from .base import OnViolationAction, ShieldBase, ShieldResponse
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue