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
esbuild224 linesDownload Raw Back to .bin
1#!/usr/bin/env node2"use strict";3var __create = Object.create;4var __defProp = Object.defineProperty;5var __getOwnPropDesc = Object.getOwnPropertyDescriptor;6var __getOwnPropNames = Object.getOwnPropertyNames;7var __getProtoOf = Object.getPrototypeOf;8var __hasOwnProp = Object.prototype.hasOwnProperty;9var __copyProps = (to, from, except, desc) => {10  if (from && typeof from === "object" || typeof from === "function") {11    for (let key of __getOwnPropNames(from))12      if (!__hasOwnProp.call(to, key) && key !== except)13        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });14  }15  return to;16};17var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(18  // If the importer is in node compatibility mode or this is not an ESM19  // file that has been converted to a CommonJS file using a Babel-20  // compatible transform (i.e. "__esModule" has not been set), then set21  // "default" to the CommonJS "module.exports" for node compatibility.22  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,23  mod24));25 26// lib/npm/node-platform.ts27var fs = require("fs");28var os = require("os");29var path = require("path");30var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;31var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";32var packageDarwin_arm64 = "@esbuild/darwin-arm64";33var packageDarwin_x64 = "@esbuild/darwin-x64";34var knownWindowsPackages = {35  "win32 arm64 LE": "@esbuild/win32-arm64",36  "win32 ia32 LE": "@esbuild/win32-ia32",37  "win32 x64 LE": "@esbuild/win32-x64"38};39var knownUnixlikePackages = {40  "aix ppc64 BE": "@esbuild/aix-ppc64",41  "android arm64 LE": "@esbuild/android-arm64",42  "darwin arm64 LE": "@esbuild/darwin-arm64",43  "darwin x64 LE": "@esbuild/darwin-x64",44  "freebsd arm64 LE": "@esbuild/freebsd-arm64",45  "freebsd x64 LE": "@esbuild/freebsd-x64",46  "linux arm LE": "@esbuild/linux-arm",47  "linux arm64 LE": "@esbuild/linux-arm64",48  "linux ia32 LE": "@esbuild/linux-ia32",49  "linux mips64el LE": "@esbuild/linux-mips64el",50  "linux ppc64 LE": "@esbuild/linux-ppc64",51  "linux riscv64 LE": "@esbuild/linux-riscv64",52  "linux s390x BE": "@esbuild/linux-s390x",53  "linux x64 LE": "@esbuild/linux-x64",54  "linux loong64 LE": "@esbuild/linux-loong64",55  "netbsd arm64 LE": "@esbuild/netbsd-arm64",56  "netbsd x64 LE": "@esbuild/netbsd-x64",57  "openbsd arm64 LE": "@esbuild/openbsd-arm64",58  "openbsd x64 LE": "@esbuild/openbsd-x64",59  "sunos x64 LE": "@esbuild/sunos-x64"60};61var knownWebAssemblyFallbackPackages = {62  "android arm LE": "@esbuild/android-arm",63  "android x64 LE": "@esbuild/android-x64",64  "openharmony arm64 LE": "@esbuild/openharmony-arm64"65};66function pkgAndSubpathForCurrentPlatform() {67  let pkg;68  let subpath;69  let isWASM2 = false;70  let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;71  if (platformKey in knownWindowsPackages) {72    pkg = knownWindowsPackages[platformKey];73    subpath = "esbuild.exe";74  } else if (platformKey in knownUnixlikePackages) {75    pkg = knownUnixlikePackages[platformKey];76    subpath = "bin/esbuild";77  } else if (platformKey in knownWebAssemblyFallbackPackages) {78    pkg = knownWebAssemblyFallbackPackages[platformKey];79    subpath = "bin/esbuild";80    isWASM2 = true;81  } else {82    throw new Error(`Unsupported platform: ${platformKey}`);83  }84  return { pkg, subpath, isWASM: isWASM2 };85}86function pkgForSomeOtherPlatform() {87  const libMainJS = require.resolve("esbuild");88  const nodeModulesDirectory = path.dirname(path.dirname(path.dirname(libMainJS)));89  if (path.basename(nodeModulesDirectory) === "node_modules") {90    for (const unixKey in knownUnixlikePackages) {91      try {92        const pkg = knownUnixlikePackages[unixKey];93        if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;94      } catch {95      }96    }97    for (const windowsKey in knownWindowsPackages) {98      try {99        const pkg = knownWindowsPackages[windowsKey];100        if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;101      } catch {102      }103    }104  }105  return null;106}107function downloadedBinPath(pkg, subpath) {108  const esbuildLibDir = path.dirname(require.resolve("esbuild"));109  return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);110}111function generateBinPath() {112  if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {113    if (!fs.existsSync(ESBUILD_BINARY_PATH)) {114      console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);115    } else {116      return { binPath: ESBUILD_BINARY_PATH, isWASM: false };117    }118  }119  const { pkg, subpath, isWASM: isWASM2 } = pkgAndSubpathForCurrentPlatform();120  let binPath2;121  try {122    binPath2 = require.resolve(`${pkg}/${subpath}`);123  } catch (e) {124    binPath2 = downloadedBinPath(pkg, subpath);125    if (!fs.existsSync(binPath2)) {126      try {127        require.resolve(pkg);128      } catch {129        const otherPkg = pkgForSomeOtherPlatform();130        if (otherPkg) {131          let suggestions = `132Specifically the "${otherPkg}" package is present but this platform133needs the "${pkg}" package instead. People often get into this134situation by installing esbuild on Windows or macOS and copying "node_modules"135into a Docker image that runs Linux, or by copying "node_modules" between136Windows and WSL environments.137 138If you are installing with npm, you can try not copying the "node_modules"139directory when you copy the files over, and running "npm ci" or "npm install"140on the destination platform after the copy. Or you could consider using yarn141instead of npm which has built-in support for installing a package on multiple142platforms simultaneously.143 144If you are installing with yarn, you can try listing both this platform and the145other platform in your ".yarnrc.yml" file using the "supportedArchitectures"146feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures147Keep in mind that this means multiple copies of esbuild will be present.148`;149          if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {150            suggestions = `151Specifically the "${otherPkg}" package is present but this platform152needs the "${pkg}" package instead. People often get into this153situation by installing esbuild with npm running inside of Rosetta 2 and then154trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta1552 is Apple's on-the-fly x86_64-to-arm64 translation service).156 157If you are installing with npm, you can try ensuring that both npm and node are158not running under Rosetta 2 and then reinstalling esbuild. This likely involves159changing how you installed npm and/or node. For example, installing node with160the universal installer here should work: https://nodejs.org/en/download/. Or161you could consider using yarn instead of npm which has built-in support for162installing a package on multiple platforms simultaneously.163 164If you are installing with yarn, you can try listing both "arm64" and "x64"165in your ".yarnrc.yml" file using the "supportedArchitectures" feature:166https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures167Keep in mind that this means multiple copies of esbuild will be present.168`;169          }170          throw new Error(`171You installed esbuild for another platform than the one you're currently using.172This won't work because esbuild is written with native code and needs to173install a platform-specific binary executable.174${suggestions}175Another alternative is to use the "esbuild-wasm" package instead, which works176the same way on all platforms. But it comes with a heavy performance cost and177can sometimes be 10x slower than the "esbuild" package, so you may also not178want to do that.179`);180        }181        throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.182 183If you are installing esbuild with npm, make sure that you don't specify the184"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature185of "package.json" is used by esbuild to install the correct binary executable186for your current platform.`);187      }188      throw e;189    }190  }191  if (/\.zip\//.test(binPath2)) {192    let pnpapi;193    try {194      pnpapi = require("pnpapi");195    } catch (e) {196    }197    if (pnpapi) {198      const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;199      const binTargetPath = path.join(200        root,201        "node_modules",202        ".cache",203        "esbuild",204        `pnpapi-${pkg.replace("/", "-")}-${"0.28.1"}-${path.basename(subpath)}`205      );206      if (!fs.existsSync(binTargetPath)) {207        fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });208        fs.copyFileSync(binPath2, binTargetPath);209        fs.chmodSync(binTargetPath, 493);210      }211      return { binPath: binTargetPath, isWASM: isWASM2 };212    }213  }214  return { binPath: binPath2, isWASM: isWASM2 };215}216 217// lib/npm/node-shim.ts218var { binPath, isWASM } = generateBinPath();219if (isWASM) {220  require("child_process").execFileSync("node", [binPath].concat(process.argv.slice(2)), { stdio: "inherit" });221} else {222  require("child_process").execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });223}224 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai