forked from phoenix-oss/llama-stack-mirror
llama_models.llama3_1 -> llama_models.llama3
This commit is contained in:
parent
f502716cf7
commit
38244c3161
27 changed files with 44 additions and 42 deletions
|
@ -7,7 +7,7 @@
|
|||
from enum import Enum
|
||||
from typing import Dict, Optional, Union
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import ToolParamDefinition
|
||||
from llama_models.llama3.api.datatypes import ToolParamDefinition
|
||||
from llama_models.schema_utils import json_schema_type
|
||||
|
||||
from pydantic import BaseModel, validator
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
from .datatypes import * # noqa: F403
|
||||
from typing import List, Protocol
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3.api.datatypes import Message
|
||||
|
||||
# this dependency is annoying and we need a forked up version anyway
|
||||
from llama_models.schema_utils import webmethod
|
||||
|
|
|
@ -9,7 +9,7 @@ import asyncio
|
|||
import fire
|
||||
import httpx
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import UserMessage
|
||||
from llama_models.llama3.api.datatypes import UserMessage
|
||||
from termcolor import cprint
|
||||
|
||||
from .api import (
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import List, Union
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import Attachment, Message
|
||||
from llama_models.llama3.api.datatypes import Attachment, Message
|
||||
from llama_toolchain.safety.api.datatypes import * # noqa: F403
|
||||
|
||||
CANNED_RESPONSE_TEXT = "I can't answer that. Can I help with something else?"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from typing import List
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3.api.datatypes import Message
|
||||
|
||||
from llama_toolchain.safety.meta_reference.shields.base import (
|
||||
OnViolationAction,
|
||||
|
|
|
@ -10,7 +10,7 @@ from string import Template
|
|||
from typing import List, Optional
|
||||
|
||||
import torch
|
||||
from llama_models.llama3_1.api.datatypes import Message, Role
|
||||
from llama_models.llama3.api.datatypes import Message, Role
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
|
||||
from .base import CANNED_RESPONSE_TEXT, OnViolationAction, ShieldBase, ShieldResponse
|
||||
|
|
|
@ -9,7 +9,7 @@ from typing import List
|
|||
|
||||
import torch
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import Message
|
||||
from llama_models.llama3.api.datatypes import Message
|
||||
from termcolor import cprint
|
||||
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue