Loading...

Ollama Model Template Test




Jinja2 Chat Template Test (tokenizer_config.json)




Ollama Tool Call Check




{{ toolCheckOutput }}

Chat Template Render Difference (Ollama vs Jinja2)





About This Project

This project helps to validate chat templates without building and deploying the model. Rendered chat templates can be used as raw requests to orignal model. It also allows to compare template rendering using both Ollama and Jinja2. It also demonstrates tool call validations and provides a playground for template experimentation.

This project demonstrates the usage of:

  • Go sources compiled for WebAssembly usage in the browser which call functions from Ollama source
  • Pyodide WebAssembly to call python and render Jinja2 templates.
  • Microsoft Monaco Editor
  • Vue 3 for this JS App
  • Pico CSS

Source code.

Built for community by Eugene Kamenev.