### Example Gollama Theme JSON Source: https://github.com/sammcj/gollama/blob/main/README.md Demonstrates the structure for a custom Gollama theme file, typically stored in `~/.config/gollama/themes/`. It includes settings for theme name, description, and color definitions for UI elements and model families. ```json { "name": "my-theme", "description": "My custom theme", "colours": { "header_foreground": "#AA1493", "header_border": "#BA1B11", "selected": "#FFFFFF", ... }, "family": { "llama": "#FF1493", "alpaca": "#FF00FF", ... } } ``` -------------------------------- ### Example Gollama Configuration JSON Source: https://github.com/sammcj/gollama/blob/main/README.md Illustrates the structure and common settings for the Gollama configuration file located at `~/.config/gollama/config.json`. Includes options for sorting, columns, API keys, log levels, and more. ```json { "default_sort": "modified", "columns": [ "Name", "Size", "Quant", "Family", "Modified", "ID" ], "ollama_api_key": "", "ollama_api_url": "http://localhost:11434", "lm_studio_file_paths": "", "log_level": "info", "log_file_path": "/Users/username/.config/gollama/gollama.log", "sort_order": "Size", "strip_string": "my-private-registry.internal/", "editor": "", "docker_container": "" } ``` -------------------------------- ### Editing Ollama Modelfile - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Opens the Modelfile for a specified model (`my-model` in this example) in the default editor, allowing modification of its configuration. ```shell gollama -e my-model ``` -------------------------------- ### Searching Ollama Models by Name - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Searches for Ollama models whose names contain the specified term (`my-model` in this example). This is a basic substring search. ```shell gollama -s my-model ``` -------------------------------- ### Build Gollama from Source (Shell) Source: https://github.com/sammcj/gollama/blob/main/README.md Provides shell commands to clone the Gollama repository from GitHub, navigate into the directory, fetch Go dependencies, and build the executable. ```shell git clone https://github.com/sammcj/gollama.git cd gollama ``` ```shell go get make build ``` -------------------------------- ### Run Gollama Executable (Shell) Source: https://github.com/sammcj/gollama/blob/main/README.md Shows the basic shell command to execute the built Gollama program from the project directory. ```shell ./gollama ``` -------------------------------- ### Listing Ollama Models - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Lists all available Ollama models currently managed by the local Ollama instance without launching the interactive TUI. ```shell gollama -l ``` -------------------------------- ### Copying All Ollama Models to Remote Host - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Copies all locally available Ollama models to a specified remote Ollama instance using the `--spit-all` and `--remote` flags. Requires the remote host to be accessible. ```shell gollama --spit-all --remote http://remote-host:11434 ``` -------------------------------- ### Find Best Quantization for Memory Constraint (Shell) Source: https://github.com/sammcj/gollama/blob/main/README.md Use the --vram flag with a Hugging Face model ID and the --fits flag specifying a memory constraint in GB. This command helps identify which quantization types and context lengths fit within the given memory limit, displaying a filtered table. ```shell gollama --vram NousResearch/Hermes-2-Theta-Llama-3-8B --fits 6 ``` -------------------------------- ### Searching Ollama Models with AND Operator - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Searches for Ollama models whose names contain both of the specified terms (`my-model` and `instruct`) using the ampersand (`&`) as an AND operator within single quotes. ```shell gollama -s 'my-model&instruct' ``` -------------------------------- ### Estimate vRAM for Ollama Model (Shell) Source: https://github.com/sammcj/gollama/blob/main/README.md Use the --vram flag with an Ollama model tag (e.g., `model:tag`) to estimate its vRAM usage across different quantization types and context lengths. The command outputs a table showing estimated memory in GB for various configurations. ```shell gollama --vram llama3.1:8b-instruct-q6_K ``` -------------------------------- ### Searching Ollama Models with OR Operator - Gollama CLI Source: https://github.com/sammcj/gollama/blob/main/README.md Searches for Ollama models whose names contain either of the specified terms (`my-model` or `my-other-model`) using the pipe (`|`) as an OR operator within single quotes. ```shell gollama -s 'my-model|my-other-model' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.