Skip to content

changelog : libllama API #9289

Open
Open
@ggerganov

Description

Overview

This is a list of changes to the public interface of the llama library. Collaborators are encouraged to edit this post in order to reflect important changes to the API that end up merged into the master branch.

If you are building a 3rd party project that relies on libllama, it is recommended to follow this issue and check it before upgrading to new versions.

See also:

Recent API changes (most recent at the top)

version PR desc
b4599 #9639 Added llama_sampler_init_grammar_lazy to support lazy grammars w/ trigger words & tokens
b4524 #11016 Add name parameter to llama_model_chat_template (uses default template if NULL)
b4501 #11262 Remove rpc_servers from llama_model and llama_model_params
b4464 #11110 Add llama_vocab and rename various structs and calls
b4424 #11063 Update llama_model API naming
b4357 #10784 Remove llama_model_get_tensor()
b4337 #10803 Change llama_sampler_init_penalties()
b4282 #10446 Removed support for Q4_0_N_M model files in favor of automatic repacking of Q4_0
b4167 #10497 Add devices to llama_model_params
b3948 #9897 Deprecate softmax sampler and update dist sampler`
b3988 #10071 Remove Tail-Free sampling
b3943 #9745 Removed all_pos_0, all_pos_1, all_seq_id from llama_batch
b3908 #9798 Update FIM-related API
b3841 #9510 Add LLAMA_POOLING_TYPE_RANK
b3774 #9512 Add llama_n_head()
b3750 #9355 Add llama_perf API + param to disable internal profiling
b3749 #9445 Add llama_sampler_chain_remove()
b3681 #9294 Major changes to the sampling API (see PR for more info)
b3651 #8980 Add LLAMA_VOCAB_TYPE_RWKV enum value
b3644 #8672 Add llama_threadpool API + change uint32_t -> int32_t
b3614 #8526 Add llama_model_is_recurrent

For older changes, use:

git log --oneline -p b3614 -- include/llama.h

(For collaborators) To link between PR number vs Build number:

git log --oneline | tail -r | nl

Upcoming API changes

  • TBD

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions