o
    }oi                     @   s   d dl Z d dlZd dlmZ e jdejg dg dg dgejddd	fejg d
g dgejdd d	fejdejddd fejg dg dg dgejdddfgdd Z	dS )    N)count_tail_paddingzlabels,expected,ignore_label)   r   r   r   )r   r            )      r   r   r   )dtyper   r   )r   r   r   )r   r   r	   )r   r      )	      r   )r   r   r   r   )   r	   r   r   r	   r   c                 C   s    t | |d}t||ksJ d S )N)ignore_label)r   int)labelsexpectedr   out r   O/home/ubuntu/.local/lib/python3.10/site-packages/tests/automodel/_test_utils.pytest_count_tail_padding   s   2r   )
pytesttorch:nemo.collections.llm.gpt.model.hf_auto_model_for_causal_lmr   markparametrizetensorlongzerosr   r   r   r   r   <module>   sR   1