Skip to content

Commit

Permalink
Update lit_llama/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jirka Borovec <[email protected]>
  • Loading branch information
rasbt and Borda authored Aug 22, 2024
1 parent cd1a91f commit 25bca75
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lit_llama/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,25 +497,6 @@ def __exit__(self, type, value, traceback):
self.zipfile.write_end_of_file()


def get_packages(pkgs):
versions = []
for p in pkgs:
try:
imported = __import__(p)
try:
versions.append(imported.__version__)
except AttributeError:
try:
versions.append(imported.version)
except AttributeError:
try:
versions.append(imported.version_info)
except AttributeError:
versions.append('0.0')
except ImportError:
print(f'[FAIL]: {p} is not installed and/or cannot be imported.')
versions.append('N/A')
return versions


def check_python_packages():
Expand Down

0 comments on commit 25bca75

Please sign in to comment.