Skip to content

Commit f7d5e97

Browse files
authored
py : remove superfluous import statements (#4076)
Signed-off-by: Jiri Podivin <[email protected]> Co-authored-by: Jiri Podivin <[email protected]>
1 parent ba4cf5c commit f7d5e97

5 files changed

+0
-9
lines changed

convert-baichuan-hf-to-gguf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
import argparse
77
import json
88
import os
9-
import struct
109
import sys
1110
from pathlib import Path
1211
from typing import TYPE_CHECKING, Any
13-
import itertools
1412
import numpy as np
1513
import torch
1614
from sentencepiece import SentencePieceProcessor # type: ignore[import]

convert-llama-ggml-to-gguf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import annotations
33

44
import argparse
5-
import math
65
import struct
76
import sys
87
from enum import IntEnum

examples/finetune/convert-finetune-checkpoint-to-gguf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
import argparse
55
import gguf
6-
import os
76
import struct
8-
import sys
97
import numpy as np
108
from pathlib import Path
119

tests/test-tokenizer-0-falcon.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# tests with BPE tokenizer
22

3-
import os
4-
import sys
53
import argparse
64

75
from transformers import AutoTokenizer

tests/test-tokenizer-0-llama.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# tests with SPM tokenizer
22

3-
import os
4-
import sys
53
import argparse
64

75
from sentencepiece import SentencePieceProcessor

0 commit comments

Comments
 (0)