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
base64.js61 linesDownload Raw Back to src
1/* Baseline 2025 runtimes */2 3/**	@type {(array_buffer: ArrayBuffer) => string} */4export function encode_native(array_buffer) {5	return new Uint8Array(array_buffer).toBase64();6}7 8/**	@type {(base64: string) => ArrayBuffer} */9export function decode_native(base64) {10	return Uint8Array.fromBase64(base64).buffer;11}12 13/* Node-compatible runtimes */14 15/** @type {(array_buffer: ArrayBuffer) => string} */16export function encode_buffer(array_buffer) {17	return Buffer.from(array_buffer).toString('base64');18}19 20/**	@type {(base64: string) => ArrayBuffer} */21export function decode_buffer(base64) {22	return Uint8Array.from(Buffer.from(base64, 'base64')).buffer;23}24 25/* Legacy runtimes */26 27/** @type {(array_buffer: ArrayBuffer) => string} */28export function encode_legacy(array_buffer) {29	const array = new Uint8Array(array_buffer);30	let binary = '';31 32	// the maximum number of arguments to String.fromCharCode.apply33	// should be around 0xFFFF in modern engines34	const chunk_size = 0x8000;35	for (let i = 0; i < array.length; i += chunk_size) {36		const chunk = array.subarray(i, i + chunk_size);37		binary += String.fromCharCode.apply(null, chunk);38	}39 40	return btoa(binary);41}42 43/**	@type {(base64: string) => ArrayBuffer} */44export function decode_legacy(base64) {45	const binary_string = atob(base64);46	const len = binary_string.length;47	const array = new Uint8Array(len);48 49	for (let i = 0; i < len; i++) {50		array[i] = binary_string.charCodeAt(i);51	}52 53	return array.buffer;54}55 56const native = typeof Uint8Array.fromBase64 === 'function';57const buffer = typeof process === 'object' && process.versions?.node !== undefined;58 59export const encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;60export const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;61 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai