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 * as assert from 'uvu/assert';2import { suite } from 'uvu';3import * as base64 from './base64.js';4 5const strings = [6 '',7 'a',8 'ab',9 'abc',10 'a\r\nb',11 '\xFF\xFE',12 '\x00',13 '\x00\x00\x00',14 'the quick brown fox etc',15 'é',16 '中文',17 '+/',18 '😎'19];20 21const test = suite('base64_encode_decode');22 23const encoder = new TextEncoder();24const decoder = new TextDecoder();25 26for (const string of strings) {27 test(string, () => {28 const data = encoder.encode(string);29 30 const with_buffer = base64.encode_buffer(data);31 const with_legacy = base64.encode_legacy(data);32 33 assert.equal(with_buffer, with_legacy);34 assert.equal(decoder.decode(base64.decode_buffer(with_buffer)), string);35 assert.equal(decoder.decode(base64.decode_legacy(with_legacy)), string);36 37 if (typeof Uint8Array.fromBase64 === 'function') {38 const with_native = base64.encode_native(data);39 assert.equal(decoder.decode(base64.decode_native(with_native)), string);40 }41 });42}43 44test.run();45 