~/ / Model files and chat templates
Model files and chat templates
Tools to look inside the files a model is made of, and the template that turns a conversation into its prompt. Read GGUF and safetensors headers, render a Hugging Face chat template the way transformers does, and write, check and test an Ollama Modelfile and its TEMPLATE.
Tools, in the order you use them
- Open a GGUF file: quantization, context, tokenizer, tensors, KV cacheGGUF Metadata ViewerOpen a GGUF file: quantization, context, layers, tokenizer, chat template, tensors and KV cache
- Open safetensors files: dtypes, parameters, weight size, KV cacheSafetensors Metadata ViewerOpen safetensors files: data types, parameters, weight size, split-model check and KV cache
- Render a Hugging Face chat template and see the exact promptHugging Face Chat Template TesterRender a chat template exactly like apply_chat_template: prompt text, variables and errors
- Build an Ollama Modelfile: FROM, SYSTEM, PARAMETER, MESSAGE and moreOllama Modelfile GeneratorBuild an Ollama Modelfile with a system message, parameters and stop sequences
- Check a Modelfile the way ollama create reads itOllama Modelfile CheckerCheck a Modelfile the way ollama create reads it: errors with lines, parameters and notes
- Run an Ollama TEMPLATE and see the exact promptOllama Template TesterRun an Ollama TEMPLATE on a conversation and see the exact prompt the model gets