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
OpenDAS
Lmdeploy
Commits
2f80c556
"src/client/git@developer.sourcefind.cn:one/TransferBench.git" did not exist on "bbd72a6c979d387a9c5670c3dcbb157434f5cb5b"
Unverified
Commit
2f80c556
authored
Nov 28, 2023
by
q.yao
Committed by
GitHub
Nov 28, 2023
Browse files
fix typo (#769)
parent
7868cea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/turbomind/models/llama/LlamaV2.cc
src/turbomind/models/llama/LlamaV2.cc
+2
-2
src/turbomind/models/llama/LlamaV2.h
src/turbomind/models/llama/LlamaV2.h
+1
-1
No files found.
src/turbomind/models/llama/LlamaV2.cc
View file @
2f80c556
...
@@ -218,7 +218,7 @@ void LlamaV2<T>::embeddingLookup(T* embeddings, const int* token_ids_buf, int ba
...
@@ -218,7 +218,7 @@ void LlamaV2<T>::embeddingLookup(T* embeddings, const int* token_ids_buf, int ba
}
}
template
<
typename
T
>
template
<
typename
T
>
void
LlamaV2
<
T
>::
contextDecode
(
T
*
de
o
cder_output
,
void
LlamaV2
<
T
>::
contextDecode
(
T
*
dec
o
der_output
,
uintptr_t
*
k_cache_ptr
,
uintptr_t
*
k_cache_ptr
,
uintptr_t
*
v_cache_ptr
,
uintptr_t
*
v_cache_ptr
,
void
**
tmp_k_ptrs
,
void
**
tmp_k_ptrs
,
...
@@ -280,7 +280,7 @@ void LlamaV2<T>::contextDecode(T* deocder_output,
...
@@ -280,7 +280,7 @@ void LlamaV2<T>::contextDecode(T* deocder_output,
{
"value_cache"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
v_cache_ptr
}},
{
"value_cache"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
v_cache_ptr
}},
{
"tmp_k"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
tmp_k_ptrs
}},
{
"tmp_k"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
tmp_k_ptrs
}},
{
"tmp_v"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
tmp_v_ptrs
}},
{
"tmp_v"
,
{
MEMORY_GPU
,
TYPE_UINT64
,
{
bsz
},
tmp_v_ptrs
}},
{
"last_token_hidden_units"
,
{
MEMORY_GPU
,
dtype
,
{
bsz
,
hidden_units_
},
de
o
cder_output
}}};
{
"last_token_hidden_units"
,
{
MEMORY_GPU
,
dtype
,
{
bsz
,
hidden_units_
},
dec
o
der_output
}}};
context_decoder_
->
forward
(
&
decoder_output_tensors
,
&
decoder_input_tensors
,
&
weights_
->
decoder_layer_weights
);
context_decoder_
->
forward
(
&
decoder_output_tensors
,
&
decoder_input_tensors
,
&
weights_
->
decoder_layer_weights
);
...
...
src/turbomind/models/llama/LlamaV2.h
View file @
2f80c556
...
@@ -113,7 +113,7 @@ private:
...
@@ -113,7 +113,7 @@ private:
void
embeddingLookup
(
T
*
embeddings
,
const
int
*
token_ids_buf
,
int
batch_size
,
int
step
);
void
embeddingLookup
(
T
*
embeddings
,
const
int
*
token_ids_buf
,
int
batch_size
,
int
step
);
void
contextDecode
(
T
*
de
o
cder_output
,
void
contextDecode
(
T
*
dec
o
der_output
,
uintptr_t
*
k_block_ptrs
,
uintptr_t
*
k_block_ptrs
,
uintptr_t
*
v_block_ptrs
,
uintptr_t
*
v_block_ptrs
,
void
**
k_tmp_ptrs
,
void
**
k_tmp_ptrs
,
...
...
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