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 { TemplateNode } from '#client' */2import { hydrate_node, hydrating, set_hydrate_node, set_hydrating } from '../hydration.js';3import { create_text, get_first_child, get_next_sibling } from '../operations.js';4import { block, branch } from '../../reactivity/effects.js';5import { COMMENT_NODE, HEAD_EFFECT } from '#client/constants';6 7/**8 * @param {string} hash9 * @param {(anchor: Node) => void} render_fn10 * @returns {void}11 */12export function head(hash, render_fn) {13 // The head function may be called after the first hydration pass and ssr comment nodes may still be present,14 // therefore we need to skip that when we detect that we're not in hydration mode.15 let previous_hydrate_node = null;16 let was_hydrating = hydrating;17 18 /** @type {Comment | Text} */19 var anchor;20 21 if (hydrating) {22 previous_hydrate_node = hydrate_node;23 24 var head_anchor = get_first_child(document.head);25 26 // There might be multiple head blocks in our app, and they could have been27 // rendered in an arbitrary order — find one corresponding to this component28 while (29 head_anchor !== null &&30 (head_anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */ (head_anchor).data !== hash)31 ) {32 head_anchor = get_next_sibling(head_anchor);33 }34 35 // If we can't find an opening hydration marker, skip hydration (this can happen36 // if a framework rendered body but not head content)37 if (head_anchor === null) {38 set_hydrating(false);39 } else {40 var start = /** @type {TemplateNode} */ (get_next_sibling(head_anchor));41 head_anchor.remove(); // in case this component is repeated42 43 set_hydrate_node(start);44 }45 }46 47 if (!hydrating) {48 anchor = document.head.appendChild(create_text());49 }50 51 try {52 block(() => {53 var e = branch(() => render_fn(anchor));54 e.f |= HEAD_EFFECT;55 });56 } finally {57 if (was_hydrating) {58 set_hydrating(true);59 set_hydrate_node(/** @type {TemplateNode} */ (previous_hydrate_node));60 }61 }62}63 