Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f8db42f

Browse files
jpodivinolexiyb
authored andcommittedNov 23, 2023
py : remove superfluous import statements (ggml-org#4076)
Signed-off-by: Jiri Podivin <jpodivin@gmail.com> Co-authored-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 98aaeee commit f8db42f

5 files changed

+0
-9
lines changed
 

‎convert-baichuan-hf-to-gguf.py

-2
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

-1
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

-2
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

-2
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

-2
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)
Please sign in to comment.