def find_max_alignment_from(numbers: List[int], dtype: str) -> int:
    """
    Return the max alignment value that is valid for all the numbers.
    """
    alignments = get_alignments(dtype)
    for alignment in alignments:
        if all(number % alignment == 0 for number in numbers):
            return alignment
    return 1

    Return the max alignment value that is valid for all the numbers.
    
python/aitemplate/utils/alignment.py