Skip to content

crash setting the llm_sampler_init_xxx parameters #18

@danielebriggi

Description

@danielebriggi
            SELECT llm_sampler_init_temp(1.0);
            SELECT llm_sampler_init_top_k(64);
            SELECT llm_sampler_init_top_p(0.95, 1);
            SELECT llm_sampler_init_min_p(0.0, 1);
            SELECT llm_sampler_init_dist(-1);
            SELECT llm_sampler_init_penalties(1024, 1.1, 0.0, 0.0);

If you try to load one after the other, you get a combination of case where the connection crashes. I think that this is related to the dist seed number (llm_sampler_init_dist();). When not called after these llm_sampler_init_XX connection crashes.

Play with llm_sampler_init_xxx:

SELECT llm_model_load('/home/sqlitecloud/repositories/sqlite-rag/models/unsloth/gemma-3-270m-it-GGUF/gemma-3-270m-it-Q8_0.gguf');

SELECT llm_context_create('context_size=32000');
SELECT llm_chat_create();

SELECT llm_sampler_init_temp(1.0);
SELECT llm_sampler_init_top_k(64);
SELECT llm_sampler_init_top_p(0.95, 1);
SELECT llm_sampler_init_min_p(0.0, 1);
-- SELECT llm_sampler_init_dist(-1);
SELECT llm_sampler_init_penalties(1024, 1.1, 0.0, 0.0);

SELECT llm_chat_respond('my question is..');

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions