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)
The model uses ChatML-style special tokens with a shell tag ([bash], [zsh], or [fish]):
<|user|>[bash] git status --short <|assistant|>--branch<|end|>
Quick Start with Ollama
- Download
ClangCoder-0.1.gguf and Modelfile from this repository.
- Create the model in Ollama:
ollama create clangcoder-0.1 -f Modelfile
- Run a completion:
ollama run clangcoder-0.1 "[fish] How do I set a global exported environment variable in Fish?"