Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
| #!/usr/bin/env python3 | |
| """ | |
| Codebase Chat CLI - GPU Accelerated | |
| A command-line interface for interacting with codebases using local LLMs via Ollama. | |
| Supports GPU acceleration for improved performance and ChromaDB for vector indexing. | |
| Features: | |
| - Vector index creation of source code files with ChromaDB and Ollama embeddings | |
| - .codechatignore support for excluding files/folders |
| # ollama | |
| OLLAMA_URL=http://localhost:11434 | |
| OLLAMA_MODEL=phi4:14b | |
| OLLAMA_TEMPERATURE=0.2 | |
| OLLAMA_NUM_CTX=16384 | |
| OLLAMA_TOP_P=0.95 | |
| OLLAMA_REPEAT_PENALTY=1.1 | |
| # index | |
| INDEX_ROOT=~/.codechat/indexes |
| # Synchronize history between bash sessions | |
| # | |
| # Make history from other terminals available to the current one. However, | |
| # don't mix all histories together - make sure that *all* commands from the | |
| # current session are on top of its history, so that pressing up arrow will | |
| # give you most recent command from this session, not from any session. | |
| # | |
| # Since history is saved on each prompt, this additionally protects it from | |
| # terminal crashes. |
| // ==UserScript== | |
| // @name noVNC Paste for Proxmox | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2a | |
| // @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
| // @author Chester Enright | |
| // @match https://* | |
| // @include /^.*novnc.*/ | |
| // @require http://code.jquery.com/jquery-3.3.1.min.js | |
| // @grant none |
| #!/bin/bash | |
| rm *.jks 2> /dev/null | |
| rm *.pem 2> /dev/null | |
| echo "====================================================" | |
| echo "Creating fake third-party chain root -> ca" | |
| echo "====================================================" | |
| # generate private keys (for root and ca) |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| # Got a bunch of .ckpt files to convert? | |
| # Here's a handy script to take care of all that for you! | |
| # Original .ckpt files are not touched! | |
| # Make sure you have enough disk space! You are going to DOUBLE the size of your models folder! | |
| # | |
| # First, run: | |
| # pip install torch torchsde==0.2.5 safetensors==0.2.5 | |
| # | |
| # Place this file in the **SAME DIRECTORY** as all of your .ckpt files, open a command prompt for that folder, and run: | |
| # python convert_to_safe.py |
| # List all possible power config GUIDs in Windows | |
| # Run: this-script.ps1 | Out-File powercfg.ps1 | |
| # Then edit and run powercfg.ps1 | |
| # (c) Pekka "raspi" Järvinen 2017 | |
| $powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting | |
| $powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup | |
| Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object { | |
| $tmp = $_.ManagedElement |