fix modelscope data hub

This commit is contained in:
hiyouga
2023-12-12 18:33:06 +08:00
parent 382319915c
commit d5b2c57a35
6 changed files with 60 additions and 46 deletions

View File

@@ -1,4 +1,3 @@
import os
import math
import torch
from types import MethodType
@@ -13,7 +12,6 @@ from transformers import (
PreTrainedModel,
PreTrainedTokenizerBase
)
from transformers.models.llama import modeling_llama as LlamaModule
from transformers.utils.versions import require_version
from trl import AutoModelForCausalLMWithValueHead