fixed imports models.llama3. --> models.llama3_1.api.

This commit is contained in:
Hardik Shah 2024-07-19 17:42:14 -07:00
parent f94efcf2ee
commit 2ed2881a21
20 changed files with 26 additions and 26 deletions

View file

@ -1,7 +1,7 @@
from abc import ABC, abstractmethod
from typing import List, Union
from models.llama3.datatypes import Attachment, Message
from 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.datatypes import Message
from 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.datatypes import Message
from 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.datatypes import Message
from 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.datatypes import Message, Role
from models.llama3_1.api.datatypes import Message, Role
from .base import OnViolationAction, ShieldBase, ShieldResponse