Skip to content

Commit

Permalink
llama.vim : minor [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Oct 18, 2024
1 parent 6e26fe5 commit 01f3980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/llama.vim
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function! llama#init()
"autocmd CursorHoldI * call llama#fim(v:true, v:true)
endif

" gather chunks upon yanking
autocmd TextYankPost * if v:event.operator ==# 'y' | call s:pick_chunk(v:event.regcontents, v:false, v:true) | endif

" gather chunks upon entering/leaving a buffer
Expand Down Expand Up @@ -310,7 +311,6 @@ function! s:ring_update()
\ 'input_extra': l:extra_context,
\ 'prompt': "",
\ 'n_predict': 1,
\ 'penalty_last_n': 0,
\ 'temperature': 0.0,
\ 'stream': v:false,
\ 'samplers': ["temperature"],
Expand Down Expand Up @@ -410,7 +410,6 @@ function! llama#fim(is_auto, on_hold) abort
\ 'prompt': l:prompt,
\ 'n_predict': g:llama_config.n_predict,
\ 'n_indent': l:indent,
\ 'penalty_last_n': 0,
\ 'top_k': 40,
\ 'top_p': 0.99,
\ 'stream': v:false,
Expand Down

0 comments on commit 01f3980

Please sign in to comment.