Skip to content

Commit

Permalink
need offload_folder argument for HFLM initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kumapo committed Oct 18, 2023
1 parent 4533dfb commit 5e80a0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lm_eval/models/gpt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def __init__(
low_cpu_mem_usage=None,
torch_dtype=None,
device_map=None,
offload_folder=None,
subfolder=None,
tokenizer=None,
batch_size=1,
Expand Down Expand Up @@ -49,6 +50,7 @@ def __init__(
low_cpu_mem_usage=low_cpu_mem_usage,
torch_dtype=torch_dtype,
device_map=device_map,
offload_folder=offload_folder,
revision=revision,
trust_remote_code=trust_remote_code,
).eval()
Expand Down

0 comments on commit 5e80a0b

Please sign in to comment.