mirror of
https://github.com/p-e-w/heretic.git
synced 2026-06-02 05:03:33 +02:00
fix: set batch size on HFLM object
This commit is contained in:
+1
-1
@@ -966,6 +966,7 @@ def run():
|
||||
hflm = HFLM(
|
||||
pretrained=model.model, # ty:ignore[invalid-argument-type]
|
||||
tokenizer=model.tokenizer, # ty:ignore[invalid-argument-type]
|
||||
batch_size="auto",
|
||||
)
|
||||
|
||||
table = Table()
|
||||
@@ -989,7 +990,6 @@ def run():
|
||||
results = lm_eval.simple_evaluate(
|
||||
model=hflm,
|
||||
tasks=[benchmark.task],
|
||||
batch_size="auto",
|
||||
)
|
||||
return results["results"][benchmark.task]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user