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 { encodeString } from './string-util.js';2export const defaultValueSerializer = (value) => {3 switch (typeof value) {4 case 'string':5 // Length check is handled inside encodeString function6 return encodeString(value);7 case 'bigint':8 case 'boolean':9 return '' + value;10 case 'number':11 if (Number.isFinite(value)) {12 return value < 1e21 ? '' + value : encodeString('' + value);13 }14 break;15 }16 if (value instanceof Date) {17 return encodeString(value.toISOString());18 }19 return '';20};21export const defaultShouldSerializeObject = (val) => {22 return val instanceof Date;23};24const identityFunc = (v) => v;25export const defaultOptions = {26 nesting: true,27 nestingSyntax: 'dot',28 arrayRepeat: false,29 arrayRepeatSyntax: 'repeat',30 delimiter: 38,31 valueDeserializer: identityFunc,32 valueSerializer: defaultValueSerializer,33 keyDeserializer: identityFunc,34 shouldSerializeObject: defaultShouldSerializeObject35};36 