Release v0.1.7

This commit is contained in:
hiyouga 2023-08-18 17:21:27 +08:00
parent d75e377b0f
commit 9c9009f49f
2 changed files with 2 additions and 2 deletions

View File

@ -6,4 +6,4 @@ from llmtuner.tuner import export_model, run_exp
from llmtuner.webui import create_ui, create_web_demo
__version__ = "0.1.6"
__version__ = "0.1.7"

View File

@ -55,7 +55,7 @@ class Seq2SeqPeftTrainer(PeftTrainer):
self.tokenizer.pad_token_id * torch.ones_like(generated_tokens[:, :max(prompt_len, label_len)])
)
return (loss, generated_tokens, labels)
return loss, generated_tokens, labels
def _pad_tensors_to_target_len(
self,