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
ff74b1b9
Unverified
Commit
ff74b1b9
authored
Oct 12, 2023
by
Niklas Muennighoff
Committed by
GitHub
Oct 12, 2023
Browse files
Do not enforce unnecessary dependencies
parent
e81d3cce
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 @
ff74b1b9
...
@@ -7,7 +7,6 @@ import os
...
@@ -7,7 +7,6 @@ import os
import
json
import
json
import
hashlib
import
hashlib
import
datasets
import
datasets
from
sqlitedict
import
SqliteDict
from
tqdm
import
tqdm
from
tqdm
import
tqdm
import
torch
import
torch
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
...
@@ -891,6 +890,7 @@ class CachingLM:
...
@@ -891,6 +890,7 @@ class CachingLM:
:param cache_db: str
:param cache_db: str
Path to cache db
Path to cache db
"""
"""
from
sqlitedict
import
SqliteDict
self
.
lm
=
lm
self
.
lm
=
lm
self
.
cache_db
=
cache_db
self
.
cache_db
=
cache_db
if
os
.
path
.
dirname
(
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