This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_lockres_completions() | |
{ | |
local actions | |
actions="list lock unlock" | |
case $COMP_CWORD in | |
1) | |
COMPREPLY=( $(compgen -W "${actions}" -- "${COMP_WORDS[COMP_CWORD]}") ) | |
;; | |
2) | |
names=$(lockres list-names) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
ollama: | |
image: ollama/ollama:rocm | |
container_name: ollama | |
pull_policy: always | |
devices: | |
- /dev/kfd | |
- /dev/dri | |
volumes: | |
- /home/steelph0enix/LLMs:/models/external |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
open-webui: | |
image: ghcr.io/open-webui/open-webui:dev | |
container_name: open-webui | |
ports: | |
- ${OPEN_WEBUI_PORT}:${OPEN_WEBUI_PORT} | |
volumes: | |
- //f/openwebui/data:/app/backend/data | |
environment: | |
- ENV=dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import shutil | |
import subprocess | |
import os | |
from pathlib import Path | |
def get_hf_repo_path(url: str) -> str: | |
return url.removeprefix("http://huggingface.co/").removeprefix( | |
"https://huggingface.co/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PROFILE_DIR = Split-Path -Parent $profile | |
$env:Path = "C:\Users\phoen\.local\bin;$env:Path" | |
Import-Module -Name Microsoft.WinGet.CommandNotFound | |
Set-PSReadLineOption -EditMode Emacs | |
Function superls { eza --header --classify=always --color=always --icons=always --group $args } | |
Function superls_list { eza --header --classify=always --color=always --icons=always --group --long $args } | |
Function superls_list_all { eza --header --classify=always --color=always --icons=always --group --long --all $args } | |
Function remove_force { rm -Force $args } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require('wezterm') | |
local config = wezterm.config_builder() | |
config.color_scheme = 'Kanagawa (Gogh)' | |
config.default_prog = { 'pwsh.exe' } | |
config.font_size = 10.5 | |
config.font = wezterm.font 'MonaspiceKr NF' | |
config.initial_cols = 120 | |
config.initial_rows = 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collection of variables, aliases and Functions to work w/ locally hosted LLMs | |
# Source to activate. | |
$env:LLM_VENV_ACTIVE = 0 | |
$env:LLM_PYTHON_VENV_PATH = "$env:USERPROFILE\.llm.venv" | |
$env:LLAMA_ARG_HOST = "steelph0enix.pc" | |
$env:LLAMA_ARG_PORT = 51536 | |
# llm python venv stuff | |
Function llm-venv-activate { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM execute via VS native tools command line prompt | |
REM make sure to clone the repo first, put this script next to the repo dir | |
REM this script is configured for building llama.cpp w/ ROCm support | |
REM for a system with Ryzen 9 5900X and RX 7900XT. | |
REM Unless you have the exact same setup, you may need to change some flags | |
REM and/or strings here. | |
set AMDGPU_TARGETS="gfx1100" | |
set HSA_OVERRIDE_GFX_VERSION="11.0.0" | |
set ROCM_VERSION="6.1.2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Collection of variables, aliases and functions to work w/ llama.cpp | |
# Source to activate. | |
# HARDCODED VALUES - MAKE SURE TO TUNE THEM FOR YOUR SYSTEM! | |
# These settings are for RX 7900 XT & latest Arch Linux | |
export ROCM_VERSION="6.0.2" | |
export USE_ROCM=1 | |
export HIP_PLATFORM="amd" |
NewerOlder