add a bunch of commented out options for various models
This commit is contained in:
parent
c0e1ced17b
commit
5fc4f2d961
|
@ -48,8 +48,21 @@ return {
|
||||||
local cmp_ai = require 'cmp_ai.config'
|
local cmp_ai = require 'cmp_ai.config'
|
||||||
cmp_ai:setup {
|
cmp_ai:setup {
|
||||||
provider_options = {
|
provider_options = {
|
||||||
|
model = 'codellama:13b-code',
|
||||||
|
-- model = 'codellama:7b-code',
|
||||||
|
-- model = 'qwen2.5-coder:7b-base',
|
||||||
|
-- model = 'starcoder2:7b',
|
||||||
|
-- model = 'codestral:22b',
|
||||||
|
-- model = 'codegemma:7b-code',
|
||||||
base_url = os.getenv 'LLAMA_API_BASE' or 'http://localhost:8080/ollama',
|
base_url = os.getenv 'LLAMA_API_BASE' or 'http://localhost:8080/ollama',
|
||||||
api_key = os.getenv 'LLAMA_API_KEY',
|
api_key = os.getenv 'LLAMA_API_KEY',
|
||||||
|
options = {
|
||||||
|
stop = { '\n\n', '<EOT>' }, -- codellama
|
||||||
|
-- stop = { '<|endoftext|>' }, -- qwen-coder
|
||||||
|
-- stop = { '<file_sep>' }, -- starcoder2
|
||||||
|
-- stop = { '[INST]', '[/INST]', '[PREFIX]', '[MIDDLE]', '[SUFFIX]' }, -- codeestral
|
||||||
|
-- stop = { '<|fim_prefix|>', '<|fim_suffix|>', '<|fim_middle|>', '<|file_separator|>' }, -- codegemma
|
||||||
|
},
|
||||||
prompt = function(lines_before, lines_after)
|
prompt = function(lines_before, lines_after)
|
||||||
return lines_before
|
return lines_before
|
||||||
-- return '<PRE> ' .. lines_before .. ' <SUF>' .. lines_after .. ' <MID>'
|
-- return '<PRE> ' .. lines_before .. ' <SUF>' .. lines_after .. ' <MID>'
|
||||||
|
|
Loading…
Reference in a new issue