Views
No views yet
rkllm.build() command.gemma-3-4b-novision-rk3588-1.2.1 model in that rkllm.build() was run with param dataset=quant_dataset.json instead of param dataset=None in the other model.quant_dataset.json file was generated with Rockchip's generate_data_quant.py script with the following arguments:rkllm parametersrkllm library paremeters:n_keep = -1top_k = 64top_p = 0.95temperature = 0.7repeat_penalty = 1.0frequency_penalty = 1.0presence_penalty = 0.0mirostat = 0mirostat_tau = 5.0mirostat_eta = 0.1# System prompt taken from https://docs.unsloth.ai/basics/gemma-3-how-to-run-and-fine-tune#official-recommended-inference-settings
system_prompt = "<bos><start_of_turn>user\nHello!<end_of_turn>\n<start_of_turn>model\nHey there!<end_of_turn>\n<start_of_turn>user\nWhat is 1+1?<end_of_turn>\n<start_of_turn>model\n"
prompt_prefix = "<start_of_turn>user\n"
prompt_postfix = "<end_of_turn>\n<start_of_turn>model\n"
rkllm_lib.rkllm_set_chat_template(
llm_handle,
ctypes.c_char_p(system_prompt.encode('utf-8')),
ctypes.c_char_p(prompt_prefix.encode('utf-8')),
ctypes.c_char_p(prompt_postfix.encode('utf-8')))