ian-cowley/Glacier.Cli

Unified pure C# .NET 10 LLM command-line application (glacier). Universal inference (Llama, Phi, DeepSeek, Mistral, Qwen), in-process LoRA fine-tuning, GGUF adapter fusion, in-process GraphRAG, and PagedAttention continuous batching server.

C#

0

15 commits

updated Oct 9, 2026

See the code

README

GLACIER CLI: The Unified Pure C# .NET 10 LLM Tool

GLACIER CLI Banner

🚀 < 15ms Cold Start  |  ⚡ Zero Python / C++  |  💎 100% Pure C# .NET 10

One single global CLI tool replacing Ollama, vLLM, HuggingFace CLI, Unsloth, and RAGFlow.

License: MIT .NET 10 Native AOT NuGet Version Ecosystem


⚡ Install in One Command

🪟 Windows (PowerShell One-Liner):

irm https://raw.githubusercontent.com/ian-cowley/Glacier.Cli/main/install.ps1 | iex

Or download glacier-win-x64.zip and double-click install.bat.

🐧 Linux & 🍎 macOS:

curl -fsSL https://raw.githubusercontent.com/ian-cowley/Glacier.Cli/main/install.sh | bash

📦 Via .NET 10 Global Tool:

dotnet tool install -g Glacier.Cli

🎯 The Universal Command Matrix

CommandPurposeBenchmark / Highlight
glacier runInstant GPU/CPU streaming inference & REPL<15ms cold start, AVX-512 & Bare-Metal SASS (>64 tok/s generation)
glacier tuneIn-process PEFT LoRA fine-tuning6.96s / step (46 tok/s, 320 tokens/step, 10-step run) on RTX 4060
glacier mergeZero-copy GGUF adapter fusion< 60s (6.82s physical fusion) lossless Q8_0 fusion
glacier ragSIMD Vector + CSR Knowledge Graph RAG< 10ms end-to-end (27–29 µs in-process scan), zero-copy graph traversal
glacier serveOllama & OpenAI HTTP continuous batchingPagedAttention, 17,046 req/s socket turnaround (7.2M req/s pipeline capacity)
glacier pullHigh-speed chunked GGUF downloaderMulti-threaded download with live ETA & speed gauge

⚡ 60-Second Quickstart

1. Instant Inference (Llama 3, Phi-4, DeepSeek, Qwen)

# Streaming answer to a single prompt
glacier run model.gguf "Explain quantum computing in two sentences"

# Interactive terminal chat REPL
glacier run model.gguf

2. In-Process Fine-Tuning & Adapter Export

# Fine-tune directly in pure .NET 10 (GPU VRAM-resident + AVX-512)
glacier tune base.gguf --data dataset.jsonl --epochs 3 --rank 16 --out adapter.bin

# Fuse LoRA adapter directly into a standalone production GGUF
glacier merge base.gguf adapter.bin model-enterprise.gguf

3. In-Process GraphRAG

# Index documents and stream grounded responses with structural graph hops
glacier rag --model model.gguf --docs ./knowledge --query "What is our architecture?"

4. Continuous Batching Server (Drop-in Ollama & OpenAI)

# Serves POST /v1/chat/completions (OpenAI) and POST /api/chat (Ollama)
glacier serve model.gguf --port 11434 --blocks 1024 --batch-size 16

5. Download Foundation Models

# Pull directly from HuggingFace with live progress tracking
glacier pull lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF

