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
hostPlatform.js112 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 hostPlatform_exports = {};30__export(hostPlatform_exports, {31  hostPlatform: () => hostPlatform,32  isOfficiallySupportedPlatform: () => isOfficiallySupportedPlatform33});34module.exports = __toCommonJS(hostPlatform_exports);35var import_os = __toESM(require("os"));36var import_linuxUtils = require("./linuxUtils");37function calculatePlatform() {38  if (process.env.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE) {39    return {40      hostPlatform: process.env.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE,41      isOfficiallySupportedPlatform: false42    };43  }44  const platform = import_os.default.platform();45  if (platform === "darwin") {46    const ver = import_os.default.release().split(".").map((a) => parseInt(a, 10));47    let macVersion = "";48    if (ver[0] < 18) {49      macVersion = "mac10.13";50    } else if (ver[0] === 18) {51      macVersion = "mac10.14";52    } else if (ver[0] === 19) {53      macVersion = "mac10.15";54    } else {55      const LAST_STABLE_MACOS_MAJOR_VERSION = 15;56      macVersion = "mac" + Math.min(ver[0] - 9, LAST_STABLE_MACOS_MAJOR_VERSION);57      if (import_os.default.cpus().some((cpu) => cpu.model.includes("Apple")))58        macVersion += "-arm64";59    }60    return { hostPlatform: macVersion, isOfficiallySupportedPlatform: true };61  }62  if (platform === "linux") {63    if (!["x64", "arm64"].includes(import_os.default.arch()))64      return { hostPlatform: "<unknown>", isOfficiallySupportedPlatform: false };65    const archSuffix = "-" + import_os.default.arch();66    const distroInfo = (0, import_linuxUtils.getLinuxDistributionInfoSync)();67    if (distroInfo?.id === "ubuntu" || distroInfo?.id === "pop" || distroInfo?.id === "neon" || distroInfo?.id === "tuxedo") {68      const isUbuntu = distroInfo?.id === "ubuntu";69      const version = distroInfo?.version;70      const major = parseInt(distroInfo.version, 10);71      if (major < 20)72        return { hostPlatform: "ubuntu18.04" + archSuffix, isOfficiallySupportedPlatform: false };73      if (major < 22)74        return { hostPlatform: "ubuntu20.04" + archSuffix, isOfficiallySupportedPlatform: isUbuntu && version === "20.04" };75      if (major < 24)76        return { hostPlatform: "ubuntu22.04" + archSuffix, isOfficiallySupportedPlatform: isUbuntu && version === "22.04" };77      if (major < 26)78        return { hostPlatform: "ubuntu24.04" + archSuffix, isOfficiallySupportedPlatform: isUbuntu && version === "24.04" };79      return { hostPlatform: "ubuntu" + distroInfo.version + archSuffix, isOfficiallySupportedPlatform: false };80    }81    if (distroInfo?.id === "linuxmint") {82      const mintMajor = parseInt(distroInfo.version, 10);83      if (mintMajor <= 20)84        return { hostPlatform: "ubuntu20.04" + archSuffix, isOfficiallySupportedPlatform: false };85      if (mintMajor === 21)86        return { hostPlatform: "ubuntu22.04" + archSuffix, isOfficiallySupportedPlatform: false };87      return { hostPlatform: "ubuntu24.04" + archSuffix, isOfficiallySupportedPlatform: false };88    }89    if (distroInfo?.id === "debian" || distroInfo?.id === "raspbian") {90      const isOfficiallySupportedPlatform2 = distroInfo?.id === "debian";91      if (distroInfo?.version === "11")92        return { hostPlatform: "debian11" + archSuffix, isOfficiallySupportedPlatform: isOfficiallySupportedPlatform2 };93      if (distroInfo?.version === "12")94        return { hostPlatform: "debian12" + archSuffix, isOfficiallySupportedPlatform: isOfficiallySupportedPlatform2 };95      if (distroInfo?.version === "13")96        return { hostPlatform: "debian13" + archSuffix, isOfficiallySupportedPlatform: isOfficiallySupportedPlatform2 };97      if (distroInfo?.version === "")98        return { hostPlatform: "debian13" + archSuffix, isOfficiallySupportedPlatform: isOfficiallySupportedPlatform2 };99    }100    return { hostPlatform: "ubuntu20.04" + archSuffix, isOfficiallySupportedPlatform: false };101  }102  if (platform === "win32")103    return { hostPlatform: "win64", isOfficiallySupportedPlatform: true };104  return { hostPlatform: "<unknown>", isOfficiallySupportedPlatform: false };105}106const { hostPlatform, isOfficiallySupportedPlatform } = calculatePlatform();107// Annotate the CommonJS export names for ESM import in node:1080 && (module.exports = {109  hostPlatform,110  isOfficiallySupportedPlatform111});112 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai