from models.llama3_1 --> from llama_models.llama3_1

This commit is contained in:
Hardik Shah 2024-07-21 19:07:02 -07:00
parent c6ef16f6bd
commit c64b8cba22
22 changed files with 29 additions and 27 deletions

View file

@ -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?"

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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