rename package

Former-commit-id: a07ff0c083558cfe6f474d13027642d3052fee08
This commit is contained in:
hiyouga
2024-05-16 18:39:08 +08:00
parent fe638cf11f
commit dfa686b617
109 changed files with 31 additions and 31 deletions

View File

@@ -2,8 +2,8 @@ import os
import uvicorn
from llmtuner.api.app import create_app
from llmtuner.chat import ChatModel
from llamafactory.api.app import create_app
from llamafactory.chat import ChatModel
def main():

View File

@@ -32,6 +32,8 @@ class DatasetAttr:
prompt: Optional[str] = "instruction"
query: Optional[str] = "input"
response: Optional[str] = "output"
chosen: Optional[str] = "chosen"
rejected: Optional[str] = "rejected"
history: Optional[str] = None
""" columns for the sharegpt format """
messages: Optional[str] = "conversations"

View File

@@ -10,7 +10,7 @@ if TYPE_CHECKING:
from datasets import Dataset, IterableDataset
from transformers import Seq2SeqTrainingArguments
from llmtuner.hparams import DataArguments
from ..hparams import DataArguments
logger = get_logger(__name__)

View File

@@ -30,7 +30,7 @@ except Exception:
if TYPE_CHECKING:
from trl import AutoModelForCausalLMWithValueHead
from llmtuner.hparams import ModelArguments
from ..hparams import ModelArguments
logger = get_logger(__name__)

View File

@@ -1,4 +1,4 @@
from llmtuner.train.tuner import run_exp
from llamafactory.train.tuner import run_exp
def main():

View File

@@ -1,6 +1,6 @@
import os
from llmtuner.webui.interface import create_ui
from llamafactory.webui.interface import create_ui
def main():