Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Estimate adapter memory overhead in choose_num_blocks() #346

Merged
merged 6 commits into from
Jul 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review
  • Loading branch information
borzunov authored and Your Name committed Jul 13, 2023
commit 49b6cc86a35ad65e73f79944437a20682e2a6741
2 changes: 0 additions & 2 deletions src/petals/utils/convert_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def convert_block(
shard.to(device)

if adapters:
# Import petals.utils.peft only when necessary to avoid importing bitsandbytes
os.environ["BITSANDBYTES_NOWELCOME"] = "1"
from petals.utils.peft import add_adapter_to_block, create_lora_adapter, load_peft

create_lora_adapter(block, quant_type=quant_type)
Expand Down
Loading