transformers
Chat Template support for function calling and RAG
#30621
Merged

Chat Template support for function calling and RAG #30621

Rocketknight1 merged 69 commits into main from new_chat_template_args
Rocketknight1
HuggingFaceDocBuilderDev
Rocketknight1 Rocketknight1 force pushed to ddfc0512 2 years ago
Rocketknight1 Rocketknight1 force pushed to a94f2d7e 2 years ago
Rocketknight1 Rocketknight1 marked this pull request as ready for review 2 years ago
TheodoreGalanos
Rocketknight1
Rocketknight1 Rocketknight1 requested a review from amyeroberts amyeroberts 2 years ago
Rocketknight1
amyeroberts
Rocketknight1 Rocketknight1 force pushed to 089227c5 2 years ago
Rocketknight1 Rocketknight1 force pushed from 089227c5 to 2731c08b 2 years ago
Rocketknight1
Rocketknight1
Rocketknight1 Rocketknight1 force pushed to 1c1f5ba4 2 years ago
amyeroberts
amyeroberts commented on 2024-05-16
Rocketknight1 Rocketknight1 force pushed 2 years ago
Rocketknight1 Rocketknight1 force pushed to b93da8c5 2 years ago
Rocketknight1
Rocketknight1 Rocketknight1 force pushed from b93da8c5 to a019b787 2 years ago
LysandreJik
molbap
molbap commented on 2024-05-27
Rocketknight1 Rocketknight1 force pushed from a019b787 to 2145e9bb 2 years ago
CISC
Rocketknight1
CISC
Rocketknight1
CISC
Rocketknight1
molbap
molbap commented on 2024-05-28
molbap
molbap commented on 2024-05-28
Rocketknight1
CISC
Rocketknight1
Rocketknight1
molbap
molbap
molbap commented on 2024-05-31
jenkspt
CISC
jenkspt
jenkspt
CISC
jenkspt
Rocketknight1
CISC
Rocketknight1
Rocketknight1
amyeroberts
amyeroberts approved these changes on 2024-06-06
Rocketknight1 Rocketknight1 force pushed to 55078d77 2 years ago
CISC
CISC commented on 2024-06-07
CISC
CISC commented on 2024-06-07
Rocketknight1 Rocketknight1 force pushed 2 years ago
Rocketknight1 Rocketknight1 force pushed to 262a9697 2 years ago
jenkspt
Rocketknight1 First draft, still missing automatic function conversion
3ad5bd4a
Rocketknight1 First draft of the automatic schema generator
59e2cb64
Rocketknight1 Lots of small fixes
8f7655db
Rocketknight1 the walrus has betrayed me
0b2ead3f
Rocketknight1 please stop committing your debug breakpoints
cb67fd2d
Rocketknight1 Lots of cleanup and edge cases, looking better now
41df7d11
Rocketknight1 Comments and bugfixes for the type hint parser
eec24865
Rocketknight1 More cleanup
cf2b8dab
Rocketknight1 Add tests, update schema generator
ad0984b6
Rocketknight1 Update tests, proper handling of return values
c9fb3de8
Rocketknight1 Small docstring change
10be3b19
Rocketknight1 More doc updates
d9e64540
Rocketknight1 More doc updates
80addcf9
Rocketknight1 Add json_schema decorator
d3d677bb
Rocketknight1 Clean up the TODOs and finish the docs
a7d241c6
Rocketknight1 self.maxDiff = None to see the whole diff for the nested list test
fad9ae20
Rocketknight1 add import for add_json_schema
d202bfe0
Rocketknight1 Quick test fix
11cf8f57
Rocketknight1 Fix something that was bugging me in the chat template docstring
8962c421
Rocketknight1 Less "anyOf" when unnecessary
6f4a897e
Rocketknight1 Support return types for the templates that need them
6462de21
Rocketknight1 Proper return type tests
a49b68ea
Rocketknight1 Switch to Google format docstrings
c8a021e1
Rocketknight1 Update chat templating docs to match new format
69b6d31b
Rocketknight1 Stop putting the return type in with the other parameters
7f20d445
Rocketknight1 Add Tuple support
c3cf8723
Rocketknight1 No more decorator - we just do it implicitly!
098780da
Rocketknight1 Add enum support to get_json_schema
0ad7fdee
Rocketknight1 Update docstring
90a3c5bd
Rocketknight1 Add copyright header
ab2e741d
Rocketknight1 Update src/transformers/tokenization_utils_base.py
b2563c21
Rocketknight1 Update docs/source/en/chat_templating.md
24c05893
Rocketknight1 Update src/transformers/utils/chat_template_utils.py
49f1e977
Rocketknight1 Update src/transformers/utils/chat_template_utils.py
1036c5a4
Rocketknight1 Add copyright header
cdbc9bc0
Rocketknight1 make fixup
dbb157f2
Rocketknight1 Fix indentation
6171a9f0
Rocketknight1 Reformat chat_template_utils
098d6e6a
Rocketknight1 Correct return value
0a92408b
Rocketknight1 Make regexes module-level
a4dc182d
Rocketknight1 Support more complex, multi-line arg docstrings
390596e1
Rocketknight1 Update error message for ...
5568cb31
Rocketknight1 Update ruff
ae443e20
Rocketknight1 Add document type validation
85cba4e6
Rocketknight1 Refactor docs
23692c3c
Rocketknight1 Refactor docs
6ebad3ad
Rocketknight1 Refactor docs
19a9624b
Rocketknight1 Make regexes module-level
a4dc182d
Rocketknight1 Support more complex, multi-line arg docstrings
390596e1
Rocketknight1 Update error message for ...
5568cb31
Rocketknight1 Update ruff
ae443e20
Rocketknight1 Add document type validation
85cba4e6
Rocketknight1 Refactor docs
23692c3c
Rocketknight1 Refactor docs
6ebad3ad
Rocketknight1 Clean up Tuple error
28b5bc24
Rocketknight1 Add an extra test for very complex defs and docstrings and clean ever…
880bc997
Rocketknight1 Document enum block
58f69db7
Rocketknight1 Quick test fixes
df3123e3
Rocketknight1 Stop supporting type hints in docstring to fix bugs and simplify the …
cfb11907
Rocketknight1 Update docs for the regex change
fc66acc7
Rocketknight1 Clean up enum regex
bb6ba180
Rocketknight1 Wrap functions in {"type": "function", "function": ...}
eda660ff
Rocketknight1 Update src/transformers/utils/chat_template_utils.py
50c00e4b
Rocketknight1 Temporary tool calling commit
7b396ec9
Rocketknight1 Add type hints to chat template utils, partially update docs (incompl…
f64acfd3
Rocketknight1 Code cleanup based on @molbap's suggestion
4e839cb0
Rocketknight1 Add comments to explain regexes
8d7ca8f2
Rocketknight1 Fix up type parsing for unions and lists
3fbd6823
Rocketknight1 Add custom exception types and adjust tests to look for them
76c33200
Rocketknight1 Update docs with a demo!
170e3675
Rocketknight1 Docs cleanup
1d4952a1
Rocketknight1 Pass content as string
9f71f6c6
Rocketknight1 Update tool call formatting
6c29d465
Rocketknight1 Update docs with new function format
0ab8c7f3
Rocketknight1 Rocketknight1 force pushed to 0ab8c7f3 2 years ago
Rocketknight1 Update docs
2b3e2227
Rocketknight1 Update docs with a second tool to show the model choosing correctly
2b19b0a3
Rocketknight1 Rocketknight1 merged edc1dffd into main 2 years ago
Rocketknight1 Rocketknight1 deleted the new_chat_template_args branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone