Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Jul 28, 2024
1 parent 931ced7 commit d94e3f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exo/api/chatgpt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ async def resolve_tokenizer(model_id: str):
except Exception as e:
if DEBUG >= 2: print(f"Failed to load tokenizer for {model_id}. Falling back to tinygrad tokenizer. Error: {e}")
import traceback

if DEBUG >= 2: print(traceback.format_exc())

try:
Expand All @@ -96,6 +97,7 @@ async def resolve_tokenizer(model_id: str):
except Exception as e:
if DEBUG >= 2: print(f"Failed again to load tokenizer for {model_id}. Falling back to mlx tokenizer. Error: {e}")
import traceback

if DEBUG >= 2: print(traceback.format_exc())

if DEBUG >= 2: print(f"Trying mlx tokenizer for {model_id}")
Expand Down

0 comments on commit d94e3f9

Please sign in to comment.