diff options
| author | navewindre <boneyaard@gmail.com> | 2024-10-12 12:55:12 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2024-10-12 12:55:12 +0200 |
| commit | 3c6c468c7b9a482bc7df34a36c1c4c0ce188fb93 (patch) | |
| tree | eb19fd3ebe65bfa3da6f5cb3175304905d32fed5 | |
| parent | 5488c375f8e545158029e32085cb5f62dfe48819 (diff) | |
pshh
| -rwxr-xr-x | tabby-runner/config.toml | 13 | ||||
| -rwxr-xr-x | tabby-runner/index.js | 5 | ||||
| -rwxr-xr-x | tabby-runner/run-client.sh | 2 | ||||
| -rwxr-xr-x | tabby-runner/run.sh | 2 | ||||
| -rw-r--r-- | vimrc | 10 | ||||
| -rw-r--r-- | zshrc | 18 |
6 files changed, 43 insertions, 7 deletions
diff --git a/tabby-runner/config.toml b/tabby-runner/config.toml new file mode 100755 index 0000000..46ed9b1 --- /dev/null +++ b/tabby-runner/config.toml @@ -0,0 +1,13 @@ +# Completion model + +# Chat model +[model.chat.http] +kind = "openai/chat" +model_name = "qwen2.5-coder:7b-instruct-q4_0" +api_endpoint = "http://localhost:11434/v1" + +# Embedding model +[model.embedding.http] +kind = "ollama/embedding" +model_name = "nomic-embed-text" +api_endpoint = "http://localhost:11434" diff --git a/tabby-runner/index.js b/tabby-runner/index.js index 93eb768..680b677 100755 --- a/tabby-runner/index.js +++ b/tabby-runner/index.js @@ -5,7 +5,6 @@ let child; let killTabby = () => { exec( "ps aux | grep -E 'tabby'", ( error, stdout, stderr ) => { if( stdout ) { - console.log( stdout ); let lines = stdout.split( '\n' ); for( let line of lines ) { let parts = line.split( /\s+/ ); @@ -35,7 +34,9 @@ let loop = () => { } if( vimOpen ) { if( child ) return setTimeout( loop, 120000 ); - child = cp.exec( `./run-client.sh` ); + child = cp.exec( `./run-client.sh`, ( error, stdout, stderr ) => { + console.log( stdout ); + } ); return setTimeout( loop, 5000 ); } diff --git a/tabby-runner/run-client.sh b/tabby-runner/run-client.sh index 9a95b4c..29d7753 100755 --- a/tabby-runner/run-client.sh +++ b/tabby-runner/run-client.sh @@ -1 +1 @@ -TABBY_ROOT='/media/aurelia/dev/tabby/' ./tabby serve --model /media/aurelia/dev/tabby/models/deepseek-quant --chat-model /media/aurelia/dev/tabby/models/llama3.2-1b --device cuda +TABBY_ROOT='/media/aurelia/dev/tabby/' ./tabby serve --model /media/aurelia/dev/tabby/models/codeqwen2.5-1.5b --device cuda --port 8082 diff --git a/tabby-runner/run.sh b/tabby-runner/run.sh index c499cf0..22b37fa 100755 --- a/tabby-runner/run.sh +++ b/tabby-runner/run.sh @@ -1,3 +1,5 @@ #!/bin/bash +cd "$(dirname $0)" + node index.js @@ -11,6 +11,7 @@ set signcolumn=no filetype plugin on let g:mapleader = '\' +let g:vsnip_snippet_dir = '~/.config/nvim/snippets' lua <<EOF local Plug = vim.fn['plug#']; @@ -255,9 +256,12 @@ lua <<EOF ---@type AvanteProvider ollama = { ["local"] = true, - endpoint = "127.0.0.1:11434/v1", + endpoint = "127.0.0.1:11432/v1", + use_xml_format = false, + -- model = 'qwen2.5:7b-instruct-q4_K_M', + model = 'qwen2.5-coder:7b-instruct-q5_K_M', -- model = 'yi-coder:9b-chat-q4_0', - model = "codestral", + -- model = "codestral", -- model = "codestral:22b-v0.1-q6_K", -- model = "mistral-nemo:12b-instruct-2407-q8_0", -- model = "mistral-nemo:12b-instruct-2407-q4_K_S", @@ -456,7 +460,7 @@ nnoremap <C-f> :Telescope current_buffer_fuzzy_find<CR> nnoremap <F4> :lua ToggleDiagnostics()<CR> -nnoremap <F7> :VimspectorRestart<CR> +nnoremap <F7> :VimspectorReset<CR> nnoremap <leader>b :VimspectorBreakpoints<CR> nnoremap <leader>d :VimspectorDisassemble<CR> nnoremap <leader>[ <Plug>VimspectorUpFrame @@ -1,5 +1,5 @@ # If you come from bash you might have to change your $PATH. -export PATH=$HOME/bin:/usr/local/bin:/home/$USER/.cargo/bin:$PATH +export PATH=$HOME/bin:/usr/local/bin:/home/aurelia/.cargo/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" @@ -89,6 +89,9 @@ alias mpa="mpv --no-video" alias l='ls' alias lg='lazygit' +alias gpt='node "/media/aurelia/sda0 [dev]/gpt.js"' + +export ANDROID_HOME=/media/aurelia/data/android-projects # export MANPATH="/usr/local/man:$MANPATH" @@ -114,5 +117,18 @@ export EDITOR='nvim' # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +OLLAMA_HOME="/media/aurelia/dev/ollama" +OLLAMA_MODELS="/media/aurelia/dev/ollama/models" +export OLLAMA_HOME +export OLLAMA_MODELS + +EMSDK_QUIET=1 source /home/aurelia/code/emsdk/emsdk_env.sh + +# The next line updates PATH for the Google Cloud SDK. +if [ -f '/home/aurelia/google-cloud-sdk/path.zsh.inc' ]; then . '/home/aurelia/google-cloud-sdk/path.zsh.inc'; fi + +# The next line enables shell command completion for gcloud. +if [ -f '/home/aurelia/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/aurelia/google-cloud-sdk/completion.zsh.inc'; fi + zstyle ':completion:*' menu select fpath+=~/.zfunc |
