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 { STATE_SYMBOL } from '#client/constants';2import { snapshot } from '../../shared/clone.js';3import * as w from '../warnings.js';4import { untrack } from '../runtime.js';5 6/**7 * @param {string} method8 * @param {...any} objects9 */10export function log_if_contains_state(method, ...objects) {11 untrack(() => {12 try {13 let has_state = false;14 const transformed = [];15 16 for (const obj of objects) {17 if (obj && typeof obj === 'object' && STATE_SYMBOL in obj) {18 transformed.push(snapshot(obj, true));19 has_state = true;20 } else {21 transformed.push(obj);22 }23 }24 25 if (has_state) {26 w.console_log_state(method);27 28 // eslint-disable-next-line no-console29 console.log('%c[snapshot]', 'color: grey', ...transformed);30 }31 } catch {32 // Errors can occur when trying to snapshot objects with getters that throw or non-enumerable properties.33 }34 });35 36 return objects;37}38 