Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
index.mjs152 linesDownload Raw Back to dist
1import { t as toArray } from "./dist-DBY4ctBk.mjs";2import { createRequire } from "node:module";3import { basename, dirname, join } from "node:path";4import { readFile, unlink, writeFile } from "@quansync/fs";5import defu from "defu";6import { quansync } from "quansync/macro";7import { createConfigCoreLoader } from "unconfig-core";8 9export * from "unconfig-core"10 11//#region src/interop.ts12function interopDefault(mod) {13	if (mod == null || typeof mod !== "object" || !("default" in mod) || mod.default == null) return mod;14	const defaultValue = mod.default;15	if (typeof defaultValue !== "object") return defaultValue;16	for (const key in mod) try {17		if (key in defaultValue || key === "default" || mod[key] === defaultValue) continue;18		Object.defineProperty(defaultValue, key, {19			configurable: true,20			enumerable: true,21			get() {22				return mod[key];23			}24		});25	} catch {}26	return defaultValue;27}28 29//#endregion30//#region src/types.ts31const defaultExtensions = [32	"mts",33	"cts",34	"ts",35	"mjs",36	"cjs",37	"js",38	"json",39	""40];41 42//#endregion43//#region src/index.ts44const require = createRequire(import.meta.url);45const loadConfigFile = quansync(function* (filepath, source) {46	let config;47	let parser = source.parser || "auto";48	let bundleFilepath = filepath;49	let code;50	let dependencies;51	const read = quansync(function* () {52		if (code == null) code = yield readFile(filepath, "utf8");53		return code;54	});55	const importModule = quansync({56		sync: () => {57			const { createJiti } = require("jiti");58			const jiti = createJiti(import.meta.url, {59				fsCache: false,60				moduleCache: false,61				interopDefault: true62			});63			config = interopDefault(jiti(bundleFilepath));64			dependencies = Object.values(jiti.cache).map((i) => i.filename).filter(Boolean);65		},66		async: async () => {67			const { createJiti } = await import("jiti");68			const jiti = createJiti(import.meta.url, {69				fsCache: false,70				moduleCache: false,71				interopDefault: true72			});73			config = interopDefault(await jiti.import(bundleFilepath, { default: true }));74			dependencies = Object.values(jiti.cache).map((i) => i.filename).filter(Boolean);75		}76	});77	if (source.transform) {78		const transformed = yield source.transform(yield read(), filepath);79		if (transformed) {80			bundleFilepath = join(dirname(filepath), `__unconfig_${basename(filepath)}`);81			yield writeFile(bundleFilepath, transformed, "utf8");82			code = transformed;83		}84	}85	if (parser === "auto") try {86		config = JSON.parse(yield read());87		parser = "json";88	} catch {89		parser = "import";90	}91	try {92		if (!config) {93			if (typeof parser === "function") config = yield parser(filepath);94			else if (parser === "import") yield importModule();95			else if (parser === "json") config = JSON.parse(yield read());96		}97		if (!config) return;98		const rewritten = source.rewrite ? yield source.rewrite(config, filepath) : config;99		if (!rewritten) return void 0;100		return [rewritten, dependencies];101	} finally {102		if (bundleFilepath !== filepath) try {103			yield unlink(bundleFilepath);104		} catch {}105	}106});107function createConfigLoader(options) {108	const { merge, defaults, sources, ...coreOptions } = options;109	const coreSources = toArray(sources || []).map((source) => {110		return {111			...source,112			files: toArray(source.files),113			extensions: source.extensions || defaultExtensions,114			parser: (filepath) => loadConfigFile(filepath, source)115		};116	});117	const core = createConfigCoreLoader({118		...coreOptions,119		multiple: merge,120		sources: coreSources121	});122	return {123		load: quansync(function* (force = false) {124			const results = yield core.load(force);125			if (!results.length) return {126				config: defaults,127				sources: []128			};129			if (!merge) return {130				config: results[0].config[0],131				sources: [results[0].source],132				dependencies: results[0].config[1]133			};134			return {135				config: applyDefaults(...results.map((i) => i.config[0]), defaults),136				sources: results.map((i) => i.source),137				dependencies: results.flatMap((i) => i.config[1] || [])138			};139		}),140		findConfigs: core.findConfigs141	};142}143function applyDefaults(...args) {144	return defu(...args.map((i) => ({ config: i }))).config;145}146const loadConfig = quansync(function* (options) {147	return createConfigLoader(options).load();148});149const loadConfigSync = loadConfig.sync;150 151//#endregion152export { createConfigLoader, defaultExtensions, loadConfig, loadConfigSync };
Brunobkr/llama.cpp_AlgMor24_github · Team Ai