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
linuxUtils.js72 linesDownload Raw Back to utils
1"use strict";2var __create = Object.create;3var __defProp = Object.defineProperty;4var __getOwnPropDesc = Object.getOwnPropertyDescriptor;5var __getOwnPropNames = Object.getOwnPropertyNames;6var __getProtoOf = Object.getPrototypeOf;7var __hasOwnProp = Object.prototype.hasOwnProperty;8var __export = (target, all) => {9  for (var name in all)10    __defProp(target, name, { get: all[name], enumerable: true });11};12var __copyProps = (to, from, except, desc) => {13  if (from && typeof from === "object" || typeof from === "function") {14    for (let key of __getOwnPropNames(from))15      if (!__hasOwnProp.call(to, key) && key !== except)16        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });17  }18  return to;19};20var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(21  // If the importer is in node compatibility mode or this is not an ESM22  // file that has been converted to a CommonJS file using a Babel-23  // compatible transform (i.e. "__esModule" has not been set), then set24  // "default" to the CommonJS "module.exports" for node compatibility.25  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,26  mod27));28var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);29var linuxUtils_exports = {};30__export(linuxUtils_exports, {31  getLinuxDistributionInfoSync: () => getLinuxDistributionInfoSync32});33module.exports = __toCommonJS(linuxUtils_exports);34var import_fs = __toESM(require("fs"));35let didFailToReadOSRelease = false;36let osRelease;37function getLinuxDistributionInfoSync() {38  if (process.platform !== "linux")39    return void 0;40  if (!osRelease && !didFailToReadOSRelease) {41    try {42      const osReleaseText = import_fs.default.readFileSync("/etc/os-release", "utf8");43      const fields = parseOSReleaseText(osReleaseText);44      osRelease = {45        id: fields.get("id") ?? "",46        version: fields.get("version_id") ?? ""47      };48    } catch (e) {49      didFailToReadOSRelease = true;50    }51  }52  return osRelease;53}54function parseOSReleaseText(osReleaseText) {55  const fields = /* @__PURE__ */ new Map();56  for (const line of osReleaseText.split("\n")) {57    const tokens = line.split("=");58    const name = tokens.shift();59    let value = tokens.join("=").trim();60    if (value.startsWith('"') && value.endsWith('"'))61      value = value.substring(1, value.length - 1);62    if (!name)63      continue;64    fields.set(name.toLowerCase(), value);65  }66  return fields;67}68// Annotate the CommonJS export names for ESM import in node:690 && (module.exports = {70  getLinuxDistributionInfoSync71});72 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai