File size: 1,462 Bytes
24d0baa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
language:
- en
license: apache-2.0
library_name: transformers
tags:
- llama
- terminal
- bash
- zsh
- fish
- cli
- autocomplete
- gguf
- tiny-lm
datasets:
- BelugaDataSetCoder/ClangCodeDataset
pipeline_tag: text-generation
---

# ClangCoder-0.1 (2.05M Ultra-Compact Terminal & CLI Model)

**ClangCoder-0.1** is a 2.05M-parameter causal language model based on the Llama architecture, trained from scratch for ultra-fast terminal command autocompletion (`bash`, `zsh`, `fish`) and CLI command generation.

## Model Details
- **Architecture:** LlamaForCausalLM (`hidden_size=160`, `layers=4`, `heads=4`, `kv_heads=2`, `context=256`)
- **Parameters:** ~2.05M
- **Tokenizer:** Custom 2,048-token BPE vocabulary trained specifically on Linux/Unix shell syntax
- **Training Data:** `BelugaDataSetCoder/ClangCodeDataset`
- **Formats Included:** SafeTensors (PyTorch / Hugging Face) and `ClangCoder-0.1.gguf` (FP16 for `llama.cpp` / Ollama)

## Prompt Format

The model uses ChatML-style special tokens with a shell tag (`[bash]`, `[zsh]`, or `[fish]`):

```text
<|user|>
[bash] git status --short 
<|assistant|>
--branch<|end|>
```

## Quick Start with Ollama

1. Download `ClangCoder-0.1.gguf` and `Modelfile` from this repository.
2. Create the model in Ollama:
   ```bash
   ollama create clangcoder-0.1 -f Modelfile
   ```
3. Run a completion:
   ```bash
   ollama run clangcoder-0.1 "[fish] How do I set a global exported environment variable in Fish?"
   ```