Skip to content

Commit

Permalink
[bug] fix mismatched shape for decoder output tensor (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhoroshev authored Oct 11, 2023
1 parent 169d088 commit 0d2a151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbomind/models/llama/LlamaV2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void LlamaV2<T>::contextDecode(T* deocder_output,
};

std::unordered_map<std::string, Tensor> decoder_output_tensors{
{"decoder_output", {MEMORY_GPU, dtype, {bsz, max_input_len, hidden_units_}, context_decoder_output_buf}},
{"decoder_output", {MEMORY_GPU, dtype, {token_num, hidden_units_}, context_decoder_output_buf}},
{"key_cache", {MEMORY_GPU, TYPE_UINT64, {bsz}, k_cache_ptr}},
{"value_cache", {MEMORY_GPU, TYPE_UINT64, {bsz}, v_cache_ptr}},
{"last_token_hidden_units", {MEMORY_GPU, dtype, {bsz, hidden_units_}, deocder_output}}};
Expand Down

0 comments on commit 0d2a151

Please sign in to comment.