mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-03-18 11:03:08 +00:00
support BLOOM models
Former-commit-id: 1314b6ea39a01aa8ac325e1d875ac013d43aec45
This commit is contained in:
@@ -9,9 +9,9 @@ from transformers.tokenization_utils import PreTrainedTokenizer
|
||||
from .other import IGNORE_INDEX
|
||||
|
||||
|
||||
class DataCollatorForLLaMA(DataCollatorWithPadding):
|
||||
class DynamicDataCollatorWithPadding(DataCollatorWithPadding):
|
||||
r"""
|
||||
Data collator for LLaMA. It is capable of dynamically padding for batched data.
|
||||
Inherits DataCollatorWithPadding. It is capable of dynamically padding for batched data.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user