Skip to content

Commit

Permalink
refactor: adjust logging and localizations
Browse files Browse the repository at this point in the history
- adjust logging strings
- update French and Dutch localizations
- add minimal .env file loader in Localizations.py
  • Loading branch information
leafspark committed Sep 9, 2024
1 parent be38e35 commit fb092f8
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 157 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ AUTOGGUF_RESIZE_FACTOR=1.1
AUTOGGUF_SERVER=enabled
AUTOGGUF_SERVER_PORT=7001
AUTOGGUF_SERVER_API_KEY=
AUTOGGUF_LANGUAGE=en-US
6 changes: 6 additions & 0 deletions src/AutoGGUF.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,12 @@ def save_task_preset(self, task_item) -> None:
break

def quantize_to_fp8_dynamic(self, model_dir: str, output_dir: str) -> None:
if model_dir or output_dir == "":
show_error(
self.logger,
f"{ERROR_STARTING_AUTOFP8_QUANTIZATION}: {NO_MODEL_SELECTED}",
)
return
self.logger.info(
QUANTIZING_TO_WITH_AUTOFP8.format(os.path.basename(model_dir), output_dir)
)
Expand Down
Loading

0 comments on commit fb092f8

Please sign in to comment.