Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Nov 12, 2024
1 parent 26355f3 commit f77297b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def testGeneformerTokenizer(self):
# build an attention mask
attention_mask = torch.tensor(
[[x[0] != 0, x[1] != 0] for x in batch])
outputs = model(batch, attention_mask=attention_mask)
outputs = model(batch,
attention_mask=attention_mask,
output_hidden_states=True)
layer_to_quant = quant_layers(model) + (
-1
) # TODO note this can be parametrized to either 0 (extract last embedding layer) or -1 (second-to-last which is more generalized)
Expand Down

0 comments on commit f77297b

Please sign in to comment.