Skip to content

Commit

Permalink
ptuning inference table bug fix (#7015)
Browse files Browse the repository at this point in the history
* remove hardcoded input and output

Signed-off-by: arendu <[email protected]>

* fix inf table

Signed-off-by: arendu <[email protected]>

---------

Signed-off-by: arendu <[email protected]>
Signed-off-by: Adi Renduchintala <[email protected]>
  • Loading branch information
arendu committed Jul 12, 2023
1 parent 40c1ccc commit a69f0f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def __init__(
# (@adithyare) the persistent=False will not pollute the indices into the state_dict of this module.
self.register_buffer("indices", torch.LongTensor(list(range(self.virtual_tokens))), persistent=False)
self.embedding = torch.nn.Embedding(self.virtual_tokens, self.embedding_dim)
self.inference_table = InferenceTable("taskname", self.embedding_dim, self.virtual_tokens)
self.inference_table = InferenceTable("taskname", self.output_dim, self.virtual_tokens)
self.first = ColumnParallelLinear(
self.embedding_dim,
self.bottleneck_dim,
Expand Down

0 comments on commit a69f0f4

Please sign in to comment.