Skip to content
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

Draft
wants to merge 219 commits into
base: master
Choose a base branch
from

Commits on May 6, 2024

  1. ChatOn: Capture the idea

    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    2146a25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35f2519 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dc56be9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    093abc2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1374a64 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    050d329 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cdbe4f0 View commit details
    Browse the repository at this point in the history
  8. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    d87d275 View commit details
    Browse the repository at this point in the history
  9. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    c4cf0e9 View commit details
    Browse the repository at this point in the history
  10. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    f03dd24 View commit details
    Browse the repository at this point in the history
  11. ChatOn: Add SystemUser-1st-User-Has-Prefix flag support

    Llama2 seems to need it, so chaton-meta-json sample file updated
    to use same.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    221ccd6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    11b47fb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b105564 View commit details
    Browse the repository at this point in the history
  14. ChatOn:MetaOk: Allows template-id based cross check

    For a given template-id, cross check, all needed entries are there
    in the json.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    e8c24c0 View commit details
    Browse the repository at this point in the history
  15. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    efb758b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    42f6b45 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3f9dfc2 View commit details
    Browse the repository at this point in the history
  18. ChatON: Keep compiler happy

    Order the functions so that no need for seperate prototypes
    
    Also use kv_bool wrt boolean entries.
    
    Convert string to c char *
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    217544e View commit details
    Browse the repository at this point in the history
  19. ChatON: Cleanup logging

    Avoid showing on screen the debug messages.
    
    meta-dump can either show on screen or not, based on how LOGXLN
    is defined.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    57bd772 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    2a8028f View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f4b5406 View commit details
    Browse the repository at this point in the history
  22. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    84367b9 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    bdd279c View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0f713d4 View commit details
    Browse the repository at this point in the history
  25. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    d70fca7 View commit details
    Browse the repository at this point in the history
  26. ChatOn: Wrap getting begin in try-catch,

    so that even if a role doesnt contain begin, the logic will work
    fine.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    724ff38 View commit details
    Browse the repository at this point in the history
  27. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    f1f39c5 View commit details
    Browse the repository at this point in the history
  28. ChatON+:Update tmpl_role_kv to retrieve wrt multiple keys

    Use the same for user role's begin and prefix entries.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3064a36 View commit details
    Browse the repository at this point in the history
  29. ChatON:ChatParts class initial go

    Helps keep user prompt and chat-hs-template tag parts seperate,
    but in sequence
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    9de1d60 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    d189972 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6b23f15 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    92e780f View commit details
    Browse the repository at this point in the history
  33. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    825a78a View commit details
    Browse the repository at this point in the history
  34. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3f09eb5 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    adab577 View commit details
    Browse the repository at this point in the history
  36. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    7ba0144 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    5d76f08 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    f8ae21c View commit details
    Browse the repository at this point in the history
  39. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    344857b View commit details
    Browse the repository at this point in the history
  40. ChatON:MetaOK->MetaDump: Alert if user->end is needed or not

    Because user messages dont normally need a EoS token.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    6a0214c View commit details
    Browse the repository at this point in the history
  41. ChatON: Keep compiler happy

    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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    0cd7c62 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    bf1167b View commit details
    Browse the repository at this point in the history
  43. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    b9e3130 View commit details
    Browse the repository at this point in the history
  44. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    13857f2 View commit details
    Browse the repository at this point in the history
  45. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    01c8db7 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    ea3a0f1 View commit details
    Browse the repository at this point in the history
  47. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    e62699f View commit details
    Browse the repository at this point in the history
  48. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    308d3bf View commit details
    Browse the repository at this point in the history
  49. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a630564 View commit details
    Browse the repository at this point in the history
  50. ChatON: switch to ordered_json from json library

    to be in sync with the json namespace in server.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    58e1ff1 View commit details
    Browse the repository at this point in the history
  51. ChatON:Common:Update the cmdline argument name used

    Had forgotten to update it before
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    fee887f View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    d61b071 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    a4b3285 View commit details
    Browse the repository at this point in the history
  54. ChatON:Gemma: update for detailed meta json

    Also as part of same add user role entry for system role also.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    403a6c4 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    1b2e921 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    006a398 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    18cd125 View commit details
    Browse the repository at this point in the history
  58. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a64dcd7 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    368fbf1 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    ad5e521 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    55e3d63 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    cad50c5 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    32e672c View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    a724fd9 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    c4e829d View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    ff5f688 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    889a45f View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    af9a0a2 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    ce75d43 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    f4687fa View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    aea6850 View commit details
    Browse the repository at this point in the history
  72. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    f728dbd View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    2cbb00c View commit details
    Browse the repository at this point in the history
  74. SimpCfg:Make str_trim flexible, use to trim , wrt value

    Now one can pass the list/string of chars to trim at either end.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    28ae0c5 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    1ecca5a View commit details
    Browse the repository at this point in the history
  76. SimpCfg: Rename member functions to avoid sc_ prefix

    now that logic has been converted into a class, no need for this
    prefix
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    6de8a14 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    d514c81 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    951fbc3 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    9940bd8 View commit details
    Browse the repository at this point in the history
  80. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    82348e2 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    ca5a04d View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    0a534e6 View commit details
    Browse the repository at this point in the history
  83. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    d0b3ebf View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    fb9a7dc View commit details
    Browse the repository at this point in the history
  85. SimpCfg:Implement set_int64 and set_double

    Also update the sample simpcfg file, to test for int and float
    values.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    4181164 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    a6648b0 View commit details
    Browse the repository at this point in the history
  87. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    000245b View commit details
    Browse the repository at this point in the history
  88. SimpCfg: get_int64 logic

    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    8ad2c17 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    44c0530 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    a108000 View commit details
    Browse the repository at this point in the history
  91. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a095713 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    7302b3a View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    ee1a62c View commit details
    Browse the repository at this point in the history
  94. SimpCfg:WIP:Variant TypeDef, to_str and std::get

    Cleanup the use of the variant
    
    Initialize and << op stringstream seperately.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    1dc7fd0 View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    f05f71b View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    6b475e4 View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    5aa1072 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    ef5a2cf View commit details
    Browse the repository at this point in the history
  99. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    eb56517 View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    0e0d7da View commit details
    Browse the repository at this point in the history
  101. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    08b9711 View commit details
    Browse the repository at this point in the history
  102. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    8fdc805 View commit details
    Browse the repository at this point in the history
  103. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    561f509 View commit details
    Browse the repository at this point in the history
  104. SimpCfg:GetArray flesh out, helpers to convert to string

    Good: Forgotten love, All the light we cant see, laapataa ladies
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    1e1f54e View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    86e776c View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    56f19c7 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    713520c View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    691d0d4 View commit details
    Browse the repository at this point in the history
  109. SimpCfg:CheckString: organise and probe - p3 wstring

    wcouts' involving 2nd wstring with non english char in it not
    showing up?
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a448fec View commit details
    Browse the repository at this point in the history
  110. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3ad5cec View commit details
    Browse the repository at this point in the history
  111. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    66d6fa6 View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    1a618a4 View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    7607dbc View commit details
    Browse the repository at this point in the history
  114. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    2cda78f View commit details
    Browse the repository at this point in the history
  115. Configuration menu
    Copy the full SHA
    23acf07 View commit details
    Browse the repository at this point in the history
  116. Configuration menu
    Copy the full SHA
    2325764 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    d1156cc View commit details
    Browse the repository at this point in the history
  118. Configuration menu
    Copy the full SHA
    cae0fff View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    554b00f View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    bf111a8 View commit details
    Browse the repository at this point in the history
  121. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    97ac443 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    d030a26 View commit details
    Browse the repository at this point in the history
  123. SimpCfg: Fixed & ~Variable Length to Native & MultiNativeCharSize

    So as to make the notes, more generic.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    5b8bf84 View commit details
    Browse the repository at this point in the history
  124. SimpCfg: Templatize str_trim_single

    Also use NativeCharSize and MultiNativeCharSize wording to make
    the note more generic
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    32ba195 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    33619a3 View commit details
    Browse the repository at this point in the history
  126. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3287fdb View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    f53c19b View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    20e5b38 View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    2b14bca View commit details
    Browse the repository at this point in the history
  130. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    5380b1e View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    c6ecd93 View commit details
    Browse the repository at this point in the history
  132. Configuration menu
    Copy the full SHA
    623d0b6 View commit details
    Browse the repository at this point in the history
  133. Configuration menu
    Copy the full SHA
    19d3c88 View commit details
    Browse the repository at this point in the history
  134. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    344c068 View commit details
    Browse the repository at this point in the history
  135. Configuration menu
    Copy the full SHA
    989c6c4 View commit details
    Browse the repository at this point in the history
  136. 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
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    93115a9 View commit details
    Browse the repository at this point in the history
  137. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    0f8f2a1 View commit details
    Browse the repository at this point in the history
  138. 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.
    hanishkvc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    b875b02 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    f6a86cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04b4a15 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c288d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    43a3a91 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0852f3b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b3a5654 View commit details
    Browse the repository at this point in the history
  7. 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.
    hanishkvc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    76791ba View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. 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
    hanishkvc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8dfa31b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6da7d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    868ab60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0d81ffe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a49697b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8fe8231 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. 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.
    hanishkvc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    abb406b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f9a0eb View commit details
    Browse the repository at this point in the history
  3. 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
    hanishkvc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    fe27902 View commit details
    Browse the repository at this point in the history
  4. 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.
    hanishkvc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    c0506f9 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. 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.
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    86b842b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d764a9d View commit details
    Browse the repository at this point in the history
  3. 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.
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    7d7c59e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0342124 View commit details
    Browse the repository at this point in the history
  5. 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.
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    7f03dd0 View commit details
    Browse the repository at this point in the history
  6. GroupKV:Make LDBUG macros conditional, avoid condition at usage site

    Also change LWARN to LDBUG wrt previously GKV_DEBUG conditional
    code
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    fdefb39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dde72df View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f294fdd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e999934 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9d4450d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    484c710 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4a9a6ce View commit details
    Browse the repository at this point in the history
  13. GroupKV: Get ready for use in llama.cpp ++

    Avoid defining GKV_TEST_PRG, used for self testing, by default
    
    Add it to common library
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    d9959b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b944d04 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b9d9700 View commit details
    Browse the repository at this point in the history
  16. ChatON: Unnecessarily indirect nlohmann json

    code used for exploring/testing commited just for future reference
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    2efc09f View commit details
    Browse the repository at this point in the history
  17. 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.
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    444d2cc View commit details
    Browse the repository at this point in the history
  18. 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.
    hanishkvc committed May 11, 2024
    Configuration menu
    Copy the full SHA
    1574201 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. ChatON:p1: meta json to hpp conversion - Initial skeleton

    load the json file and put the template ids
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    0c21a00 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    078e04d View commit details
    Browse the repository at this point in the history
  3. 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
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    7b5fb0a View commit details
    Browse the repository at this point in the history
  4. 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
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    b5b274a View commit details
    Browse the repository at this point in the history
  5. 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
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    b8590e3 View commit details
    Browse the repository at this point in the history
  6. 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
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    a3285e8 View commit details
    Browse the repository at this point in the history
  7. 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.
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    4232ec1 View commit details
    Browse the repository at this point in the history
  8. 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
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    f94fed9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4eae05a View commit details
    Browse the repository at this point in the history
  10. 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.
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    0249c07 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    470b888 View commit details
    Browse the repository at this point in the history
  12. 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.
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    db2ffab View commit details
    Browse the repository at this point in the history
  13. 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.
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    6048218 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f2dd126 View commit details
    Browse the repository at this point in the history
  15. SimpCfg: Move testing code into its own file in tests

    Also set functions to inline or static as appropriate
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    3d33d62 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9249649 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    857570f View commit details
    Browse the repository at this point in the history
  18. SimpCfg: Remove now unused SC_DEBUG, rather GroupKV uses equiv

    The code which was using SC_DEBUG moved to GroupKV and inturn
    GKV_DEBUG
    hanishkvc committed May 12, 2024
    Configuration menu
    Copy the full SHA
    d5b0bfb View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    eb7554c View commit details
    Browse the repository at this point in the history
  2. ChatON: Make json_get efficient and flexible wrt its calling

    Also explicitly indicate that we are looking at a chain of keys
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    184ac32 View commit details
    Browse the repository at this point in the history
  3. ChatON:ChatTemplates: TmplExists, TmplGetKey, TmplRoleGetKeys

    ChatTemplate directly supports these now, as well as the existing
    global instance based corresponding helpers depend on same.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    0cfe990 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    efbb87d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe0c9ce View commit details
    Browse the repository at this point in the history
  6. 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.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    8165bd4 View commit details
    Browse the repository at this point in the history
  7. 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.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    3fcaf19 View commit details
    Browse the repository at this point in the history
  8. 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.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    6e13c0c View commit details
    Browse the repository at this point in the history
  9. ChatON:Optional control of MsgCntBasedTagging

    Use same to bypass any msg count based tagging behaviour for the
    single message tagging through its helper wrapper.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    600653d View commit details
    Browse the repository at this point in the history
  10. ChatON: Move core templating/tagging code into ChatTemplates class

    However still retain the wrappers, which work with a predefined
    global instance of ChatTemplates.
    hanishkvc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    4dfd10a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    28ddd2c View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. 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.
    hanishkvc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    bb9ce52 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd5c39e View commit details
    Browse the repository at this point in the history
  3. ChatON+:RenameTo chaton_meta_load_json to match semantic

    Also add simple note wrt itself and its helper.
    hanishkvc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    f8c0b47 View commit details
    Browse the repository at this point in the history
  4. 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.
    hanishkvc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    8975de9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    14c28e7 View commit details
    Browse the repository at this point in the history
  6. 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.
    hanishkvc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    a3d641b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4a15989 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    dc03a71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f5add6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cdd91f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bb3fe48 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    397249d View commit details
    Browse the repository at this point in the history
  6. Merge branch 'master' into hkvc_chaton_v3

    Merge upstream as of 20240515IST11XY
    hanishkvc committed May 15, 2024
    Configuration menu
    Copy the full SHA
    7a3ac0c View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. 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.
    hanishkvc committed May 16, 2024
    Configuration menu
    Copy the full SHA
    239b5be View commit details
    Browse the repository at this point in the history
  2. 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.
    hanishkvc committed May 16, 2024
    Configuration menu
    Copy the full SHA
    1a0df95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0cbfd40 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    999bd39 View commit details
    Browse the repository at this point in the history