-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic Chat templating code with text/json file based config; main chat updated to drive its in-prefix, in-suffix and reverse-prompt from same; chat-apply-template equivalent c-api to allow use by other codes also #6834
base: master
Are you sure you want to change the base?
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2146a25 - Browse repository at this point
Copy the full SHA 2146a25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35f2519 - Browse repository at this point
Copy the full SHA 35f2519View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc56be9 - Browse repository at this point
Copy the full SHA dc56be9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 093abc2 - Browse repository at this point
Copy the full SHA 093abc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1374a64 - Browse repository at this point
Copy the full SHA 1374a64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 050d329 - Browse repository at this point
Copy the full SHA 050d329View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdbe4f0 - Browse repository at this point
Copy the full SHA cdbe4f0View commit details -
ChatOn: update sample meta json a bit
Move [inst] [/inst] wrt llama2 from global to individual role specific parts. Avoid an extra \n wrt prefixes of llama3
Configuration menu - View commit details
-
Copy full SHA for d87d275 - Browse repository at this point
Copy the full SHA d87d275View commit details -
ChatON:Cleanup: BeginEnd, Debug log
Update the note Rename global-prefix|suffix to global-begin|end. Rename chat-apply-template to chat-apply-template-single, cas it handles only a single message. Add some debug log messages to the helper functions
Configuration menu - View commit details
-
Copy full SHA for c4cf0e9 - Browse repository at this point
Copy the full SHA c4cf0e9View commit details -
ChatOn:No global-begin/end in ChatApplyTmplSingle, ChatApplyTmpl
Avoid adding global begin/end markers wrt ChatApplyTmplSingle. Add ChatApplyTmpl which goes through a vector of messages.
Configuration menu - View commit details
-
Copy full SHA for f03dd24 - Browse repository at this point
Copy the full SHA f03dd24View commit details -
ChatOn: Add SystemUser-1st-User-Has-Prefix flag support
Llama2 seems to need it, so chaton-meta-json sample file updated to use same.
Configuration menu - View commit details
-
Copy full SHA for 221ccd6 - Browse repository at this point
Copy the full SHA 221ccd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11b47fb - Browse repository at this point
Copy the full SHA 11b47fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b105564 - Browse repository at this point
Copy the full SHA b105564View commit details -
ChatOn:MetaOk: Allows template-id based cross check
For a given template-id, cross check, all needed entries are there in the json.
Configuration menu - View commit details
-
Copy full SHA for e8c24c0 - Browse repository at this point
Copy the full SHA e8c24c0View commit details -
ChatON: Rename helpers to kv suffix, updated wrt metaok
rename because they return value of specified key. [main] update metaok to take template-id, so that one can cross check that all needed entries are there wrt that template-id in the chaton-meta-json file
Configuration menu - View commit details
-
Copy full SHA for efb758b - Browse repository at this point
Copy the full SHA efb758bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42f6b45 - Browse repository at this point
Copy the full SHA 42f6b45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f9dfc2 - Browse repository at this point
Copy the full SHA 3f9dfc2View commit details -
Order the functions so that no need for seperate prototypes Also use kv_bool wrt boolean entries. Convert string to c char *
Configuration menu - View commit details
-
Copy full SHA for 217544e - Browse repository at this point
Copy the full SHA 217544eView commit details -
Avoid showing on screen the debug messages. meta-dump can either show on screen or not, based on how LOGXLN is defined.
Configuration menu - View commit details
-
Copy full SHA for 57bd772 - Browse repository at this point
Copy the full SHA 57bd772View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8028f - Browse repository at this point
Copy the full SHA 2a8028fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4b5406 - Browse repository at this point
Copy the full SHA f4b5406View commit details -
ChatON: Add template for DeepSeek
Was looking at the tokenized vector, and noticed that the EOS mentioned by existing chat_apply_template of llama.cpp, is different from what I noticed in tokenizer_config.json of deepseek llm, so I have added two entries * "deepseek-alt" which matches llama.cpp's chat_apply_template and * "deepseek" which matches that in tokenizer_config.json. This impacts the assistant suffix and reverse prompt entries. CasOfThis: Need to look into other entries which I added previously at a later time. However as the default logic should be picking the EOS from model file, so I assume reverse-prompt being outofsync, may not matter beyond a limit, potentially.
Configuration menu - View commit details
-
Copy full SHA for 84367b9 - Browse repository at this point
Copy the full SHA 84367b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd279c - Browse repository at this point
Copy the full SHA bdd279cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f713d4 - Browse repository at this point
Copy the full SHA 0f713d4View commit details -
ChatOn: Add begin to the mix along with prefix
Dump shows user->begin. chat-template-apply[-single] updated to work with begin and prefix TODO: need to wrap begin in a try-catch, so that irrespective of role, begin+prefix will work, irrespoective of whether that role has a begin entry or not.
Configuration menu - View commit details
-
Copy full SHA for d70fca7 - Browse repository at this point
Copy the full SHA d70fca7View commit details -
ChatOn: Wrap getting begin in try-catch,
so that even if a role doesnt contain begin, the logic will work fine.
Configuration menu - View commit details
-
Copy full SHA for 724ff38 - Browse repository at this point
Copy the full SHA 724ff38View commit details -
ChatON:Add Monarch model template, which uses Begin + Prefix
Inturn Begin/BoS is added only for non 1st user messages in a system+user prompts chain.
Configuration menu - View commit details
-
Copy full SHA for f1f39c5 - Browse repository at this point
Copy the full SHA f1f39c5View commit details -
ChatON+:Update tmpl_role_kv to retrieve wrt multiple keys
Use the same for user role's begin and prefix entries.
Configuration menu - View commit details
-
Copy full SHA for 3064a36 - Browse repository at this point
Copy the full SHA 3064a36View commit details -
ChatON:ChatParts class initial go
Helps keep user prompt and chat-hs-template tag parts seperate, but in sequence
Configuration menu - View commit details
-
Copy full SHA for 9de1d60 - Browse repository at this point
Copy the full SHA 9de1d60View commit details -
Configuration menu - View commit details
-
Copy full SHA for d189972 - Browse repository at this point
Copy the full SHA d189972View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b23f15 - Browse repository at this point
Copy the full SHA 6b23f15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92e780f - Browse repository at this point
Copy the full SHA 92e780fView commit details -
ChatOn: ChatTemplateApplySingle[Ex] return parts detail
Now there is a simple and extended version of returning tagged message wrt a single role and its content. The extended version returns the tagged string, as well as the details of the parts that make up that tagged message interms of the type of parts and the lengths of the parts.
Configuration menu - View commit details
-
Copy full SHA for 825a78a - Browse repository at this point
Copy the full SHA 825a78aView commit details -
ChatOn: ChatTemplateApply[Ex] return tagged msgs parts detail
Now there is a simple and extended version of returning tagged messages. The extended version returns the tagged string, as well as the details of the parts that make up that tagged message interms of the type of parts and the lengths of the parts.
Configuration menu - View commit details
-
Copy full SHA for 3f09eb5 - Browse repository at this point
Copy the full SHA 3f09eb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for adab577 - Browse repository at this point
Copy the full SHA adab577View commit details -
ChatOn:chaton_tmpl_role_kv: try except to ignore missing ifany
Cas of above reason, switch to directly accessing the keys in dump helper, which is inturn used by meta_ok check
Configuration menu - View commit details
-
Copy full SHA for 7ba0144 - Browse repository at this point
Copy the full SHA 7ba0144View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d76f08 - Browse repository at this point
Copy the full SHA 5d76f08View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8ae21c - Browse repository at this point
Copy the full SHA f8ae21cView commit details -
ChatOn:ChatOnTemplateApply: suffix,end flag based control
Also fix a oversight wrt begin, when flag based begin adding control was introduced. NOTE: Currently system role suffix/end conditional adding always triggered, if 1st system prompt seen or additional system prompt is seen.
Configuration menu - View commit details
-
Copy full SHA for 344857b - Browse repository at this point
Copy the full SHA 344857bView commit details -
ChatON:MetaOK->MetaDump: Alert if user->end is needed or not
Because user messages dont normally need a EoS token.
Configuration menu - View commit details
-
Copy full SHA for 6a0214c - Browse repository at this point
Copy the full SHA 6a0214cView commit details -
Move helpers to the begining, so can avoid adding prototype declerations/function signatures to the begining Get the char * wrt string data in the c++ string.
Configuration menu - View commit details
-
Copy full SHA for 0cd7c62 - Browse repository at this point
Copy the full SHA 0cd7c62View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf1167b - Browse repository at this point
Copy the full SHA bf1167bView commit details -
ChatON: Update to new detailed format wrt llama2 and llama3
Wrt llama2 * add bos wrt llama2 system and user begins, but not assistant * split system suffix into suffix and end, and add systemuser-system flags so that end can be avoided wrt system+user message combo * add eos wrt assistant end * With these potentially this should work with main and server flows Wrt llama3 * add empty begin, end fields and systemuser-system flags * This should potentially work with main and server flows
Configuration menu - View commit details
-
Copy full SHA for b9e3130 - Browse repository at this point
Copy the full SHA b9e3130View commit details -
ChatON+Main: Updates wrt detailed meta json
Fix a oversight wrt key name. Add a alert in case if passed meta json file contains begin(BoS) wrt assistant role, similar to check for end (EoS) wrt user role. Bcas normally both (ie EoS wrt User and BoS wrt Assistant) shouldnt be needed. Update main wrt begin & prefix and suffix & end addition.
Configuration menu - View commit details
-
Copy full SHA for 13857f2 - Browse repository at this point
Copy the full SHA 13857f2View commit details -
ChatON+Main: Add C_API wrapper for single
Add a c api wrapper for a single message tagging scenario. Inturn to match convention followed by existing chat_apply_template code, make it return the size expected of the tagged message string buffer. Update internal single logic to help with same. Explicitly check if tmpl specified is available in the loaded json or not and then return a error if not found.
Configuration menu - View commit details
-
Copy full SHA for 01c8db7 - Browse repository at this point
Copy the full SHA 01c8db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea3a0f1 - Browse repository at this point
Copy the full SHA ea3a0f1View commit details -
ChatON: Add alertAssistantAtEnd flag & logic wrt MultiMsgs Apply
While sending the current chat session along with new user query to the model, many models expect that a tag be added at the end to indicate that user is expecting the model to respond, this flags allows for the same.
Configuration menu - View commit details
-
Copy full SHA for e62699f - Browse repository at this point
Copy the full SHA e62699fView commit details -
ChatON:WIP:Add c api wrapper for chat_template_apply
Initial skeletons Update existing logics to help with same. Also the inbetween helper was having a bad signature wrt returning status and data, thats also fixed.
Configuration menu - View commit details
-
Copy full SHA for 308d3bf - Browse repository at this point
Copy the full SHA 308d3bfView commit details -
ChatON:ChatTemplateApplyCAPI remaining base logic
As c doesnt have the concept of pass by reference, and inturn the existing c api uses pointers wrt llama chat message structure, so switching to same wrt chat_tmpl_apply logics. Also fix a oversight in previous commit and add the remaining logic.
Configuration menu - View commit details
-
Copy full SHA for a630564 - Browse repository at this point
Copy the full SHA a630564View commit details -
ChatON: switch to ordered_json from json library
to be in sync with the json namespace in server.
Configuration menu - View commit details
-
Copy full SHA for 58e1ff1 - Browse repository at this point
Copy the full SHA 58e1ff1View commit details -
ChatON:Common:Update the cmdline argument name used
Had forgotten to update it before
Configuration menu - View commit details
-
Copy full SHA for fee887f - Browse repository at this point
Copy the full SHA fee887fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d61b071 - Browse repository at this point
Copy the full SHA d61b071View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b3285 - Browse repository at this point
Copy the full SHA a4b3285View commit details -
ChatON:Gemma: update for detailed meta json
Also as part of same add user role entry for system role also.
Configuration menu - View commit details
-
Copy full SHA for 403a6c4 - Browse repository at this point
Copy the full SHA 403a6c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b2e921 - Browse repository at this point
Copy the full SHA 1b2e921View commit details -
Configuration menu - View commit details
-
Copy full SHA for 006a398 - Browse repository at this point
Copy the full SHA 006a398View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18cd125 - Browse repository at this point
Copy the full SHA 18cd125View commit details -
ChatON:Zephyr: Update wrt detailed meta json, also update eos
Pick eos from zephyr's tokenizer_config, which is different from what was hardcoded in the existing llama_chat_apply_template.
Configuration menu - View commit details
-
Copy full SHA for a64dcd7 - Browse repository at this point
Copy the full SHA a64dcd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 368fbf1 - Browse repository at this point
Copy the full SHA 368fbf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad5e521 - Browse repository at this point
Copy the full SHA ad5e521View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55e3d63 - Browse repository at this point
Copy the full SHA 55e3d63View commit details -
Configuration menu - View commit details
-
Copy full SHA for cad50c5 - Browse repository at this point
Copy the full SHA cad50c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32e672c - Browse repository at this point
Copy the full SHA 32e672cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a724fd9 - Browse repository at this point
Copy the full SHA a724fd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4e829d - Browse repository at this point
Copy the full SHA c4e829dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff5f688 - Browse repository at this point
Copy the full SHA ff5f688View commit details -
Configuration menu - View commit details
-
Copy full SHA for 889a45f - Browse repository at this point
Copy the full SHA 889a45fView commit details -
Configuration menu - View commit details
-
Copy full SHA for af9a0a2 - Browse repository at this point
Copy the full SHA af9a0a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce75d43 - Browse repository at this point
Copy the full SHA ce75d43View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4687fa - Browse repository at this point
Copy the full SHA f4687faView commit details -
Configuration menu - View commit details
-
Copy full SHA for aea6850 - Browse repository at this point
Copy the full SHA aea6850View commit details -
ChatON: Add simpcfg based config file matching chaton_meta.json
Add missing begin and end fields wrt deepseek-coder assistant in chaton_meta.json. Idea is to avoid json library dependency by adding a simple text based config file support.
Configuration menu - View commit details
-
Copy full SHA for f728dbd - Browse repository at this point
Copy the full SHA f728dbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cbb00c - Browse repository at this point
Copy the full SHA 2cbb00cView commit details -
SimpCfg:Make str_trim flexible, use to trim , wrt value
Now one can pass the list/string of chars to trim at either end.
Configuration menu - View commit details
-
Copy full SHA for 28ae0c5 - Browse repository at this point
Copy the full SHA 28ae0c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ecca5a - Browse repository at this point
Copy the full SHA 1ecca5aView commit details -
SimpCfg: Rename member functions to avoid sc_ prefix
now that logic has been converted into a class, no need for this prefix
Configuration menu - View commit details
-
Copy full SHA for 6de8a14 - Browse repository at this point
Copy the full SHA 6de8a14View commit details -
Configuration menu - View commit details
-
Copy full SHA for d514c81 - Browse repository at this point
Copy the full SHA d514c81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 951fbc3 - Browse repository at this point
Copy the full SHA 951fbc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9940bd8 - Browse repository at this point
Copy the full SHA 9940bd8View commit details -
SimpCfg: Put GroupMap back into Map, Iterate during get if DBUG
TODO: Have to look into C++ a bit later including these default container types. Not sure my current flow is efficient.
Configuration menu - View commit details
-
Copy full SHA for 82348e2 - Browse repository at this point
Copy the full SHA 82348e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca5a04d - Browse repository at this point
Copy the full SHA ca5a04dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a534e6 - Browse repository at this point
Copy the full SHA 0a534e6View commit details -
SimpCfg: Use & wrt destination of [] operation
so that one can update the value-item's content, without needing to explicitly update/store the value-item back into map after the content has been updated. This should make these setting operations/helpers more efficient.
Configuration menu - View commit details
-
Copy full SHA for d0b3ebf - Browse repository at this point
Copy the full SHA d0b3ebfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb9a7dc - Browse repository at this point
Copy the full SHA fb9a7dcView commit details -
SimpCfg:Implement set_int64 and set_double
Also update the sample simpcfg file, to test for int and float values.
Configuration menu - View commit details
-
Copy full SHA for 4181164 - Browse repository at this point
Copy the full SHA 4181164View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6648b0 - Browse repository at this point
Copy the full SHA a6648b0View commit details -
SimpCfg:Warn possible nonstring strings, some invalid floats
Warn if something not starting with double quote is being treated as a string. Show some examples of invalid floating point values wrt this logics floating point determination code
Configuration menu - View commit details
-
Copy full SHA for 000245b - Browse repository at this point
Copy the full SHA 000245bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ad2c17 - Browse repository at this point
Copy the full SHA 8ad2c17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44c0530 - Browse repository at this point
Copy the full SHA 44c0530View commit details -
Configuration menu - View commit details
-
Copy full SHA for a108000 - Browse repository at this point
Copy the full SHA a108000View commit details -
ChatON: meta-dump returns flag inturn returned by meta-ok
test-chat-template-chaton now tries to check if meta-ok is ok wrt the template-id being looked into. Log template-id info also, where it was previously missed out.
Configuration menu - View commit details
-
Copy full SHA for a095713 - Browse repository at this point
Copy the full SHA a095713View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7302b3a - Browse repository at this point
Copy the full SHA 7302b3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee1a62c - Browse repository at this point
Copy the full SHA ee1a62cView commit details -
SimpCfg:WIP:Variant TypeDef, to_str and std::get
Cleanup the use of the variant Initialize and << op stringstream seperately.
Configuration menu - View commit details
-
Copy full SHA for 1dc7fd0 - Browse repository at this point
Copy the full SHA 1dc7fd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f05f71b - Browse repository at this point
Copy the full SHA f05f71bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b475e4 - Browse repository at this point
Copy the full SHA 6b475e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aa1072 - Browse repository at this point
Copy the full SHA 5aa1072View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef5a2cf - Browse repository at this point
Copy the full SHA ef5a2cfView commit details -
SimpCfg:Bools:Make lowercase b4 checking true/false for bool path
TODO: string check wrt true/false, doesnt seem to be working after str_tolower was introduced. I seem to be doing some silly mistake not able to make out, moving in and out of sleep, need to check tomorrow. string == string-literal failed string == string-view failed string.compare(string-literal) failed Bit strange
Configuration menu - View commit details
-
Copy full SHA for eb56517 - Browse repository at this point
Copy the full SHA eb56517View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e0d7da - Browse repository at this point
Copy the full SHA 0e0d7daView commit details -
SimpCfg:Remove dbug logs wrt str_tolower and set_bool
Also the warning wrt is it string, now also logs the line number, group and key, to help user identify the line better. Misc: pass time last week Another life, Anchakkallakokkan, Deadloch
Configuration menu - View commit details
-
Copy full SHA for 08b9711 - Browse repository at this point
Copy the full SHA 08b9711View commit details -
SimpCfg:Cleanup:Cmdline Arg, GetValueCallerLogging, StringCmp
Bring the direct string comparison also back, as the issue with cmp was more to do with string.transform.
Configuration menu - View commit details
-
Copy full SHA for 8fdc805 - Browse repository at this point
Copy the full SHA 8fdc805View commit details -
SimpCfg: initial go at adding support for spreadout arrays
By having a seperate entry for each element of the array, the existing logic itself can be repurposed with minimal additions.
Configuration menu - View commit details
-
Copy full SHA for 561f509 - Browse repository at this point
Copy the full SHA 561f509View commit details -
SimpCfg:GetArray flesh out, helpers to convert to string
Good: Forgotten love, All the light we cant see, laapataa ladies
Configuration menu - View commit details
-
Copy full SHA for 1e1f54e - Browse repository at this point
Copy the full SHA 1e1f54eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86e776c - Browse repository at this point
Copy the full SHA 86e776cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56f19c7 - Browse repository at this point
Copy the full SHA 56f19c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 713520c - Browse repository at this point
Copy the full SHA 713520cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 691d0d4 - Browse repository at this point
Copy the full SHA 691d0d4View commit details -
SimpCfg:CheckString: organise and probe - p3 wstring
wcouts' involving 2nd wstring with non english char in it not showing up?
Configuration menu - View commit details
-
Copy full SHA for a448fec - Browse repository at this point
Copy the full SHA a448fecView commit details -
SimpCfg:CheckStrings:MacOS, wstring and wcout
Without using imbue, I couldnt get non-english wstrings to print on mac. Need to check on linux also. Also avoid the uint8_t typecasting, given that wchar isnt 8bit
Configuration menu - View commit details
-
Copy full SHA for 3ad5cec - Browse repository at this point
Copy the full SHA 3ad5cecView commit details -
SimpCfg: C++ and strings is a mess even after decades
Seperate out the checks wrt different string types. Add a wstring_basic, which verifies that wstring iterator handles non english chars propery or atleast better.
Configuration menu - View commit details
-
Copy full SHA for 66d6fa6 - Browse repository at this point
Copy the full SHA 66d6fa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a618a4 - Browse repository at this point
Copy the full SHA 1a618a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7607dbc - Browse repository at this point
Copy the full SHA 7607dbcView commit details -
SimpCfg:CheckStrings: WString2String finally
The constructor method doesnt convert wstring to string, when it involves non-english chars which will encode to multibyte chars in utf8. even thou it does work for the already utf8 u8string. wcstombs doesnt seem to work for non english chars, when the locale is set to the default c, need to change to something like en_US.UTF-8, to allow it to do the conversion properly.
Configuration menu - View commit details
-
Copy full SHA for 2cda78f - Browse repository at this point
Copy the full SHA 2cda78fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23acf07 - Browse repository at this point
Copy the full SHA 23acf07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2325764 - Browse repository at this point
Copy the full SHA 2325764View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1156cc - Browse repository at this point
Copy the full SHA d1156ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for cae0fff - Browse repository at this point
Copy the full SHA cae0fffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 554b00f - Browse repository at this point
Copy the full SHA 554b00fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf111a8 - Browse repository at this point
Copy the full SHA bf111a8View commit details -
SimpCfg:Cleanup, updated notes, templated code
Update the notes to match the templated flow now and some of the nitty gritties involved. Update DumpHexString to be templated. Split check nonenglish flow wrt trim dumb and oversmart testing, so that things with work with one, but not the other can be differentiated in the flow.
Configuration menu - View commit details
-
Copy full SHA for 97ac443 - Browse repository at this point
Copy the full SHA 97ac443View commit details -
Configuration menu - View commit details
-
Copy full SHA for d030a26 - Browse repository at this point
Copy the full SHA d030a26View commit details -
SimpCfg: Fixed & ~Variable Length to Native & MultiNativeCharSize
So as to make the notes, more generic.
Configuration menu - View commit details
-
Copy full SHA for 5b8bf84 - Browse repository at this point
Copy the full SHA 5b8bf84View commit details -
SimpCfg: Templatize str_trim_single
Also use NativeCharSize and MultiNativeCharSize wording to make the note more generic
Configuration menu - View commit details
-
Copy full SHA for 32ba195 - Browse repository at this point
Copy the full SHA 32ba195View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33619a3 - Browse repository at this point
Copy the full SHA 33619a3View commit details -
SimpCfg:Fix/cleanup trim related test samples and flow
Use the commonality between Indian languages to show mixup issue with the simple minded trim_dump logic and how trim_oversmart could potentially avoid that. Given that I am using valid strings to show the pitfalls of fixed native char size driven logic, so no need to keep the dump and oversmart flows seperate, so merge into a common loop.
Configuration menu - View commit details
-
Copy full SHA for 3287fdb - Browse repository at this point
Copy the full SHA 3287fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f53c19b - Browse repository at this point
Copy the full SHA f53c19bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e5b38 - Browse repository at this point
Copy the full SHA 20e5b38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b14bca - Browse repository at this point
Copy the full SHA 2b14bcaView commit details -
ChatON:Update meta.json wrt command-r models
template info picked from tokenizer config's default entry, Verified that same is used in the existing hardcoded chat apply template flow.
Configuration menu - View commit details
-
Copy full SHA for 5380b1e - Browse repository at this point
Copy the full SHA 5380b1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6ecd93 - Browse repository at this point
Copy the full SHA c6ecd93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 623d0b6 - Browse repository at this point
Copy the full SHA 623d0b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19d3c88 - Browse repository at this point
Copy the full SHA 19d3c88View commit details -
SimpCfg:MultiPart keys wrt get_vector
With this and past few commits, now there is simple yet sufficient support to help move multi-level-hierarchy config files into the SimpCfg's simple physically 1-level, but if reqd logically multi level hierarchy flow. B4 this series of commits also one could have still achieved this, but there would have been bit more effort needed.
Configuration menu - View commit details
-
Copy full SHA for 344c068 - Browse repository at this point
Copy the full SHA 344c068View commit details -
Configuration menu - View commit details
-
Copy full SHA for 989c6c4 - Browse repository at this point
Copy the full SHA 989c6c4View commit details -
ChatON: initial go at OrionStar Ai chat model template
Got from its tokenizer config json. Also same found in existing hardcoded template in default chat apply template logic of llamacpp
Configuration menu - View commit details
-
Copy full SHA for 93115a9 - Browse repository at this point
Copy the full SHA 93115a9View commit details -
ChatON:chat template for OpenChat in meta.json initial go
The first model seen, based on templates added till now into meta json file, that needs a Global Begin. From tokenizer_config json file, it appears like even system role should have a appropriate prefix, unlike what is seen in hardcoded default chat apply template of llama.cpp and chat jinja template.
Configuration menu - View commit details
-
Copy full SHA for 0f8f2a1 - Browse repository at this point
Copy the full SHA 0f8f2a1View commit details -
ChatON:Initial go at vicuna chat template in meta.json
Have looked at tokenizer_config.json, jinja file and default hardcoded template in llama.cpp. This is also one of the models where a Global BoS is needed. NOTE: Have taken the liberty to also add a SYSTEM: prefix wrt system message, even thou default vicuna doesnt seem to need, but vicuna-orca seems to need, so that both models can be driven from same chat template config. I am assuming the system prefix should not create any problem even in default vicuna, however if it does create a problem one can duplicate the existing vicuna block in chaton_meta.json and make the system prefix empty in it.
Configuration menu - View commit details
-
Copy full SHA for b875b02 - Browse repository at this point
Copy the full SHA b875b02View commit details
Commits on May 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f6a86cd - Browse repository at this point
Copy the full SHA f6a86cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04b4a15 - Browse repository at this point
Copy the full SHA 04b4a15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c288d3 - Browse repository at this point
Copy the full SHA 7c288d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43a3a91 - Browse repository at this point
Copy the full SHA 43a3a91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0852f3b - Browse repository at this point
Copy the full SHA 0852f3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3a5654 - Browse repository at this point
Copy the full SHA b3a5654View commit details -
ChatON:Fix partsLengths to int32_t type, instead of int
so that the size of the elements is explicit and fixed, so that it is inturn in sync with the fixed int size specified wrt the c-api, even with any c compilers with different idea about int. avoid some ununsed vars, need to update compile flags later to enable corresponding warnings.
Configuration menu - View commit details
-
Copy full SHA for 76791ba - Browse repository at this point
Copy the full SHA 76791baView commit details
Commits on May 8, 2024
-
ChatON: Make c-api wrappers a bit robust incl some cross checks
If the tagged message will be of 0 length, ensure that the passed dest char* array, has null inserted appropriately. Check that user has passed a non-null pNumParts. Dont hard code int32_t size, pick using sizeof
Configuration menu - View commit details
-
Copy full SHA for 8dfa31b - Browse repository at this point
Copy the full SHA 8dfa31bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6da7d9 - Browse repository at this point
Copy the full SHA b6da7d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 868ab60 - Browse repository at this point
Copy the full SHA 868ab60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d81ffe - Browse repository at this point
Copy the full SHA 0d81ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a49697b - Browse repository at this point
Copy the full SHA a49697bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fe8231 - Browse repository at this point
Copy the full SHA 8fe8231View commit details
Commits on May 10, 2024
-
Merge branch 'master' into hkvc_chaton_v3
Have merged master branch has of 20240510IST12XY with chaton_v3 branch. As part of same had to update the flow in examples/main/main.cpp wrt conversion related commit in master branch and my chaton related commits in this branch.
Configuration menu - View commit details
-
Copy full SHA for abb406b - Browse repository at this point
Copy the full SHA abb406bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f9a0eb - Browse repository at this point
Copy the full SHA 1f9a0ebView commit details -
SimpCfg: Avoid iostream/cout and format for direct library use
It appears like std::format is not supported in older g++/lib still in wide use like current debian stable, so avoiding same wrt direct library use. Allow for empty VAARGS NOTE: However test program mode of the same uses cout and format
Configuration menu - View commit details
-
Copy full SHA for fe27902 - Browse repository at this point
Copy the full SHA fe27902View commit details -
SimpCfg: Allow for direct initialization lists based init
This should pave way for having a default chat templates dataset in the code, without needing to load it from a config file, if one doesnt want to. TODO: allow for loading config from json into simpcfg, so that a program which uses llama.cpp can decide, whether it is ok with what is already there in the internal dataset, or allow for loading template info at runtime using the simpcfg's simple text file or additionally include the json code to load template info at runtime from json file.
Configuration menu - View commit details
-
Copy full SHA for c0506f9 - Browse repository at this point
Copy the full SHA c0506f9View commit details
Commits on May 11, 2024
-
GroupKV: Duplicate SimpCfg to chop down into GroupKV
IE a minimal MapOfMapOfVariant, with some basic helpers. This can be the basis of a ChatTemplates object, as well as SimpCfg built on top of it.
Configuration menu - View commit details
-
Copy full SHA for 86b842b - Browse repository at this point
Copy the full SHA 86b842bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d764a9d - Browse repository at this point
Copy the full SHA d764a9dView commit details -
GroupKV:Simplify:P2: Rename tags, Make debug logs conditional
Rename all the log messages to have GKV and not SC. The log messages in get_vector made conditional to GKV_DEBUG, this was missed out earlier in simpcfg itself.
Configuration menu - View commit details
-
Copy full SHA for 7d7c59e - Browse repository at this point
Copy the full SHA 7d7c59eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0342124 - Browse repository at this point
Copy the full SHA 0342124View commit details -
GroupKV: Add int32_t to variant list, to simplify int use
So that no need to explicitly specify <int64_t> or LL wrt int literals, which dont need 64bit space by default. Which also means one shouldnt/cant mix up type of value stored and default type specified when getting.
Configuration menu - View commit details
-
Copy full SHA for 7f03dd0 - Browse repository at this point
Copy the full SHA 7f03dd0View commit details -
GroupKV:Make LDBUG macros conditional, avoid condition at usage site
Also change LWARN to LDBUG wrt previously GKV_DEBUG conditional code
Configuration menu - View commit details
-
Copy full SHA for fdefb39 - Browse repository at this point
Copy the full SHA fdefb39View commit details -
Configuration menu - View commit details
-
Copy full SHA for dde72df - Browse repository at this point
Copy the full SHA dde72dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for f294fdd - Browse repository at this point
Copy the full SHA f294fddView commit details -
Configuration menu - View commit details
-
Copy full SHA for e999934 - Browse repository at this point
Copy the full SHA e999934View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d4450d - Browse repository at this point
Copy the full SHA 9d4450dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 484c710 - Browse repository at this point
Copy the full SHA 484c710View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a9a6ce - Browse repository at this point
Copy the full SHA 4a9a6ceView commit details -
GroupKV: Get ready for use in llama.cpp ++
Avoid defining GKV_TEST_PRG, used for self testing, by default Add it to common library
Configuration menu - View commit details
-
Copy full SHA for d9959b7 - Browse repository at this point
Copy the full SHA d9959b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b944d04 - Browse repository at this point
Copy the full SHA b944d04View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9d9700 - Browse repository at this point
Copy the full SHA b9d9700View commit details -
ChatON: Unnecessarily indirect nlohmann json
code used for exploring/testing commited just for future reference
Configuration menu - View commit details
-
Copy full SHA for 2efc09f - Browse repository at this point
Copy the full SHA 2efc09fView commit details -
ChatON:LoadJSON: ChatTemplates - global/system/user/assistant
Manually iterate the json object items using begin-end explicitly, because the implicit iteration for loop related helpers for the used json lib gives only the values and not a key-value pair.
Configuration menu - View commit details
-
Copy full SHA for 444d2cc - Browse repository at this point
Copy the full SHA 444d2ccView commit details -
ChatON:LoadJSon:ChatTemplates: revPrompt, system-user flags
WIP:NOTE: Initial go converting from json driven flow to ChatTemplatesGroupKV related flow done. Needs to be tested. A optional helper added to load ChatTemplates from a specified json file. Need to add a compile time initialized MapOfMapOfVariants wrt the chat template details of models/standards already known to the program. So that one can use the llama.cpp and this new chat template logic, even without json dependency, if one doesnt want to.
Configuration menu - View commit details
-
Copy full SHA for 1574201 - Browse repository at this point
Copy the full SHA 1574201View commit details
Commits on May 12, 2024
-
ChatON:p1: meta json to hpp conversion - Initial skeleton
load the json file and put the template ids
Configuration menu - View commit details
-
Copy full SHA for 0c21a00 - Browse repository at this point
Copy the full SHA 0c21a00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 078e04d - Browse repository at this point
Copy the full SHA 078e04dView commit details -
ChatON:P3:meta json to hpp: Retain esc seqs and more kv pairs
Use repr to retain the escape sequences in the read string. And parallely skip the single quote around strings wrt repr. Bring in more k-v pairs wrt chaton_meta.json
Configuration menu - View commit details
-
Copy full SHA for 7b5fb0a - Browse repository at this point
Copy the full SHA 7b5fb0aView commit details -
ChatON:P4:meta json to hpp: Insert kv bool
Rename kv helpers to match their semantic. * whether working with string or bool value * whether two keys or a single key Add support for kv with bool value inturn add the kv boolean pairs used in the chaton_meta.json file Add the closing bracket
Configuration menu - View commit details
-
Copy full SHA for b5b274a - Browse repository at this point
Copy the full SHA b5b274aView commit details -
ChatON:P5:meta json to hpp: Add required c++ inc and global var
Also comment to indicate that the hpp file is auto converted from the chaton_meta.json file
Configuration menu - View commit details
-
Copy full SHA for b8590e3 - Browse repository at this point
Copy the full SHA b8590e3View commit details -
ChatON:Include auto converted ChatONMeta.hpp chat template data
This should allow for using this generic chat templating code flow along with the included chat template data, without needing to load any json file at runtime. However If user wants to change the already included chat template data, or add new chat template standard/model related data, one can explicitly load json file. TODO: Need to cross check this flow once, but logically should work
Configuration menu - View commit details
-
Copy full SHA for a3285e8 - Browse repository at this point
Copy the full SHA a3285e8View commit details -
Main: Load json meta file only if specified
This should be ok, given that there is a version of the chat tmpl meta data already included with the library. So only if user wants to change the chat template info wrt a existing model/template-standard or add a new one, then there is need to pass a json file with info for that model/standard.
Configuration menu - View commit details
-
Copy full SHA for 4232ec1 - Browse repository at this point
Copy the full SHA 4232ec1View commit details -
ChatON+MetaHpp: Had forgotten to conv reverse-prompt
Also has dump was using get_value calls with fallback to default, so it wasnt identifying the missed field. Have fixed both of those. Also reconverted meta json file. Misc: interesting avesham and aattam
Configuration menu - View commit details
-
Copy full SHA for f94fed9 - Browse repository at this point
Copy the full SHA f94fed9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eae05a - Browse repository at this point
Copy the full SHA 4eae05aView commit details -
ChatON:Switch to json_get_str to help identify missing keys better
The json library generates less informative exception message, which doesnt help one identify which key is missing, so switch to the new json_get_str helper added in the last commit. It generates more informative exception message.
Configuration menu - View commit details
-
Copy full SHA for 0249c07 - Browse repository at this point
Copy the full SHA 0249c07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 470b888 - Browse repository at this point
Copy the full SHA 470b888View commit details -
ChatON: use templated json_get when loading bool key-value fields
With this now even loading chaton_meta.json file will generate more informative exception, so that user can know which field is missing, if any.
Configuration menu - View commit details
-
Copy full SHA for db2ffab - Browse repository at this point
Copy the full SHA db2ffabView commit details -
SimpCFG: COnvert to GroupKV extended version
Reuse the code already moved into GroupKV Add explicit get and set wrt int32_t, which was added after move to GroupKV wrt basic MapOfMapOfVariant logic.
Configuration menu - View commit details
-
Copy full SHA for 6048218 - Browse repository at this point
Copy the full SHA 6048218View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2dd126 - Browse repository at this point
Copy the full SHA f2dd126View commit details -
SimpCfg: Move testing code into its own file in tests
Also set functions to inline or static as appropriate
Configuration menu - View commit details
-
Copy full SHA for 3d33d62 - Browse repository at this point
Copy the full SHA 3d33d62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9249649 - Browse repository at this point
Copy the full SHA 9249649View commit details -
Configuration menu - View commit details
-
Copy full SHA for 857570f - Browse repository at this point
Copy the full SHA 857570fView commit details -
SimpCfg: Remove now unused SC_DEBUG, rather GroupKV uses equiv
The code which was using SC_DEBUG moved to GroupKV and inturn GKV_DEBUG
Configuration menu - View commit details
-
Copy full SHA for d5b0bfb - Browse repository at this point
Copy the full SHA d5b0bfbView commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eb7554c - Browse repository at this point
Copy the full SHA eb7554cView commit details -
ChatON: Make json_get efficient and flexible wrt its calling
Also explicitly indicate that we are looking at a chain of keys
Configuration menu - View commit details
-
Copy full SHA for 184ac32 - Browse repository at this point
Copy the full SHA 184ac32View commit details -
ChatON:ChatTemplates: TmplExists, TmplGetKey, TmplRoleGetKeys
ChatTemplate directly supports these now, as well as the existing global instance based corresponding helpers depend on same.
Configuration menu - View commit details
-
Copy full SHA for 0cfe990 - Browse repository at this point
Copy the full SHA 0cfe990View commit details -
Configuration menu - View commit details
-
Copy full SHA for efbb87d - Browse repository at this point
Copy the full SHA efbb87dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe0c9ce - Browse repository at this point
Copy the full SHA fe0c9ceView commit details -
ChatON:WIP:chaton_tmpl_apply_single build on multi msg tagging
To avoid having to duplicate any hardcoding in future, wrt any new model/chat-template-standard, at multiple locations, remove the single message templating code with a wrapper which does the same but using the multi-msg templating helper.
Configuration menu - View commit details
-
Copy full SHA for 8165bd4 - Browse repository at this point
Copy the full SHA 8165bd4View commit details -
ChatON+:Multi4Single: applyGlobalIfAny flag wrt templating api
Given that now the multi chat templating logic itself is used to apply chat templating/tagging to a single chat message, so give flexibility of deciding whether global tags if any should be applied or not wrt the core tagging logic. examples/main inturn updated to not apply global tags if any wrt the system message. Also the user messages already dont apply global tags if any, as its currently implemented to build on the existing in-prefix/suffix and anitprompt flow.
Configuration menu - View commit details
-
Copy full SHA for 3fcaf19 - Browse repository at this point
Copy the full SHA 3fcaf19View commit details -
ChatON:Control SystemMsgSuffix+End tags only wrt 1st system msg
Make it similar to user-begin+prefix control. ie only wrt 1st msg of respective type.
Configuration menu - View commit details
-
Copy full SHA for 6e13c0c - Browse repository at this point
Copy the full SHA 6e13c0cView commit details -
ChatON:Optional control of MsgCntBasedTagging
Use same to bypass any msg count based tagging behaviour for the single message tagging through its helper wrapper.
Configuration menu - View commit details
-
Copy full SHA for 600653d - Browse repository at this point
Copy the full SHA 600653dView commit details -
ChatON: Move core templating/tagging code into ChatTemplates class
However still retain the wrappers, which work with a predefined global instance of ChatTemplates.
Configuration menu - View commit details
-
Copy full SHA for 4dfd10a - Browse repository at this point
Copy the full SHA 4dfd10aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28ddd2c - Browse repository at this point
Copy the full SHA 28ddd2cView commit details
Commits on May 14, 2024
-
ChatON+: ValidateDump dumps All, wrapped in optional LDBUG_LN
GroupKV dump adds needed ":" seperator on its own, so calling functions can just pass the tag string they want in the log without worrying about any demarkation.
Configuration menu - View commit details
-
Copy full SHA for bb9ce52 - Browse repository at this point
Copy the full SHA bb9ce52View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd5c39e - Browse repository at this point
Copy the full SHA bd5c39eView commit details -
ChatON+:RenameTo chaton_meta_load_json to match semantic
Also add simple note wrt itself and its helper.
Configuration menu - View commit details
-
Copy full SHA for f8c0b47 - Browse repository at this point
Copy the full SHA f8c0b47View commit details -
ChatON: Update Notes to match the updated semantics and flows
The initial version was rooted around a json object, while the new version is rooted around a MapOfMapOfVariant (GroupKV), which could be preloaded with chat templates info at compile time itself and used as is. Or optionally one could allow the configurable template data to be extended/updated at runtime from a text(/SimpCfg)/json file.
Configuration menu - View commit details
-
Copy full SHA for 8975de9 - Browse repository at this point
Copy the full SHA 8975de9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14c28e7 - Browse repository at this point
Copy the full SHA 14c28e7View commit details -
ChatON: Move loading from json file into its own file
Any program which wants to use json file to update/extend the chaton's configurable template data, can include this new file chaton_json.hpp, to get the reqd functionality. Update chaton_meta_ok, _chaton_meta_validate_dump and chaton_meta_load_json to either work with a passed ChatTemplates instance, or fallback to the compiled-in global instance of same.
Configuration menu - View commit details
-
Copy full SHA for a3d641b - Browse repository at this point
Copy the full SHA a3d641bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a15989 - Browse repository at this point
Copy the full SHA 4a15989View commit details
Commits on May 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dc03a71 - Browse repository at this point
Copy the full SHA dc03a71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f5add6 - Browse repository at this point
Copy the full SHA 4f5add6View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdd91f5 - Browse repository at this point
Copy the full SHA cdd91f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb3fe48 - Browse repository at this point
Copy the full SHA bb3fe48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 397249d - Browse repository at this point
Copy the full SHA 397249dView commit details -
Merge branch 'master' into hkvc_chaton_v3
Merge upstream as of 20240515IST11XY
Configuration menu - View commit details
-
Copy full SHA for 7a3ac0c - Browse repository at this point
Copy the full SHA 7a3ac0cView commit details
Commits on May 16, 2024
-
ChatON+: Cleanup integration with CMake
Rename chaton-meta hpp to cpp and include this cpp file which brings in the compile time built-in global chaton configurable template data into the common library, and avoid the nop hpp file references. Update chaton.hpp to not include the meta-cpp, instead just make a reference to the global ChatTemplates instance, so that the hpp can be used as a header file proper. Avoid pragma once in the chaton-meta.cpp, including the script, which helps create it.
Configuration menu - View commit details
-
Copy full SHA for 239b5be - Browse repository at this point
Copy the full SHA 239b5beView commit details -
C++17: Use and limit C++17 to common library for now
C++17 provides a good enough variant as a standard feature, and chaton uses the same at its core, instead of rolling out its own struct of union based variant. And given that currently chaton is part of common library and not the base llama library, so limit the use of c++17 to common library. Initially while experimenting, had set the flag for full llama, limitting it for now. Also by now most embedded targets should be potentially having c++ compilers and libraries with support for c++17 features. So chances are it is a ok enough path to take.
Configuration menu - View commit details
-
Copy full SHA for 1a0df95 - Browse repository at this point
Copy the full SHA 1a0df95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cbfd40 - Browse repository at this point
Copy the full SHA 0cbfd40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 999bd39 - Browse repository at this point
Copy the full SHA 999bd39View commit details