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
1/** @import { ComponentContextLegacy } from '#client' */2import { run, run_all } from '../../../shared/utils.js';3import { component_context } from '../../context.js';4import { derived } from '../../reactivity/deriveds.js';5import { user_pre_effect, user_effect } from '../../reactivity/effects.js';6import { deep_read_state, get, untrack } from '../../runtime.js';7 8/**9 * Legacy-mode only: Call `onMount` callbacks and set up `beforeUpdate`/`afterUpdate` effects10 * @param {boolean} [immutable]11 */12export function init(immutable = false) {13 const context = /** @type {ComponentContextLegacy} */ (component_context);14 15 const callbacks = context.l.u;16 if (!callbacks) return;17 18 let props = () => deep_read_state(context.s);19 20 if (immutable) {21 let version = 0;22 let prev = /** @type {Record<string, any>} */ ({});23 24 // In legacy immutable mode, before/afterUpdate only fire if the object identity of a prop changes25 const d = derived(() => {26 let changed = false;27 const props = context.s;28 for (const key in props) {29 if (props[key] !== prev[key]) {30 prev[key] = props[key];31 changed = true;32 }33 }34 if (changed) version++;35 return version;36 });37 38 props = () => get(d);39 }40 41 // beforeUpdate42 if (callbacks.b.length) {43 user_pre_effect(() => {44 observe_all(context, props);45 run_all(callbacks.b);46 });47 }48 49 // onMount (must run before afterUpdate)50 user_effect(() => {51 const fns = untrack(() => callbacks.m.map(run));52 return () => {53 for (const fn of fns) {54 if (typeof fn === 'function') {55 fn();56 }57 }58 };59 });60 61 // afterUpdate62 if (callbacks.a.length) {63 user_effect(() => {64 observe_all(context, props);65 run_all(callbacks.a);66 });67 }68}69 70/**71 * Invoke the getter of all signals associated with a component72 * so they can be registered to the effect this function is called in.73 * @param {ComponentContextLegacy} context74 * @param {(() => void)} props75 */76function observe_all(context, props) {77 if (context.l.s) {78 for (const signal of context.l.s) get(signal);79 }80 81 props();82}83 