Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
fredatgithub
llama-cpp-python
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
llama-cpp-python
llama_cpp
llama_chat_format.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Jun 7, 2026
feat: update llama.cpp to ggml-org/llama.cpp@465b1f0e7 (#2278)
abetlen
authored
cf18830
View commit details
Copy full SHA for cf18830
View code at this point
Browse repository at this point
Commits on Jun 4, 2026
feat: Generic Multimodal Chat Handler (#2256)
abetlen
authored
2dae477
View commit details
Copy full SHA for 2dae477
View code at this point
Browse repository at this point
Commits on Jun 1, 2026
feat: add Gemma 4 multimodal chat support (#2241)
abetlen
authored
a9b480f
View commit details
Copy full SHA for a9b480f
View code at this point
Browse repository at this point
fix: correct typo in comments and settings description (#2121)
Show description for 33bf9d2
thecaptain789
authored
33bf9d2
View commit details
Copy full SHA for 33bf9d2
View code at this point
Browse repository at this point
fix: match Transformers `tojson` in chat template rendering (#1486)
Show description for 84bc143
CISC
and
abetlen
authored
84bc143
View commit details
Copy full SHA for 84bc143
View code at this point
Browse repository at this point
feat: add Jinja2 loop controls to chat templates (#2018)
Show description for e8ee64b
handshape
and
abetlen
authored
e8ee64b
View commit details
Copy full SHA for e8ee64b
View code at this point
Browse repository at this point
Commits on May 31, 2026
Fix: model fails to load when chat template uses HuggingFace generation tags (#2226)
Show description for f160bf7
tobocop2
and
abetlen
authored
f160bf7
View commit details
Copy full SHA for f160bf7
View code at this point
Browse repository at this point
Commits on Mar 30, 2026
feat(server): add model-load chat_template_kwargs (#2168)
abetlen
authored
7257ba9
View commit details
Copy full SHA for 7257ba9
View code at this point
Browse repository at this point
Commits on Mar 23, 2026
feat: Update llama.cpp to ggerganov/llama.cpp@49bfddeca18e62fa3d39114a23e9fcbdf8a22388 (#2151)
Show description for 18aa31e
abetlen
authored
18aa31e
View commit details
Copy full SHA for 18aa31e
View code at this point
Browse repository at this point
Commits on Mar 22, 2026
misc: Add Ruff formatting (#2148)
Show description for a9b4a06
abetlen
authored
a9b4a06
View commit details
Copy full SHA for a9b4a06
View code at this point
Browse repository at this point
Commits on Aug 7, 2025
feat: Add gpt-oss chat format support through strftime_now in chat format by @iamlemec
abetlen
committed
af63792
View commit details
Copy full SHA for af63792
View code at this point
Browse repository at this point
Commits on Jul 15, 2025
fix: Better chat format for Qwen2.5-VL (#2040)
alcoftTAO
authored
c8579d7
View commit details
Copy full SHA for c8579d7
View code at this point
Browse repository at this point
Commits on Jul 3, 2025
fix: Use num_threads from llama model for mtmd
abetlen
committed
07a979f
View commit details
Copy full SHA for 07a979f
View code at this point
Browse repository at this point
feat: Add support for new mtmd api, add Qwen2.5-VL chat handler
abetlen
committed
cd548bd
View commit details
Copy full SHA for cd548bd
View code at this point
Browse repository at this point
Commits on Dec 6, 2024
fix: chat API logprobs format (#1788)
Show description for 4f0ec65
domdomegg
authored
4f0ec65
View commit details
Copy full SHA for 4f0ec65
View code at this point
Browse repository at this point
Commits on Aug 30, 2024
fix: Use system message in og qwen format. Closes #1697
abetlen
committed
98eb092
View commit details
Copy full SHA for 98eb092
View code at this point
Browse repository at this point
Commits on Aug 29, 2024
fix: Update name to MiniCPMv26ChatHandler
abetlen
committed
e251a0b
View commit details
Copy full SHA for e251a0b
View code at this point
Browse repository at this point
feat: Add MiniCPMv26 chat handler.
abetlen
committed
f70df82
View commit details
Copy full SHA for f70df82
View code at this point
Browse repository at this point
Commits on Jul 9, 2024
fix(minor): Minor ruff fixes
abetlen
committed
08f2bb3
View commit details
Copy full SHA for 08f2bb3
View code at this point
Browse repository at this point
fix(misc): Format
abetlen
committed
c1ae815
View commit details
Copy full SHA for c1ae815
View code at this point
Browse repository at this point
Commits on Jun 4, 2024
fix: Avoid duplicate special tokens in chat formats (#1439)
Show description for 027f7bc
CISC
and
abetlen
authored
027f7bc
View commit details
Copy full SHA for 027f7bc
View code at this point
Browse repository at this point
Commits on Jun 3, 2024
misc: Improve llava error messages
abetlen
committed
6b018e0
View commit details
Copy full SHA for 6b018e0
View code at this point
Browse repository at this point
Commits on May 29, 2024
fix: Fix typo in Llama3VisionAlphaChatHandler. Closes #1488
abetlen
committed
165b4dc
View commit details
Copy full SHA for 165b4dc
View code at this point
Browse repository at this point
Commits on May 10, 2024
fix: Clear kv cache to avoid kv bug when image is evaluated first
abetlen
committed
ac55d0a
View commit details
Copy full SHA for ac55d0a
View code at this point
Browse repository at this point
fix(security): Render all jinja templates in immutable sandbox (#1441)
Show description for 561e880
CISC
and
abetlen
authored
561e880
View commit details
Copy full SHA for 561e880
View code at this point
Browse repository at this point
Merge pull request from GHSA-56xg-wfcc-g829
Show description for b454f40
retr0reg
and
abetlen
authored
b454f40
View commit details
Copy full SHA for b454f40
View code at this point
Browse repository at this point
Commits on May 9, 2024
fix: free last image embed in llava chat handler
abetlen
committed
3757328
View commit details
Copy full SHA for 3757328
View code at this point
Browse repository at this point
Commits on May 8, 2024
fix: Make leading bos_token optional for image chat formats, fix nanollava system message
abetlen
committed
7712263
View commit details
Copy full SHA for 7712263
View code at this point
Browse repository at this point
fix: adding missing args in create_completion for functionary chat handler (#1430)
skalade
authored
903b28a
View commit details
Copy full SHA for 903b28a
View code at this point
Browse repository at this point
Commits on May 4, 2024
feat: Implement streaming for Functionary v2 + Bug fixes (#1419)
Show description for 1f56c64
jeffrey-fong
and
abetlen
authored
1f56c64
View commit details
Copy full SHA for 1f56c64
View code at this point
Browse repository at this point
Commits on May 2, 2024
feat: Add llama-3-vision-alpha chat format
abetlen
committed
31b1d95
View commit details
Copy full SHA for 31b1d95
View code at this point
Browse repository at this point
Commits on Apr 30, 2024
fix: Change default verbose value of verbose in image chat format handlers to True to match Llama
abetlen
committed
4f01c45
View commit details
Copy full SHA for 4f01c45
View code at this point
Browse repository at this point
fix: Ensure image renders before text in chat formats regardless of message content order.
abetlen
committed
3489ef0
View commit details
Copy full SHA for 3489ef0
View code at this point
Browse repository at this point
feat: Generic Chat Formats, Tool Calling, and Huggingface Pull Support for Multimodal Models (Obsidian, LLaVA1.6, Moondream) (#1147)
Show description for fe2da09
abetlen
authored
fe2da09
View commit details
Copy full SHA for fe2da09
View code at this point
Browse repository at this point
Commits on Apr 28, 2024
fix: Functionary bug fixes (#1385)
Show description for f178636
jeffrey-fong
and
abetlen
authored
f178636
View commit details
Copy full SHA for f178636
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.