Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed May 3, 2023
1 parent 99db2a0 commit 55b18ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion elk/utils/hf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def instantiate_model(
if arch_str.endswith(suffix):
model_cls = getattr(transformers, arch_str)
return model_cls.from_pretrained(model_str, **kwargs)
print(f"Loading model with {kwargs}")
return AutoModel.from_pretrained(model_str, **kwargs)


Expand Down
2 changes: 0 additions & 2 deletions elk/utils/multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ def create_device_map(
max_memory_used_devices[model_devices.first_device] = (
max_memory_used_devices[model_devices.first_device] * 0.6
)
if load_in_8bit:
print("Using 8bit")
# If 8bit, multiply the memory by 2
# This is because we instantiated our empty model in (probably) float16
# We aren't able to instantiate an empty model in 8bit currently
Expand Down

0 comments on commit 55b18ab

Please sign in to comment.