Skip to content

Commit

Permalink
[s2s] fix lockfile and peg distillation constants (huggingface#7545)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshleifer authored Oct 2, 2020
1 parent de4d7b0 commit 9bdce3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/seq2seq/make_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def copy_layers(src_layers: nn.ModuleList, dest_layers: nn.ModuleList, layers_to
},
16: { # maps num layers in student -> which teacher layers to copy
1: [0],
2: [0, 8],
2: [0, 15],
3: [0, 8, 15],
4: [0, 5, 10, 15],
6: [0, 3, 6, 9, 12, 15],
Expand Down
2 changes: 1 addition & 1 deletion examples/seq2seq/sentence_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
NLTK_AVAILABLE = False

if NLTK_AVAILABLE:
with FileLock("a_random_string") as lock:
with FileLock(".lock") as lock:
nltk.download("punkt", quiet=True)


Expand Down

0 comments on commit 9bdce3a

Please sign in to comment.