🖥️ Hardware & Model Compatibility

  • Hardware Acceleration: NVIDIA RTX 40/30 series (Pure C# SASS / HIP / Vulkan), AMD Radeon 890M / RDNA3 (DirectML / HIP), Host CPUs (SIMD AVX-512 & AVX2).
  • Supported Architectures: Meta Llama 3/3.1/3.2/3.3, Microsoft Phi-4/Phi-3, DeepSeek-V2/V3/R1, Mistral/Devstral, Alibaba Qwen 2/2.5.
  • Quantization Types: Q4_K_M, Q5_K_M, Q6_K, Q8_0, Q4_0, MXFP4, F16, F32.

🆕 What's New in v1.0.3

  • Expanded CLI Argument & Validation Test Suite — added CliArgumentParsingTests.cs verifying argument constraints, missing flags, error codes, and hardware device discovery.
  • Reconciled Benchmark Telemetry — README figures now cite the measured 10-step LoRA run (6.96 s/step, 320 tokens/step) and separate in-memory from loopback throughput.
  • Hardened Console Synchronization — ensured deterministic sequential test execution with zero Console.Out contention under xUnit parallel test execution.
  • 28 tests passing (100%).

Credits

Developed by Ian Cowley and Antigravity (Google DeepMind).


📄 License

MIT License. High-Performance Pure C# .NET 10 Ecosystem.

ian-cowley/Glacier.Cli

Unified pure C# .NET 10 LLM command-line application (glacier). Universal inference (Llama, Phi, DeepSeek, Mistral, Qwen), in-process LoRA fine-tuning, GGUF adapter fusion, in-process GraphRAG, and PagedAttention continuous batching server.

C#

0

15 commits

updated Oct 9, 2026

See the code

README

GLACIER CLI: The Unified Pure C# .NET 10 LLM Tool

GLACIER CLI Banner

🚀 < 15ms Cold Start  |  ⚡ Zero Python / C++  |  💎 100% Pure C# .NET 10

One single global CLI tool replacing Ollama, vLLM, HuggingFace CLI, Unsloth, and RAGFlow.

License: MIT .NET 10 Native AOT NuGet Version Ecosystem


⚡ Install in One Command

🪟 Windows (PowerShell One-Liner):

irm https://raw.githubusercontent.com/ian-cowley/Glacier.Cli/main/install.ps1 | iex

Or download glacier-win-x64.zip and double-click install.bat.

🐧 Linux & 🍎 macOS:

curl -fsSL https://raw.githubusercontent.com/ian-cowley/Glacier.Cli/main/install.sh | bash

📦 Via .NET 10 Global Tool:

dotnet tool install -g Glacier.Cli

🎯 The Universal Command Matrix

CommandPurposeBenchmark / Highlight
glacier runInstant GPU/CPU streaming inference & REPL<15ms cold start, AVX-512 & Bare-Metal SASS (>64 tok/s generation)
glacier tuneIn-process PEFT LoRA fine-tuning6.96s / step (46 tok/s, 320 tokens/step, 10-step run) on RTX 4060
glacier mergeZero-copy GGUF adapter fusion< 60s (6.82s physical fusion) lossless Q8_0 fusion
glacier ragSIMD Vector + CSR Knowledge Graph RAG< 10ms end-to-end (27–29 µs in-process scan), zero-copy graph traversal
glacier serveOllama & OpenAI HTTP continuous batchingPagedAttention, 17,046 req/s socket turnaround (7.2M req/s pipeline capacity)
glacier pullHigh-speed chunked GGUF downloaderMulti-threaded download with live ETA & speed gauge

⚡ 60-Second Quickstart

1. Instant Inference (Llama 3, Phi-4, DeepSeek, Qwen)

# Streaming answer to a single prompt
glacier run model.gguf "Explain quantum computing in two sentences"

# Interactive terminal chat REPL
glacier run model.gguf

2. In-Process Fine-Tuning & Adapter Export

# Fine-tune directly in pure .NET 10 (GPU VRAM-resident + AVX-512)
glacier tune base.gguf --data dataset.jsonl --epochs 3 --rank 16 --out adapter.bin

# Fuse LoRA adapter directly into a standalone production GGUF
glacier merge base.gguf adapter.bin model-enterprise.gguf

3. In-Process GraphRAG

# Index documents and stream grounded responses with structural graph hops
glacier rag --model model.gguf --docs ./knowledge --query "What is our architecture?"

4. Continuous Batching Server (Drop-in Ollama & OpenAI)

# Serves POST /v1/chat/completions (OpenAI) and POST /api/chat (Ollama)
glacier serve model.gguf --port 11434 --blocks 1024 --batch-size 16

5. Download Foundation Models

# Pull directly from HuggingFace with live progress tracking
glacier pull lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF

🖥️ Hardware & Model Compatibility

  • Hardware Acceleration: NVIDIA RTX 40/30 series (Pure C# SASS / HIP / Vulkan), AMD Radeon 890M / RDNA3 (DirectML / HIP), Host CPUs (SIMD AVX-512 & AVX2).
  • Supported Architectures: Meta Llama 3/3.1/3.2/3.3, Microsoft Phi-4/Phi-3, DeepSeek-V2/V3/R1, Mistral/Devstral, Alibaba Qwen 2/2.5.
  • Quantization Types: Q4_K_M, Q5_K_M, Q6_K, Q8_0, Q4_0, MXFP4, F16, F32.

🆕 What's New in v1.0.3

  • Expanded CLI Argument & Validation Test Suite — added CliArgumentParsingTests.cs verifying argument constraints, missing flags, error codes, and hardware device discovery.
  • Reconciled Benchmark Telemetry — README figures now cite the measured 10-step LoRA run (6.96 s/step, 320 tokens/step) and separate in-memory from loopback throughput.
  • Hardened Console Synchronization — ensured deterministic sequential test execution with zero Console.Out contention under xUnit parallel test execution.
  • 28 tests passing (100%).

Credits

Developed by Ian Cowley and Antigravity (Google DeepMind).


📄 License

MIT License. High-Performance Pure C# .NET 10 Ecosystem.