Skip to content

Commit

Permalink
py : remove superfluous import statements (#4076)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Podivin <jpodivin@gmail.com>
Co-authored-by: Jiri Podivin <jpodivin@redhat.com>
  • Loading branch information
jpodivin and jpodivin authored Nov 17, 2023
1 parent ba4cf5c commit f7d5e97
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions convert-baichuan-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
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]
Expand Down
1 change: 0 additions & 1 deletion convert-llama-ggml-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import annotations

import argparse
import math
import struct
import sys
from enum import IntEnum
Expand Down
2 changes: 0 additions & 2 deletions examples/finetune/convert-finetune-checkpoint-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

import argparse
import gguf
import os
import struct
import sys
import numpy as np
from pathlib import Path

Expand Down
2 changes: 0 additions & 2 deletions tests/test-tokenizer-0-falcon.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# tests with BPE tokenizer

import os
import sys
import argparse

from transformers import AutoTokenizer
Expand Down
2 changes: 0 additions & 2 deletions tests/test-tokenizer-0-llama.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# tests with SPM tokenizer

import os
import sys
import argparse

from sentencepiece import SentencePieceProcessor
Expand Down

0 comments on commit f7d5e97

Please sign in to comment.