Skip to content

Releases: kambo-1st/llama-cpp-php

Add support for embeddings

24 Apr 17:20
Compare
Choose a tag to compare
Pre-release

Add support for embeddings

0.1.0-alpha.2: ci(run-tests.yml): add GitHub Actions workflow for running tests

22 Apr 07:09
Compare
Choose a tag to compare
refactor(Context.php): change Context class from final to non-final
feat(Context.php): add optional LLamaCPPFFI parameter to createWithParameter method
fix(TokenGeneratedEvent.php): fix namespace typo in TokenGeneratedEvent class

refactor(LLamaCPP.php): add support for multi-threaded token generation and evaluation

refactor(LLamaCPPFFI.php): remove comments for generated wrapper methods
feat(LLamaCPPFFI.php): add llama_init_from_file method to allocate memory for the model
feat(LLamaCPPFFI.php): add llama_tokenize method to convert text into tokens
feat(LLamaCPPFFI.php): add llama_eval method to run llama inference and obtain logits and probabilities
feat(LLamaCPPFFI.php): add llama_sample_top_p_top_k method to sample top-k and top-p from the logits

chore(LLamaCPPFFI.php): add docblocks to llama_token_to_str and llama_free methods

refactor(Locator.php): import class_exists function
feat(GenerationParameters.php): add noOfThreads parameter to GenerationParameters class
feat(ModelParameters.php): add parameter description to ModelParameters class

test(ContextTest.php): add unit tests for Context class methods

test(LLamaCPPTest.php): add tests for LLamaCPP class generate and generateAll methods

feat(GenerationParametersTest.php): add tests for GenerationParameters class constructor and getters

test(ModelParametersTest.php): add test for ModelParameters constructor and getters

POC

13 Apr 20:32
Compare
Choose a tag to compare
POC Pre-release
Pre-release

POC