Skip to content

Commit

Permalink
Update merge_lora_into_ggml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saharNooby committed Feb 25, 2024
1 parent cb74c44 commit a668650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/merge_lora_into_ggml.py
Expand Up @@ -61,9 +61,9 @@ def main() -> None:
header: Tuple[int, int, int, int, int, int] = struct.unpack('=iiiiii', in_file.read(6 * 4))

if header[0] != 0x67676d66:
raise ValueError(f'Invalid magic value: {header[0]:x}')
if not 100 <= header[1] <= 101:
raise ValueError(f'Invalid version number: {header[1]}')
raise ValueError(f'Invalid magic value {header[0]:x}')
if not (100 <= header[1] <= 101):
raise ValueError(f'Invalid version number {header[1]}')
if not (header[5] == 0 or header[5] == 1):
raise ValueError('Only FP32 and FP16 models are supported')

Expand Down

0 comments on commit a668650

Please sign in to comment.