From 3c6c468c7b9a482bc7df34a36c1c4c0ce188fb93 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sat, 12 Oct 2024 12:55:12 +0200 Subject: pshh --- tabby-runner/config.toml | 13 +++++++++++++ tabby-runner/index.js | 5 +++-- tabby-runner/run-client.sh | 2 +- tabby-runner/run.sh | 2 ++ vimrc | 10 +++++++--- zshrc | 18 +++++++++++++++++- 6 files changed, 43 insertions(+), 7 deletions(-) create mode 100755 tabby-runner/config.toml 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 diff --git a/vimrc b/vimrc index 4e67f6c..709977c 100644 --- a/vimrc +++ b/vimrc @@ -11,6 +11,7 @@ set signcolumn=no filetype plugin on let g:mapleader = '\' +let g:vsnip_snippet_dir = '~/.config/nvim/snippets' lua < :Telescope current_buffer_fuzzy_find nnoremap :lua ToggleDiagnostics() -nnoremap :VimspectorRestart +nnoremap :VimspectorReset nnoremap b :VimspectorBreakpoints nnoremap d :VimspectorDisassemble nnoremap [ VimspectorUpFrame diff --git a/zshrc b/zshrc index fd662f4..0515a1c 100644 --- a/zshrc +++ b/zshrc @@ -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 -- cgit v1.2.3