Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
265d3414
Unverified
Commit
265d3414
authored
Nov 01, 2023
by
Stella Biderman
Committed by
GitHub
Nov 01, 2023
Browse files
Merge pull request #913 from Muennighoff/patch-1
Do not enforce unnecessary dependencies
parents
0325c8ba
ff74b1b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/base.py
lm_eval/base.py
+1
-1
No files found.
lm_eval/base.py
View file @
265d3414
...
...
@@ -7,7 +7,6 @@ import os
import
json
import
hashlib
import
datasets
from
sqlitedict
import
SqliteDict
from
tqdm
import
tqdm
import
torch
import
torch.nn.functional
as
F
...
...
@@ -891,6 +890,7 @@ class CachingLM:
:param cache_db: str
Path to cache db
"""
from
sqlitedict
import
SqliteDict
self
.
lm
=
lm
self
.
cache_db
=
cache_db
if
os
.
path
.
dirname
(
cache_db
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment