From 6c467e6f0abfc6d20d0621fbbf67b4dbd81776cc Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期二, 18 六月 2024 10:01:56 +0800
Subject: [PATCH] Merge pull request #1825 from modelscope/dev_libt

---
 funasr/datasets/openai_datasets/datasets.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/datasets/openai_datasets/datasets.py b/funasr/datasets/openai_datasets/datasets.py
index 07a7c31..8d243ac 100644
--- a/funasr/datasets/openai_datasets/datasets.py
+++ b/funasr/datasets/openai_datasets/datasets.py
@@ -212,7 +212,7 @@
 
             if self.batch_type != "example":
                 b, t = outputs["input_ids"].shape
-                if b > 1 and b * t > self.batch_size * self.batch_size_scale_ratio_max:
+                if b > 1 and b * t > self.batch_size_token_max:
                     logging.info(
                         f"Warning, {idx}th, b*t: {b}*{t}={b * t} > batch_size_sample_max: {self.batch_size_token_max}, drop last data"
                     )

--
Gitblit v1.9.1