Text Generation
GGUF
English
code
coding-assistant
llama-cpp
ciphercode
vscode
developer-tools
conversational
Instructions to use guhantech/CipherModel-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use guhantech/CipherModel-1.5B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="guhantech/CipherModel-1.5B", filename="CipherModel-1.5B-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use guhantech/CipherModel-1.5B with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf guhantech/CipherModel-1.5B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf guhantech/CipherModel-1.5B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf guhantech/CipherModel-1.5B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf guhantech/CipherModel-1.5B:Q4_K_M
Use Docker
docker model run hf.co/guhantech/CipherModel-1.5B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use guhantech/CipherModel-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "guhantech/CipherModel-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guhantech/CipherModel-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/guhantech/CipherModel-1.5B:Q4_K_M
- Ollama
How to use guhantech/CipherModel-1.5B with Ollama:
ollama run hf.co/guhantech/CipherModel-1.5B:Q4_K_M
- Unsloth Studio new
How to use guhantech/CipherModel-1.5B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for guhantech/CipherModel-1.5B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for guhantech/CipherModel-1.5B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for guhantech/CipherModel-1.5B to start chatting
- Pi new
How to use guhantech/CipherModel-1.5B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "guhantech/CipherModel-1.5B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use guhantech/CipherModel-1.5B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf guhantech/CipherModel-1.5B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default guhantech/CipherModel-1.5B:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use guhantech/CipherModel-1.5B with Docker Model Runner:
docker model run hf.co/guhantech/CipherModel-1.5B:Q4_K_M
- Lemonade
How to use guhantech/CipherModel-1.5B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull guhantech/CipherModel-1.5B:Q4_K_M
Run and chat with the model
lemonade run user.CipherModel-1.5B-Q4_K_M
List all available models
lemonade list
Polish model card: lead with Cipher features, credit Qwen as foundation
Browse files
README.md
CHANGED
|
@@ -11,89 +11,154 @@ tags:
|
|
| 11 |
- gguf
|
| 12 |
- ciphercode
|
| 13 |
- vscode
|
|
|
|
| 14 |
library_name: gguf
|
| 15 |
---
|
| 16 |
|
| 17 |
# CipherModel-1.5B
|
| 18 |
|
| 19 |
-
> **
|
| 20 |
-
>
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
## What
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
###
|
|
|
|
|
|
|
| 39 |
|
| 40 |
```bash
|
| 41 |
-
# Friends of Lila AI: install the .vsix sent to you privately
|
| 42 |
code --install-extension ciphercode-0.1.0.vsix
|
| 43 |
```
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
###
|
| 48 |
|
| 49 |
```bash
|
| 50 |
-
#
|
| 51 |
-
|
|
|
|
| 52 |
|
| 53 |
-
#
|
| 54 |
llama-server \
|
| 55 |
-m CipherModel-1.5B-Q4_K_M.gguf \
|
| 56 |
--host 0.0.0.0 --port 8080 \
|
| 57 |
--ctx-size 4096 -np 5
|
| 58 |
|
| 59 |
-
#
|
| 60 |
curl -X POST http://localhost:8080/v1/chat/completions \
|
| 61 |
-H "Content-Type: application/json" \
|
| 62 |
-
-d '{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
-
###
|
| 66 |
|
| 67 |
```python
|
| 68 |
from llama_cpp import Llama
|
|
|
|
| 69 |
llm = Llama(model_path="CipherModel-1.5B-Q4_K_M.gguf", n_ctx=4096)
|
| 70 |
out = llm("def fizzbuzz(n):", max_tokens=256)
|
| 71 |
print(out["choices"][0]["text"])
|
| 72 |
```
|
| 73 |
|
| 74 |
-
##
|
| 75 |
-
|
| 76 |
-
- **Architecture:** Qwen2.5-Coder (transformer)
|
| 77 |
-
- **Parameters:** 1.5 B
|
| 78 |
-
- **Context window:** 32 K (we run at 4 K in production for memory)
|
| 79 |
-
- **Quantization:** Q4_K_M
|
| 80 |
-
- **License:** Apache 2.0 (inherited from base model)
|
| 81 |
-
- **Languages supported:** strong in Python, JavaScript, TypeScript, Java, Go, Rust, C/C++ β see Qwen2.5-Coder's eval table for details
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
## Citation / credits
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
```bibtex
|
| 94 |
@article{hui2024qwen2,
|
| 95 |
title={Qwen2.5-Coder Technical Report},
|
| 96 |
-
author={
|
| 97 |
journal={arXiv preprint arXiv:2409.12186},
|
| 98 |
year={2024}
|
| 99 |
}
|
|
@@ -101,10 +166,10 @@ Built on top of:
|
|
| 101 |
|
| 102 |
## Trademark
|
| 103 |
|
| 104 |
-
CipherCode
|
| 105 |
|
| 106 |
-
The
|
| 107 |
|
| 108 |
---
|
| 109 |
|
| 110 |
-
Β© 2026 Lila AI LLC.
|
|
|
|
| 11 |
- gguf
|
| 12 |
- ciphercode
|
| 13 |
- vscode
|
| 14 |
+
- developer-tools
|
| 15 |
library_name: gguf
|
| 16 |
---
|
| 17 |
|
| 18 |
# CipherModel-1.5B
|
| 19 |
|
| 20 |
+
> **Your IDE's new best friend.**
|
| 21 |
+
> The model behind [CipherCode](https://huggingface.co/guhantech) β the AI coding assistant that learns *your* style, remembers *your* projects, and writes code in *your* voice.
|
| 22 |
+
>
|
| 23 |
+
> By **Lila AI LLC** Β· Closed beta v0.1
|
| 24 |
|
| 25 |
+
---
|
| 26 |
|
| 27 |
+
## What CipherCode Delivers
|
| 28 |
|
| 29 |
+
CipherCode isn't another generic completion plugin. It's a complete coding companion that lives natively inside VS Code and adapts to *you*.
|
| 30 |
+
|
| 31 |
+
### Cipher Persona β Your Style, Learned
|
| 32 |
+
|
| 33 |
+
The first time you open a workspace, CipherCode silently scans your code and detects:
|
| 34 |
+
|
| 35 |
+
- Naming conventions (camelCase / snake_case / PascalCase)
|
| 36 |
+
- Function style (arrow vs named declarations)
|
| 37 |
+
- Async style (async/await vs `.then`)
|
| 38 |
+
- Comment placement and verbosity
|
| 39 |
+
- Indent size, semicolon preference, type-annotation density
|
| 40 |
+
- Your most-used libraries and imports
|
| 41 |
+
|
| 42 |
+
From that moment forward, every suggestion is generated to feel like *you* wrote it. Nothing leaves your machine β Persona lives entirely in VS Code's `globalState`.
|
| 43 |
+
|
| 44 |
+
### Project Memory β Continuity That Actually Helps
|
| 45 |
+
|
| 46 |
+
CipherCode remembers your project across sessions:
|
| 47 |
+
|
| 48 |
+
| What's tracked | Where |
|
| 49 |
+
|---|---|
|
| 50 |
+
| Project summary (auto-detected from `package.json` / README) | `.vscode/cipher-memory.json` |
|
| 51 |
+
| Project type (`node` / `python` / `other`) | local |
|
| 52 |
+
| Top 10 most-edited files | local |
|
| 53 |
+
| Architectural decisions you've made | local |
|
| 54 |
+
| Last 20 chat messages | local |
|
| 55 |
+
| Recurring patterns in your code | local |
|
| 56 |
+
|
| 57 |
+
This context is injected into every prompt, so when you come back tomorrow, the model already knows what you're building.
|
| 58 |
+
|
| 59 |
+
### Smart Commands
|
| 60 |
+
|
| 61 |
+
Right-click anywhere in your editor:
|
| 62 |
+
|
| 63 |
+
- **Explain Code** β clear summary of what's happening, even without a selection
|
| 64 |
+
- **Refactor Code** β clean up while preserving your style
|
| 65 |
+
- **Fix Bug** β find and patch issues, style-matched
|
| 66 |
+
- **Add Comments** β comment in your voice
|
| 67 |
+
- **Document This File** β language-aware doc comments (TSDoc / JSDoc / Google Python / Javadoc / XMLDoc / Doxygen / godoc / rustdoc / PHPDoc / YARD)
|
| 68 |
+
- **Generate README from Project** β full README from your code structure
|
| 69 |
+
|
| 70 |
+
Plus an inline chat sidebar with persistent history, code-block copy buttons, "Insert at cursor" actions, and a stop button that actually stops.
|
| 71 |
+
|
| 72 |
+
### Privacy by Architecture
|
| 73 |
|
| 74 |
+
- Code stays on your machine β only the snippet you act on hits inference
|
| 75 |
+
- Persona never leaves your laptop
|
| 76 |
+
- Project memory lives in your workspace, not a Lila AI server
|
| 77 |
+
- Self-hostable on your own GCP if you want full ownership
|
| 78 |
+
- No telemetry, no accounts, no subscription
|
| 79 |
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## Powered By
|
| 83 |
+
|
| 84 |
+
Built on **[Qwen2.5-Coder-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct)** β Alibaba's state-of-the-art open code model β quantized to **Q4_K_M** for efficient CPU inference and packaged for deployment via `llama.cpp`.
|
| 85 |
+
|
| 86 |
+
The intelligence in CipherCode comes from layering Persona detection, Project Memory, and carefully designed prompt templates on top of a strong base. The CipherCode VS Code extension orchestrates all of it; this repo hosts the weights it serves.
|
| 87 |
+
|
| 88 |
+
A LoRA fine-tune is on the roadmap for v0.2 β trained on real-world IDE workflow patterns collected during the closed beta.
|
| 89 |
+
|
| 90 |
+
## Specifications
|
| 91 |
+
|
| 92 |
+
| | |
|
| 93 |
+
|---|---|
|
| 94 |
+
| **Architecture** | Qwen2.5-Coder transformer |
|
| 95 |
+
| **Parameters** | 1.5 B |
|
| 96 |
+
| **Context window** | 32 K (production runs at 4 K for efficiency) |
|
| 97 |
+
| **Quantization** | Q4_K_M |
|
| 98 |
+
| **File size** | 1.07 GB |
|
| 99 |
+
| **License** | Apache 2.0 β free for commercial use |
|
| 100 |
+
| **Strong languages** | Python, JavaScript, TypeScript, Java, Go, Rust, C/C++ |
|
| 101 |
|
| 102 |
+
## Quick Start
|
| 103 |
|
| 104 |
+
### Easy path β install the VS Code extension
|
| 105 |
+
|
| 106 |
+
If Lila AI sent you the closed-beta `.vsix`:
|
| 107 |
|
| 108 |
```bash
|
|
|
|
| 109 |
code --install-extension ciphercode-0.1.0.vsix
|
| 110 |
```
|
| 111 |
|
| 112 |
+
Open VS Code. Welcome walkthrough opens automatically. Start typing. No setup, no token, no GCP.
|
| 113 |
|
| 114 |
+
### Hands-on path β run the model locally
|
| 115 |
|
| 116 |
```bash
|
| 117 |
+
# Pull the GGUF
|
| 118 |
+
hf download guhantech/CipherModel-1.5B \
|
| 119 |
+
CipherModel-1.5B-Q4_K_M.gguf --local-dir .
|
| 120 |
|
| 121 |
+
# Serve with llama-server
|
| 122 |
llama-server \
|
| 123 |
-m CipherModel-1.5B-Q4_K_M.gguf \
|
| 124 |
--host 0.0.0.0 --port 8080 \
|
| 125 |
--ctx-size 4096 -np 5
|
| 126 |
|
| 127 |
+
# Make a request
|
| 128 |
curl -X POST http://localhost:8080/v1/chat/completions \
|
| 129 |
-H "Content-Type: application/json" \
|
| 130 |
+
-d '{
|
| 131 |
+
"model": "cipher-model",
|
| 132 |
+
"messages": [{"role":"user","content":"write a python fizzbuzz"}],
|
| 133 |
+
"max_tokens": 256
|
| 134 |
+
}'
|
| 135 |
```
|
| 136 |
|
| 137 |
+
### Python (`llama-cpp-python`)
|
| 138 |
|
| 139 |
```python
|
| 140 |
from llama_cpp import Llama
|
| 141 |
+
|
| 142 |
llm = Llama(model_path="CipherModel-1.5B-Q4_K_M.gguf", n_ctx=4096)
|
| 143 |
out = llm("def fizzbuzz(n):", max_tokens=256)
|
| 144 |
print(out["choices"][0]["text"])
|
| 145 |
```
|
| 146 |
|
| 147 |
+
## Roadmap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
+
| Version | Status | What's in it |
|
| 150 |
+
|---|---|---|
|
| 151 |
+
| **v0.1** | Live | Closed beta. Cipher Persona + Project Memory + 11 commands + chat sidebar. |
|
| 152 |
+
| **v0.2** | Planned | LoRA fine-tune on collected IDE workflows. Better instruction-following. |
|
| 153 |
+
| **v0.3** | Planned | Multi-file context awareness. Whole-project doc generation. |
|
| 154 |
+
| **v1.0** | Planned | Public Marketplace launch. Optional hosted Pro tier for zero-setup. |
|
|
|
|
| 155 |
|
| 156 |
+
## Citation
|
| 157 |
|
| 158 |
```bibtex
|
| 159 |
@article{hui2024qwen2,
|
| 160 |
title={Qwen2.5-Coder Technical Report},
|
| 161 |
+
author={Hui, Binyuan and Yang, Jian and Cui, Zeyu and others},
|
| 162 |
journal={arXiv preprint arXiv:2409.12186},
|
| 163 |
year={2024}
|
| 164 |
}
|
|
|
|
| 166 |
|
| 167 |
## Trademark
|
| 168 |
|
| 169 |
+
**CipherCode** and **Cipher Persona** are trademarks of **Lila AI LLC**. All rights reserved.
|
| 170 |
|
| 171 |
+
The model weights are released under Apache 2.0 β free to use, modify, and redistribute. Trademarks restrict only how you may name and brand derivative work; the underlying weights remain unrestricted.
|
| 172 |
|
| 173 |
---
|
| 174 |
|
| 175 |
+
<sub>Β© 2026 Lila AI LLC Β· Built for developers who don't want their AI to sound like Stack Overflow.</sub>
|