Lines Matching +full:k +full:- +full:lite
7 $controller->register_hook('TPL_ACT_RENDER', 'BEFORE', $this, 'handle_edit_page');
11 if ($event->data !== 'edit') return;
17 echo '<div id="llm-plugin-container" style="margin-bottom: 10px;">';
18 …-wizard-output" style="display: none; margin-top: 10px; max-height: 200px; overflow-y: auto; borde…
19 echo '<div id="llm-output-container"></div>';
20 echo '<div style="margin-top: 5px;">';
21 … echo '<button id="llm-clear-output" style="margin: 5px;" title="Clear all results">️</button>';
22 …echo '<button id="llm-copy-all" style="margin: 5px;" title="Copy all visible text to clipboard">…
23 …echo '<button id="llm-toggle-buttons" style="margin: 5px;" title="Toggle visibility of line button…
24 …echo '<button id="llm-paste-all" style="margin: 5px;" title="Paste all visible lines to main texta…
27 echo '<div id="llm-status" style="color: #555;"></div>';
28 echo '<select id="llm-model-select" style="margin-right: 10px;">';
30 …ps://huggingface.co/bartowski/Reasoning-0.5b-GGUF/resolve/main/Reasoning-0.5b-Q6_K.gguf|GGUF_CPU">…
31 …"https://huggingface.co/Qwen/Qwen2-0.5B-Instruct-GGUF/resolve/main/qwen2-0_5b-instruct-q4_0.gguf|G…
32 …e.co/rahuldshetty/llm.js/resolve/main/TinyMistral-248M-SFT-v4.Q8_0.gguf|GGUF_CPU">TinyMistral-248M…
33 …main/llama2_xs_460m_experimental_evol_instruct.q4_k_m.gguf|GGUF_CPU">LLaMa Lite (289 MB)</option>';
34 …value="https://huggingface.co/rahuldshetty/llm.js/resolve/main/tiny-llama-miniguanaco-1.5t.q2_k.gg…
35 …gface.co/afrideva/TinyMistral-248M-Alpaca-GGUF/resolve/main/tinymistral-248m-alpaca.q4_k_m.gguf|GG…
36 …co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/resolve/main/DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf…
37 …s://huggingface.co/bartowski/Reasoning-0.5b-GGUF/resolve/main/Reasoning-0.5b-Q4_K_M.gguf|GGUF_CPU"…
39 …gingface.co/QuantFactory/Phi-3-mini-4k-instruct-GGUF/resolve/main/Phi-3-mini-4k-instruct.Q4_K_M.gg…
40 …ce.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/resolve/main/Meta-Llama-3.1-8B-Instruct-Q4_K_M.ggu…
41 …https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/resolve/main/gemma-2-2b-it-Q4_K_M.gguf|GGUF_CP…
42 …ce.co/bartowski/Mixtral-8x7B-Instruct-v0.1-GGUF/resolve/main/Mixtral-8x7B-Instruct-v0.1-Q2_K.gguf|…
45 …'<input type="text" id="llm-custom-url" placeholder="Enter Hugging Face GGUF URL" style="display: …
46 echo '<progress id="llm-progress" hidden style="width: 100%;"></progress>';
47 echo '<div id="llm-options" style="display: none; margin: 5px 0;">';
48 echo '<div style="display: flex; align-items: center; margin-bottom: 5px;">';
49 …echo '<textarea id="llm-prompt" placeholder="Enter your prompt here..." style="width: 100%; height…
50 … echo '<button id="llm-send-prompt" style="height: 50px;" title="Send prompt to AI">✈️</button>';
52 …echo '<button id="llm-toggle-advanced" style="margin-bottom: 5px;">Show Advanced Options</button>';
53 echo '<div id="llm-advanced-options" style="display: none;">';
54 echo '<div style="display: flex; flex-wrap: wrap; gap: 10px;">';
55 …echo '<label>Top-K (1-100): <span id="topk-value">1</span> <input type="range" id="llm-topk" min="…
56 …echo '<label>Temperature (0-2): <span id="temp-value">1</span> <input type="range" id="llm-tempera…
57 …echo '<label>Max Tokens (1-500): <span id="maxtoken-value">50</span> <input type="range" id="llm-m…
58 …echo '<label>Top-P (0-1): <span id="topp-value">0.9</span> <input type="range" id="llm-topp" min="…
59 …echo '<label>Context Size (1-2048): <span id="context-value">512</span> <input type="range" id="ll…
61 …ho '<textarea id="llm-grammar" placeholder="Optional GBNF grammar (e.g., root ::= [a-z]+)" style="…
62 … '<textarea id="llm-prompt-template" placeholder="Prompt template (use ${prompt} for input)" style…
64 …echo '<button id="llm-summarizer" style="margin: 5px;" title="Summarize selected or all text"></…
65 …echo '<button id="llm-proofreader" style="margin: 5px;" title="Proofread selected or all text">✏️<…
66 …echo '<button id="llm-translator" style="margin: 5px;" title="Translate selected or all text"></…
67 echo '<select id="llm-language" style="display: none; margin: 5px;">';
70 echo '<option value="zh-TW">Traditional Chinese</option>';
71 echo '<option value="zh-CN">Simplified Chinese</option>';
77 echo '<select id="llm-output-format" style="margin: 5px;">';
91 const modelSelect = document.getElementById('llm-model-select');
92 const customUrl = document.getElementById('llm-custom-url');
93 const promptTextarea = document.getElementById('llm-prompt');
94 const sendPromptButton = document.getElementById('llm-send-prompt');
95 const progress = document.getElementById('llm-progress');
96 const optionsDiv = document.getElementById('llm-options');
97 const advancedOptionsDiv = document.getElementById('llm-advanced-options');
98 const toggleAdvancedButton = document.getElementById('llm-toggle-advanced');
99 const status = document.getElementById('llm-status');
101 const topkSlider = document.getElementById('llm-topk');
102 const tempSlider = document.getElementById('llm-temperature');
103 const maxTokenSlider = document.getElementById('llm-maxtoken');
104 const topPSlider = document.getElementById('llm-topp');
105 const contextSlider = document.getElementById('llm-context');
106 const grammarTextarea = document.getElementById('llm-grammar');
107 const topkValue = document.getElementById('topk-value');
108 const tempValue = document.getElementById('temp-value');
109 const maxTokenValue = document.getElementById('maxtoken-value');
110 const topPValue = document.getElementById('topp-value');
111 const contextValue = document.getElementById('context-value');
112 const wizardOutputDiv = document.getElementById('llm-wizard-output');
113 const outputContainer = document.getElementById('llm-output-container');
114 const clearOutputButton = document.getElementById('llm-clear-output');
115 const copyAllButton = document.getElementById('llm-copy-all');
116 const toggleButtons = document.getElementById('llm-toggle-buttons');
117 const pasteAllButton = document.getElementById('llm-paste-all');
118 const languageSelect = document.getElementById('llm-language');
119 const outputFormatSelect = document.getElementById('llm-output-format');
120 const promptTemplateTextarea = document.getElementById('llm-prompt-template');
127 … document.getElementById(slider.id.replace('llm-', '') + '-value').textContent = slider.value;
167 wasmUrl: '<?php echo DOKU_BASE; ?>lib/plugins/llm/llm.js/llamacpp-cpu.js',
214 … document.getElementById('llm-summarizer').addEventListener('click', () => runWizard('summarize'));
215 …document.getElementById('llm-proofreader').addEventListener('click', () => runWizard('proofread'));
216 document.getElementById('llm-translator').addEventListener('click', () => {
233 const visibleText = Array.from(outputContainer.querySelectorAll('.output-div'))
245 const visibleText = Array.from(outputContainer.querySelectorAll('.output-div'))
259 const buttons = outputContainer.querySelectorAll('.output-div button');
301 outputDiv.className = 'output-div';
307 if (isUserPrompt) outputDiv.setAttribute('data-user-input', 'true');