Trailing whitespace
This commit is contained in:
parent
749b803dbd
commit
6816522ea7
3 changed files with 4 additions and 4 deletions
|
@ -2589,7 +2589,7 @@ void dump_kv_cache_view_seqs(const llama_kv_cache_view & view, int row_size) {
|
|||
|
||||
void llama_embd_normalize(const float * inp, float * out, int n, int embd_norm) {
|
||||
double sum = 0.0;
|
||||
|
||||
|
||||
switch (embd_norm) {
|
||||
case -1: // no normalisation
|
||||
sum = 1.0;
|
||||
|
|
|
@ -43,8 +43,8 @@ The above command will output space-separated float values.
|
|||
| $"string"$ | |
|
||||
|--------------|-|
|
||||
| "\n" | (default)
|
||||
| "<#embSep#>" | for exemple
|
||||
| "<#sep#>" | other exemple
|
||||
| "<#embSep#>" | for exemple
|
||||
| "<#sep#>" | other exemple
|
||||
|
||||
## examples
|
||||
### Unix-based systems (Linux, macOS, etc.):
|
||||
|
|
|
@ -192,7 +192,7 @@ int main(int argc, char ** argv) {
|
|||
for (int j = 0; j < n_prompts; j++) {
|
||||
fprintf(stdout, "embedding %d: ", j);
|
||||
for (int i = 0; i < (n_prompts > 1 ? std::min(16, n_embd) : n_embd); i++) {
|
||||
if (params.embd_normalize==0)
|
||||
if (params.embd_normalize==0)
|
||||
fprintf(stdout, "%6.0f ", emb[j * n_embd + i]);
|
||||
else
|
||||
fprintf(stdout, "%9.6f ", emb[j * n_embd + i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue