diff options
author | Jiří Podivín <66251151+jpodivin@users.noreply.github.com> | 2023-11-17 16:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 17:20:53 +0200 |
commit | f7d5e975424ff0eea55ca5a9181ac8e15553c1fc (patch) | |
tree | d2fbbea855ed3d06f1ff1569d8e5b6cb77caf93b | |
parent | ba4cf5c0bf37a729d29e899dadf14541cddd23d4 (diff) |
py : remove superfluous import statements (#4076)
Signed-off-by: Jiri Podivin <jpodivin@gmail.com>
Co-authored-by: Jiri Podivin <jpodivin@redhat.com>
-rwxr-xr-x | convert-baichuan-hf-to-gguf.py | 2 | ||||
-rwxr-xr-x | convert-llama-ggml-to-gguf.py | 1 | ||||
-rw-r--r-- | examples/finetune/convert-finetune-checkpoint-to-gguf.py | 2 | ||||
-rw-r--r-- | tests/test-tokenizer-0-falcon.py | 2 | ||||
-rw-r--r-- | tests/test-tokenizer-0-llama.py | 2 |
5 files changed, 0 insertions, 9 deletions
diff --git a/convert-baichuan-hf-to-gguf.py b/convert-baichuan-hf-to-gguf.py index 78960235..3785a7d2 100755 --- a/convert-baichuan-hf-to-gguf.py +++ b/convert-baichuan-hf-to-gguf.py @@ -6,11 +6,9 @@ from __future__ import annotations import argparse import json import os -import struct import sys from pathlib import Path from typing import TYPE_CHECKING, Any -import itertools import numpy as np import torch from sentencepiece import SentencePieceProcessor # type: ignore[import] diff --git a/convert-llama-ggml-to-gguf.py b/convert-llama-ggml-to-gguf.py index d898d81c..0c123567 100755 --- a/convert-llama-ggml-to-gguf.py +++ b/convert-llama-ggml-to-gguf.py @@ -2,7 +2,6 @@ from __future__ import annotations import argparse -import math import struct import sys from enum import IntEnum diff --git a/examples/finetune/convert-finetune-checkpoint-to-gguf.py b/examples/finetune/convert-finetune-checkpoint-to-gguf.py index c8e14da8..c8909091 100644 --- a/examples/finetune/convert-finetune-checkpoint-to-gguf.py +++ b/examples/finetune/convert-finetune-checkpoint-to-gguf.py @@ -3,9 +3,7 @@ import argparse import gguf -import os import struct -import sys import numpy as np from pathlib import Path diff --git a/tests/test-tokenizer-0-falcon.py b/tests/test-tokenizer-0-falcon.py index cf65a3f6..65e1c0db 100644 --- a/tests/test-tokenizer-0-falcon.py +++ b/tests/test-tokenizer-0-falcon.py @@ -1,7 +1,5 @@ # tests with BPE tokenizer -import os -import sys import argparse from transformers import AutoTokenizer diff --git a/tests/test-tokenizer-0-llama.py b/tests/test-tokenizer-0-llama.py index 078f680b..21df8e6e 100644 --- a/tests/test-tokenizer-0-llama.py +++ b/tests/test-tokenizer-0-llama.py @@ -1,7 +1,5 @@ # tests with SPM tokenizer -import os -import sys import argparse from sentencepiece import SentencePieceProcessor |