Run this model with HF Jobs

Run BelugaDataSetCoder/ClangCoder-0.1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/BelugaDataSetCoder/ClangCoder-0.1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/BelugaDataSetCoder/ClangCoder-0.1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/BelugaDataSetCoder/ClangCoder-0.1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/BelugaDataSetCoder/ClangCoder-0.1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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]):

<|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:
    ollama create clangcoder-0.1 -f Modelfile
    
  3. Run a completion:
    ollama run clangcoder-0.1 "[fish] How do I set a global exported environment variable in Fish?"
    
Downloads last month
349
Safetensors
Model size
1.47M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train BelugaDataSetCoder/ClangCoder-0.1