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
wrapper.js75 linesDownload Raw Back to watcher
1const path = require('path');2const picomatch = require('picomatch');3const isGlob = require('is-glob');4 5function normalizeOptions(dir, opts = {}) {6  const { ignore, ...rest } = opts;7 8  if (Array.isArray(ignore)) {9    opts = { ...rest };10 11    for (const value of ignore) {12      if (isGlob(value)) {13        if (!opts.ignoreGlobs) {14          opts.ignoreGlobs = [];15        }16 17        const regex = picomatch.makeRe(value, {18          // We set `dot: true` to workaround an issue with the19          // regular expression on Linux where the resulting20          // negative lookahead `(?!(\\/|^)` was never matching21          // in some cases. See also https://bit.ly/3UZlQDm22          dot: true,23          windows: process.platform === 'win32',24        });25        opts.ignoreGlobs.push(regex.source);26      } else {27        if (!opts.ignorePaths) {28          opts.ignorePaths = [];29        }30 31        opts.ignorePaths.push(path.resolve(dir, value));32      }33    }34  }35 36  return opts;37}38 39exports.createWrapper = (binding) => {40  return {41    writeSnapshot(dir, snapshot, opts) {42      return binding.writeSnapshot(43        path.resolve(dir),44        path.resolve(snapshot),45        normalizeOptions(dir, opts),46      );47    },48    getEventsSince(dir, snapshot, opts) {49      return binding.getEventsSince(50        path.resolve(dir),51        path.resolve(snapshot),52        normalizeOptions(dir, opts),53      );54    },55    async subscribe(dir, fn, opts) {56      dir = path.resolve(dir);57      opts = normalizeOptions(dir, opts);58      await binding.subscribe(dir, fn, opts);59 60      return {61        unsubscribe() {62          return binding.unsubscribe(dir, fn, opts);63        },64      };65    },66    unsubscribe(dir, fn, opts) {67      return binding.unsubscribe(68        path.resolve(dir),69        fn,70        normalizeOptions(dir, opts),71      );72    }73  };74};75 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai