Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { boxWith } from "svelte-toolbelt";2import { noop } from "./noop.js";3const defaultOptions = {4 afterMs: 10000,5 onChange: noop,6};7/**8 * Creates a box which will be reset to the default value after some time.9 *10 * @param defaultValue The value which will be set.11 * @param afterMs A zero-or-greater delay in milliseconds.12 */13export function boxAutoReset(defaultValue, options) {14 const { afterMs, onChange, getWindow } = { ...defaultOptions, ...options };15 let timeout = null;16 let value = $state(defaultValue);17 function resetAfter() {18 return getWindow().setTimeout(() => {19 value = defaultValue;20 onChange?.(defaultValue);21 }, afterMs);22 }23 $effect(() => {24 return () => {25 if (timeout)26 getWindow().clearTimeout(timeout);27 };28 });29 return boxWith(() => value, (v) => {30 value = v;31 onChange?.(v);32 if (timeout)33 getWindow().clearTimeout(timeout);34 timeout = resetAfter();35 });36}37 