Skip to content

Commit

Permalink
update axolotl ascii art
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Oct 10, 2024
1 parent 8159cbd commit 4589f97
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/axolotl/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,22 @@

os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"


def print_axolotl_text_art(suffix=None):
AXOLOTL_LOGO = """
#@@+#@@ #@#+#@#
@@. @@. @@ @@ =@@# @@. #@= =@@#.
@@ #@@@@@@@@@ @@ #@#@= @@. #@= ..=@@
#@@@@@@@@@@@@@@@@@ =@#.@# .##= .##+ .=####=+ @@. .=#####+ =#@@###. +@@
@@@@@@@@@@+ +@@+ +@@ #@. =@= .#@= +@@+ =@#+..+#@# @@. =@#+..+#@# ..#@=.. +@@
@@@@@@@@@@ ##@@ ##@@ =@# .@# =@#=@#. @@. @@. @@. @@. #@+ #@= +@@
=@@@@@@@@@@@@@@@@@@@@= #@=+++#@= =@@# @@. @@. @@. @@. #@+ #@= +@@
=@#=====@@ =@#=@#. @@. @@. @@. @@. #@+ #@= +@@
@@@@@@@@@@@@@@@@ @@@@ #@. #@= .#@= +@@+ #@#. .=@# @@+.. =@#. .=@# #@=.. +@@
=@# .@# .#@= .#@= =#@@@@#= +#@@= +#@@@@#= .##@@+ +@@
@@@@ @@@@@@@@@@@@@@@@
"""


def print_legacy_axolotl_text_art(suffix=None):
font = "nancyj"
ascii_text = " axolotl"
if suffix:
Expand All @@ -69,6 +83,13 @@ def print_axolotl_text_art(suffix=None):
print_dep_versions()


def print_axolotl_text_art(
**kwargs, # pylint: disable=unused-argument
):
if is_main_process():
print(AXOLOTL_LOGO)


def print_dep_versions():
packages = ["accelerate", "peft", "transformers", "trl", "torch", "bitsandbytes"]
max_len = max(len(pkg) for pkg in packages)
Expand Down

0 comments on commit 4589f97

Please sign in to comment.