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
whatwg-encoding.js48 linesDownload Raw Back to lib
1"use strict";2const iconvLite = require("iconv-lite");3const supportedNames = require("./supported-names.json");4const labelsToNames = require("./labels-to-names.json");5 6const supportedNamesSet = new Set(supportedNames);7 8// https://encoding.spec.whatwg.org/#concept-encoding-get9exports.labelToName = label => {10  label = String(label).trim().toLowerCase();11 12  return labelsToNames[label] || null;13};14 15// https://encoding.spec.whatwg.org/#decode16exports.decode = (uint8Array, fallbackEncodingName) => {17  let encoding = fallbackEncodingName;18  if (!exports.isSupported(encoding)) {19    throw new RangeError(`"${encoding}" is not a supported encoding name`);20  }21 22  const bomEncoding = exports.getBOMEncoding(uint8Array);23  if (bomEncoding !== null) {24    encoding = bomEncoding;25  }26 27  // iconv-lite will strip BOMs for us, so no need to do the stuff the spec does28 29  return iconvLite.decode(uint8Array, encoding);30};31 32// https://github.com/whatwg/html/issues/1910#issuecomment-25401736933exports.getBOMEncoding = uint8Array => {34  if (uint8Array[0] === 0xFE && uint8Array[1] === 0xFF) {35    return "UTF-16BE";36  } else if (uint8Array[0] === 0xFF && uint8Array[1] === 0xFE) {37    return "UTF-16LE";38  } else if (uint8Array[0] === 0xEF && uint8Array[1] === 0xBB && uint8Array[2] === 0xBF) {39    return "UTF-8";40  }41 42  return null;43};44 45exports.isSupported = name => {46  return supportedNamesSet.has(String(name));47};48