llama.cpp
Xsn/jinja vm
#74
Open
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
122
Changes
View On
GitHub
Xsn/jinja vm
#74
ngxson
wants to merge 122 commits into
master
from
xsn/jinja_vm
jinja vm
8d803014
lexer
15b7c50e
add vm types
a35fcb00
demo
a6e0ae7a
clean up
7ac8e98b
parser ok
8cea1ed6
binary_expression::execute
7ad6eb39
shadow naming
8d1e9a0d
bin ops works!
d8ef00e6
fix map object
5a041e65
add string builtins
15b3dbab
add more builtins
7ed11f78
wip
da7bbe58
use mk_val
c08f4ddf
eval with is_user_input
10835f27
render gemma tmpl ok
81310d29
track input string even after transformations
4ca114b0
support binded functions
45c19462
keyword arguments and slicing array
4331e9c8
use shared_ptr for values
7f17608e
add mk_stmt
64e29a58
allow print source on exception
acb0effa
fix negate test
db09a746
testing more templates
45df0c91
mostly works
9a8a45ff
add filter_statement
adad34f6
allow func to access ctx
c7f246e7
add jinja-value.cpp
55fe96a9
impl global_from_json
1784a57e
a lot of fixes
2a31c9a3
more tests
1cf25734
more fix, more tests
026730e8
more fixes
9e9a70f7
rm workarounds
9c0fa6f8
demo: type inferrence
4479c382
add placeholder for tojson
1b213ae5
improve function args handling
cbb37dd4
rm type inference
d34efd96
no more std::regex
a10fbc77
trailing spaces
61c25c3f
make testing more flexible
b23b5e3c
make output a bit cleaner
a66e4a4f
(wip) redirect minja calls
4b71c285
test: add --output
0f9f986a
fix crash on macro kwargs
dce256cf
add minimal caps system
e858b7a0
add some workarounds
9b79863d
rm caps_apply_workarounds
5d548387
get rid of preprocessing
04a96a71
more fixes
9b24eadf
fix test-chat-template
1de836b5
move test-chat-jinja into test-chat-template
50aa8ed2
rm test-chat-jinja from cmake
217afcd3
test-chat-template: use common
8fb879b7
fix build
cf521dc9
fix build (2)
16e5d524
rename vm --> interpreter
e392fef4
improve error reporting
25a884ec
correct lstrip behavior
85b0efe5
add tojson
99aa61ca
more fixes
8c01e0ec
disable tests for COMMON_CHAT_FORMAT_GENERIC
60a3a6a2
make sure tojson output correct order
13ddab2a
add object.length
4af1850b
fully functional selectattr / rejectattr
264dcea2
improve error reporting
2ca9d799
more builtins added, more fixes
7fbdf63d
create jinja rendering tests
90062624
fix testing.h path
c0add06c
adjust whitespace rules
644d2815
Merge pull request #72 from aldehir/jinja-vm-whitespace
14a87064
more fixes
77864903
temporary disable test for ibm-granite
a3b49003
r/lstrip behavior matched with hf.js
b0f73ef3
minimax, glm4.5 ok
b86364f4
add append and pop
d3c4f398
kimi-k2 ok
61bfd471
test-chat passed
88a923dd
fix lstrip_block
e44e813b
add more jinja tests
e8aef239
cast to unsigned char
6fac106b
allow dict key to be numeric
6106249e
Merge pull request #73 from aldehir/jinja-vm-whitespace-2
dba22e57
nemotron: rm windows newline
c26b408f
tests ok
7ad016e0
github-actions
added
testing
fix test
8be34f8b
rename interpreter --> runtime
0ef77951
fix build
e2927d01
add more checks
7b9434d9
bring back generic format support
9e6a61ad
fix Apertus
4052dec7
[json.exception.out_of_range.403] key 'content' not found
65890e77
rm generic test
acf62fbc
refactor input marking
c6fa4144
add docs
63c88579
fix windows build
e739f755
Merge branch 'master' into xsn/jinja_vm
238759b5
github-actions
added
examples
github-actions
added
server
ngxson
force pushed
from
36480293
to
238759b5
7 days ago
clarify error message
44574371
improved tests
42936c22
split/rsplit with maxsplit
16d2d868
non-inverse maxsplit
79ff4816
implement separators for tojson and fix indent
bded39a1
Merge branch 'master' into xsn/jinja_vm
13fa1e61
i like to move it move it
82b889f0
rename null -- > none
12dd46ac
token::eof
0597a339
some nits + comments
605ebe26
add exception classes for lexer and parser
967a2b6a
null -> none
d368f633
rename global -> env
2b624822
rm minja
e0e1d107
github-actions
added
documentation
github-actions
added
python
github-actions
added
script
update docs
42979a93
docs: add input marking caveats
7d8e9edc
imlement missing jinja-tests functions
d440e035
oops
08409b76
support trim filter with args, remove bogus to_json reference
81f632e5
numerous argument fixes
a6043b3b
updated tests
c68d16e3
implement optional strip chars parameter
fffc6699
use new chars parameter
40dac623
float filter also has default
ac3abfe3
always leave at least one decimal in float string
57833586
Login to write a write a comment.
Login via GitHub
Reviewers
No reviews
Assignees
No one assigned
Labels
documentation
examples
python
server
testing
script
Milestone
No milestone
Login to write a write a comment.
Login via GitHub